In pom.xml remove the junit dependency and add testng dependency instead. In this example we are usi ... Read More
Other than TestListenerAdapter we can even implement an interace named ITestListener for our class n ... Read More
When we use dataprovider to provide data to our test cases ,it provides data to test case serially ... Read More
We can set priority to a test and also define upon which test ,this test dependes upon as below. ... Read More
We can run mutiple testng suites by adding them to a suite.xml file like this ``` <suite name=" ... Read More
In a testing method if we add some assert statement like this ``` @Test public void regClass( ... Read More
We can provide a data provider to any of our tests in testng like this ``` @Test(dataProvider=" ... Read More
We can make our custom reports using ireporter listener.Ireporter is an interface. We have to ... Read More
We write a simplt test in testng using @Test annotation ``` @Test public void printmsg(){ Syst ... Read More
To skip a test in testng we use skip exception ``` @Test public void testA1(){ throw new SkipE ... Read More