Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] Problem while running SWTBot Test cases from command prompt

Hi,

I am able to create and run SWBot test cases from eclipse IDE. I want to do the same thing from the command prompt. I followed the instructions at : http://wiki.eclipse.org/SWTBot/Ant

I am using eclipse 3.6 and SWTBot 2.0.5 and my Java version is 1.7.0_01.

 

When I issue the command :

java -Xms256M -Xmx768M -XX:MaxPermSize=512M -classpath %ECLIPSE_HOME%/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar;org.eclipse.core.launcher.Main;%ECLIPSE_HOME%/plugins  -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication  -product %TEST_PRODUCT_ID%  -data %WORKSPACE%  ormatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,%ECLIPSE_HOME%/%TEST_CLASS%.xml  formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter  -testPluginName%TEST_PLUGIN_ID%  -className %TEST_CLASS%  -os %OS% -ws WS% -arch %ARCH%  -consoleLog –debug

 

I see the message:

Unrecognized option: -application

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

 

Any ideas on what I am missing? Is there a simpler way to run the same test cases (which I run from eclipse IDE) from command prompt ?

 

Thanks,

Saurabh


Back to the top