TestNG

TestNG – 17 || Passing multiple Parameters in testng xml.

We can also pass parameters via TestNG XML file. These could be accessible using @Parameters annotation. This has been used in combination with the <parameter> tag in XML File. Parameters Annotation Parameters in TestNG XML File The process of using the Parameter is very simple. In the XML file, we have to use <parameter> tag …

TestNG – 17 || Passing multiple Parameters in testng xml. Read More »

TestNG – 16 || Access data from Excel sheet using DataProvider.

We can use an Excel sheet as a source of input. We can access data from excel sheet using DataProvider annotation and pass arguments through @Test methods. Mainly this approach is used in Data Driven Framework.     Data Driven Framework: A data-driven framework is used to run the same script for a huge amount …

TestNG – 16 || Access data from Excel sheet using DataProvider. Read More »

TestNG – 15 || DataProvider with parameters.

DataProvider with parameters provides ways to work with different type of datasets using single DataProvider. In our last chapter, we have learned how to use DataProvider annotation and attribute in a TestNG program. I would recommend to go through with the previous chapter then move with this. DataProvider Parameter Types DataProvider method supports two types …

TestNG – 15 || DataProvider with parameters. Read More »

TestNG – 14 || DataProvider annotation & attribute.

DataProvider is the most important annotation while using TestNG framework. It helps to execute same Test Case on multiple Test Data. @DataProvider annotation defines the data source in the same class file or separate class file. While dataProvider attribute provides access to that data source in any Test Method defined under @Test annotation. DataProvider Sample …

TestNG – 14 || DataProvider annotation & attribute. Read More »

TestNG – 13 || Use of @BeforeSuite & @AfterSuite.

Methods defined under @BeforeSuite & @AfterSuite get execute before and after all tests defined in a TestSuite.xml file. The better way to understand this by comparing the process of @BeforeTest and @BeforeSuite. Look at below images. In both programs, we have used two tests(Test-1 and Test-2) in the TestSuite.xml file. The only difference what we …

TestNG – 13 || Use of @BeforeSuite & @AfterSuite. Read More »

TestNG – 12 || Use of @BeforeGroups & @AfterGroups.

Executing specific methods before and after of a test group is possible using @BeforeGroups and @AfterGroups annotations. We have learned that using groups attribute we can create groups of test methods from multiple classes. I would recommend please go through with the previous chapter if want to learn implementation of groups attributes. Above example is …

TestNG – 12 || Use of @BeforeGroups & @AfterGroups. Read More »

TestNG – 11 || Groups attribute with @Test Annotation.

Groups attribute is used to create groups using various methods from multiple Classess. Mainly this attribute is used with @Test Annotations. In the above example, we have created two groups Alpha and Regression. In the Alpha group, we have added all the methods from both the classes(myProfile.java and myOrders.java). On the other hand, we have …

TestNG – 11 || Groups attribute with @Test Annotation. Read More »

   YouTube ChannelQuora

            Ashok Kumar is working in an IT Company as a QA Consultant. He has started his career as a Test Trainee in manual testing in August 2010. Then he moves towards the automation testing after 4 years. He started learning JAVA and Selenium by self to get the knowledge of automation.

       While learning these tools and working on multiple projects, he found that sometimes people get stuck in live scenarios in their project and they have to do lots of RnD to get out of it. So he decided to start blogging only for such scenarios, where anyone facing any problem in their project, can ask any question or give a solution or you can say an alternate solution to achieve the goal successfully.

Later on, he observed that some people want to learn Java but they have few questions in their mind like how to start Java, whether we should go for the online or offline course. So he started writing tutorials on Java, Jira, Selenium, Excel etc.