I tried:

TestListenerAdapter tla = new TestListenerAdapter();
testng = new ();
List suites = Lists.newArrayList();
suites.add(“c:/tests/testng1.xml”);//path to xml..
suites.add(“c:/tests/testng2.xml”);
testng.setTestSuites(suites);
testng.run();

like here:
How to Create "Runnable jar" file for deployment?

I have this result:
Cannot find class in classpath:first test on suite



Source link https://sqa.stackexchange.com/questions/34488/how-to----testng--for-

LEAVE A REPLY

Please enter your comment!
Please enter your name here