In this article, we explain how TestNG works in the background and what is TestNG architecture. We will see examples creating the TestNG object and run the test class from code, It also adds a TestListener.

Read more →

Retry or ReRun failed Test cases multiple times by using IRetryAnalyzer Interface. The article explains ways to rerun the TestNG tests when they are failed.

Read more →

TestNG lets you pass parameters directly to your test methods from the testng.xml file. You can also mark some parameters as optional.

Read more →

TestNG allows the tests to run in parallel or multi-threaded mode. Parallel test are helpfull for reduction in test execution time.

Read more →

TestNG Listeners listen to the event defined in the TestCase scripts and take action accordingly.

Read more →

How to pass multiple parameters into a @Test method using DataProvider in TestNG. DataProvider can be helpful in verifying a multiple set of Data against functionality.

Read more →

How to use the dependsOnMethods and dependsOnGroups attributes @Test annotation for the dependencies and how to use alwaysRun attribute with dependencies.

Read more →

How to run multiple TestNG test classes together as a suite.

Read more →

How to Enable and Disable particular Test in our TestNG Test Class. TestNG can decide which Test should be included in the run or ignored.

Read more →

How to skip a Test in TestNG and marking a test as Skip should be present in Test Report as Skiped testcase.

Read more →