Skip to toolbar

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 – 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 haveRead More

TestNG – 10 || Use @BeforeTest and @AfterTest Annotations.

@BeforeTest and @AfterTest annotations invoke specific methods around a Test in a TestSuite. To understand these annotations let’s revisit @BeforeClass and @AfterClass annotations. As we know that in a Class file, methods marked with these annotations would be executed before and after all the test methods get executed. The same way methods marked as @BeforeTestRead More

TestNG – 9 || Let’s move deep into the Test Suites.

Test Suites widely used to organize and execute test cases from multiple class files. It also helps to create various test sets using these classes and methods. To understand this, we need to create different class files. Let’s create below class files using specific methods. LaunchAndLogin.java launchBrowser() launchURL() login() MyOrders.java viewOrders() placeOrder() MyProfile.java editProfile() saveProfile()Read More

TestNG – 2 || Installation process and a sample program of TestNG.

The installation process is very simple and it’s like installing an extension in a chrome browser. Installation Process Installation Process of TestNG software is very simple and easy. Just a few clicks and framework is ready for the use. Navigate to Help > Install new Software Click Add… Add Repository > Name : Enter “TestNG”Read More

TestNG – 1 || Introduction and benefits of TestNG Framework.

TestNG framework (where NG stands for Next Generation) is a testing framework which supports JAVA language. Mainly it is used while working on Key Driven Framework. Mainly, it helps any programmer or automation engineer from two sides: Create and Organize Test Cases Execute Test Cases in a systematic way and generate Reports. Things to RememberRead More

Site Statistics

  • Users online: 0 
  • Visitors today : 2
  • Page views today : 3
  • Total visitors : 48,110
  • Total page view: 66,245

   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.