Skip to toolbar

TestNG – 18 || Multiple Browser and Parallel Execution in TestNG.

Parallel execution of the script on multiple browser can be handled using the TestNG very easily and in a simple way. It means same set of test cases can be run over the more than one web browser. Multiple Browser Handling First of all, we need to understand the concept of Multiple Browser Handling. ItRead 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 weRead 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 isRead More

TestNG – 7 || Use of @BeforeClass and @AfterClass.

BeforeClass and AfterClass annotations are like defining pre-condition and post-conditions in a Program. As in the last chapter, we have read about the BeforeMethod and AfterMethod annotations which runs before and after for each test method. But there are few scenarios where we have to execute any specific method at the starting or end ofRead More

TestNG – 6 || Use of @BeforeMethod and @AfterMethod.

As per the names, BeforeMethod and AfterMethod annotations get executed for each test method/case in a class file. Please note, that methods defined under @BeforeMethod and @AfterMethod are not considered as Test Cases. The result would be generated according to the methods defined under @Test annotations only. BeforeMethod and AfterMethod Sample program to understand theRead More

TestNG – 4 || Let’s understand @Test Annotation and attributes.

Using Annotation is the way to implement additional properties in normal methods. These annotations are pre-defined and entry-point of the programs written in TestNG framework. In the previous chapter, we have seen that keyword(annotation) @Test has been used for each method. @Test Annotation @Test Annotation is a basic and important keyword. It tells the compilerRead More

Site Statistics

  • Users online: 0 
  • Visitors today : 3
  • Page views today : 3
  • Total visitors : 49,317
  • Total page view: 67,888

   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.