Category Selenium

Create and Run TestNG XML File in Eclipse

How to create TestNG XML file in Eclipse

What is Testng.xml file? Testng.xml file is a configuration file (XML file) for TestNG in which we can create test suites, test groups, mark tests for parallel execution, add listeners, and pass parameters to test script. It defines the runtime…

TestNG @Test Annotation

Attributes supported by @Test annotation in TestNG

@Test annotation is one of the basic annotations in TestNG. This annotation marks a method as a test method. The test method annotated with @Test annotation tells TestNG that this method is a “test” and it should be executed when…

TestNG Groups

TestNG groups option

TestNG Groups is one of the most popular features supported by TestNG which is not available in the JUnit framework. TestNG framework allows us to perform groupings of test methods. Using TestNG, we can declare a set of test methods…

How to Write TestNG Test Case

TestNG test result

In this tutorial, we will learn how to write test cases in TestNG with the help of examples. Before continue, hope that you have successfully installed TestNG plugin into your Eclipse. TestNG plugin helps to execute TestNG tests or suites…