Parallel Test Execution in Selenium using TestNG

What is Parallel Testing in TestNG? Parallel Testing is a testing technique in which multiple tests are executed simultaneously in different threads to reduce execution time. It allows us to execute multiple tests at the same time across different environments instead of running tests one by one or sequentially. Hence, … Read more

How to Create & Run 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 suits, test groups, mark tests for parallel execution, add listeners, and pass parameters to test script. It defines the runtime definition of a test suit. The testng.xml file provides us … Read more

TestNG Annotations with Example

Annotation is a feature in Java that is used to add metadata to Java source. It was introduced in Java 1.5 version. It can be applied to classes, methods, variables, and parameters. The example of certain predefined annotations in Java are @Override, @Deprecated, @SupressWranings, and so on. But Java also allows … Read more

TestNG Assertion in Selenium | Assert Commands

What is TestNG Assertion in Selenium? A TestNG assertion in Selenium is basically blocks of code that are placed in the test cases to check/verify the success of certain conditions in the test script and decide whether the test has failed or passed.  A test will be considered as successful … Read more

How to run Multiple Tests using TestNG XML File

In this tutorial, we will learn how to execute multiple tests in Selenium using a single configuration file named testng.xml file. TestNG allow us to create multiple tests in a single suite. It helps to divide tests into different parts and grouping them based on modules, features, type of test … Read more