|
|
|
Re: How to launch my SWTbot tests from console? [message #1066558 is a reply to message #1066453] |
Wed, 03 July 2013 03:32   |
Eclipse User |
|
|
|
I see several issues here, which show you did not really use the
documentation ;)
On 07/02/2013 09:27 PM, Lycris Ras wrote:
> -Dorg.eclipse.swtbot.generator.enable=true ^
You should not set this to execute automated tests
> -application
> org.eclipse.pde.junit.runtime.nonuithreadtestapplication ^
I generally use the
org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication (as
described in documentation), and I don't know much about the
configuration of the nonuithreadtestapplication
> I put the .jar of test (com.yahourt.tp.TEST.jar) in
> C:\Tools\Orc\Desk\plugins.
> When I run this script, the RCP is launching but I cannot see any tests
> running. Moreover nothing in TOTO.TXT mentions my "com.yahourt.tup.TEST"
> package. My clue may be that I miss one option after "-testApplication"...
It seems to me that your jar is not correctly installed, so classes
can't be found. Directly copying bundles in plugins/ is something that
has been deprecated for years. Instead, you should use p2 director [1]
to install your jar in the Eclipse instance which is hosting your test
execution. Alternatively, you can use the dropins/ folder [2].
Most people reporting issues with SWTBot test execution actually have
issues to set up a right Eclipse configuration for their test and fail
to install their own bundles. To debug that, you can use the OSGi
console [3] and check whether bundles are available/installed/started.
HTH
[1]
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_director.html&resultof=%22p2%22%20%22director%22
[2]
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fp2_dropins_format.html
[3] http://www.ibm.com/developerworks/library/os-ecl-osgiconsole/
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06310 seconds