Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] general question about how SWTBot works

Hi

  • Am I right that the JUnit-SWTBot-test runs in the same VM as the target application?

Yes,
SWTBot Junit tests runs on a test thread that "feeds" the SWT EventDispatcher with UI Events to reproduce UI actions.

  • Is there a setup to run it in a different VM or even on a different machine?
None that I am aware of.

  • Does this also mean that I need a special build of my application for SWTBot testing (which includes SWTBot plugins and my test plugin), or can SWTBot be temporarily added to a shippable application?
No,
You can build your shippable application; and then build SWTBot tests, add them along with SWTBot bundles to your final application in order to test it. It is just a set of bundles to add to your application.

I am specially interested in these issues because our application needs multi user testing and I need to orchestrate parallel starts of our application on multiple machines. If every instance is running its own test in its VM it is just harder to synchronise.
I think this is a problem that is not related to SWTBot directly. It is more general.
Eclipse IDE is tested automatically on several platforms (OS, arch, JVM...), I don't know how it is done, but I think you can find some stuff on Eclipse wiki and Eclipse platform mailing-list.

HTH,
--

Mickael Istria
R&D Engineer

BonitaSoft - Open your processes
email : mickael.istria@xxxxxxxxxxxxxx

Best Eclipse Modeling Tool 2011

This message and any attachment (the "message") is intended solely for the addressees and is confidential. If you receive this message by mistake, please delete it and notify the sender immediately. Any use not in accordance with its purpose, any out-spread or disclosure, either as a whole or partially, is prohibited except with formal approval. Internet cannot guarantee the integrity of this message, therefore BonitaSoft will not be liable for the message if modified.


Back to the top