[AGR] java.lang.NullPointerException, AbstractTestExecutionService [message #110099] |
Mon, 27 August 2007 03:10  |
Eclipse User |
|
|
|
Hello all !
I'm trying to run a test with the AutomationClientAdapter, but when I run
the test I have an error:
java.lang.NullPointerException
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:507)
at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
at java.lang.Thread.run(Unknown Source)
My code is:
package test;
import java.util.Properties;
import
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter;
public class Lanc {
static String eclipsePath = new String("C:\\Program Files\\tptp\\eclipse");
static String ModemPath = new String("C:\\ProgramFiles\\Modem\\Modem");
/**
* @param args
*/
public static void main(String[] args) {
// Create the Java adapter associated with the specified Eclipse home
AutomationClientAdapter automation = new
AutomationClientAdapter(eclipsePath.toString());
// Create and configure a properties object
Properties properties = new Properties();
properties.setProperty("workspace", ModemPath.toString());
properties.setProperty("project", "Modem");
properties.setProperty("suite", "mod.testsuite");
// Execute the service named below using the configured properties
automation.execute("org.eclipse.hyades.test.tools.core.execute ",
properties);
}
}
Thanks for your help !
Pierre
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06122 seconds