Run more than one class programmatically
I want to run more than one class programmatically. Can anyone tell me the best way to run more than one c开发者_开发百科lass one by one programmmatically?
Something like this maybe?
TestNG result = new TestNG();
result.setTestClasses(new Class[] { A.class, A.class });
result.run();
精彩评论