0
如何在jemmy中發射多個測試類http://java.net/projects/jemmy。我嘗試使用這樣的代碼,但它不起作用。它只啓動一個測試。在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.
}
}
}