We can set priority to a test and also define upon which test ,this test dependes upon as below. ... Read More
We can provide a data provider to any of our tests in testng like this ``` @Test(dataProvider=" ... Read More
``` Assert.assertEquals("Good","Goodx"); Assert.assertTrue(1>9 ,"Assertion failed"); Assert.asser ... Read More
In a testing method if we add some assert statement like this ``` @Test public void regClass( ... Read More
We can run mutiple testng suites by adding them to a suite.xml file like this ``` <suite name="M ... Read More
We can make our custom reports using ireporter listener.Ireporter is an interface. We have to ... Read More
In pom.xml remove the junit dependency and add testng dependency instead. In this example we are usi ... Read More
1.Program stops if a assertion fails. If we want our program to continue even after assertion fails ... Read More
Include and exclude is used to run a few testcases out of all test cases in a class as shown in exam ... Read More
DataProvider is used to provide data to a test case. Parameter can be used to provide a single va ... Read More