|Re: How to launch my SWTbot tests from console? [message #1066558 is a reply to message #1066453]
||Wed, 03 July 2013 07:32
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
I see several issues here, which show you did not really use the |
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
> org.eclipse.pde.junit.runtime.nonuithreadtestapplication ^
I generally use the
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
> 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 
to install your jar in the Eclipse instance which is hosting your test
execution. Alternatively, you can use the dropins/ folder .
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  and check whether bundles are available/installed/started.
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.02897 seconds