TestNG Parametrisation – dataProvider

TestNG provides a way to get the data from external sources like from excel/textfile/arrays which helps to prepare data driven framework in automation. @Parameters – pass parameters from the testNG.xml @dataProvider – Pass the parameters as a 2D array. In this post, we will look into dataProvider @DataProvider This is another way of passing 2 dimensional array…

TestNG annotations

For the fundamentals of testNG framework and the testng.xml content, please refer to my prev blog post. selenium-testng (See all the available annotations) selenium testNGxml Let’s jump into a sample code to get more understanding on the annotations- These below 2 classes contains all the details of testNG annotations and the output shows sequence of execution…