如何在 Jemmy http://java.net/projects/jemmy中启动多个测试类。我尝试使用这样的代码,但它不起作用。它只启动一项测试。
public class Controller {
public static void main(String[] args) {
try {
Class[] testClasses=AllClassesInPackageFinder.getClasses("test");//finds all classes in package with test.
String[] classFullNames= new String[testClasses.length];
for (int i=0; i<testClasses.length; i++){
classFullNames[i]=testClasses[i].getName();
}
org.netbeans.jemmy.Test.main(classFullNames);
} catch (ClassNotFoundException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
}