[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] Launching entire product testing

Try using "-product your.product -application org.eclipse.swtbot...
-testApplication your.application" instead of "-testProduct".

In that particular order.

Do get back to us if you find that it works!

-- 
Ketan
studios.thoughtworks.com | twitter.com/ketanpkr


On Tue, Nov 24, 2009 at 3:45 PM, Charles-Henri Delgado
<charles-henri.delgado@xxxxxxxxx> wrote:
> Dear swtbot developers,
>
>
>
> I am developing a RCP product. I created some swtbot test. I can easily
> execute them from eclipse (Run as … > SWTBotTest).
>
>
>
> Now I want to launch all product tests, from command line.  So I tried by
> executing
>
> this command line:
>
>
>
> java -Xms128M -Xmx368M -XX:MaxPermSize=256M -DPLUGIN_PATH= -classpath
> C:\temp\swtbot\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
> org.eclipse.core.launcher.Main -application
> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication
> -testPluginName com.temis.rcc.modelling –testProduct
> com.temis.rcc.modelling.modellingapplication -clean -data workspace
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,allTestsJunitSummary.xml
> -className com.temis.rcc.modelling.test.pde.TestLearnEditor -os win32 -ws
> win32 -arch x86 -consoleLog –debug
>
>
>
> com.temis.rcc.modelling.test.pde.TestLearnEditor is my main test class
>
> com.temis.rcc.modelling is my plugin jar
>
> com.temis.rcc.modelling.modellingapplication is my product id.
>
>
>
> The problem is that, it does not launch my product. It launches a normal
> eclipse with default plugins, plus mine. And so it begins with the ”welcome
> “ eclipse views. Also my application views are not loaded, and of course my
> test fails.
>
>
>
> How can I get an eclipse launched with only my product views and plugins for
> my tests to be well executed ?
>
>
>
> Thanks,
>
> Charles DELGADO.
>
>
>
> _______________________________________________
> swtbot-dev mailing list
> swtbot-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/swtbot-dev
>
>