On 03/15/2012 05:20 PM, Talwalkar, Saurabh wrote:
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.
what are those semicolons (;) you use after specifying your classpath?
org.eclipse.core.launcher.Main must be separated from classpath with a
space.
I more generally use "java -jar
plugins/org.eclipse.equinox.launcher_*.jar -application ...."
HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev