Hi Hans, we use SWTBot to test a RCP application and integrated it into the maven build, see [1] for the pom.xml.
The resulting command line looks like this: ----------------------------------------------------------- java -classpath plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch x86_64 -application net.sf.swtbot.eclipse.headless.swtbottestapplication -data workspace formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,workspace/test-result.xml -testPluginName org.apache.directory.studio.test.integration.ui -className org.apache.directory.studio.test.integration.ui.AutomatedSuite ----------------------------------------------------------- Kind regards, Stefan [1] http://svn.apache.org/viewvc/directory/studio/trunk/test-integration-ui/pom.xml?view=markup Hans Schwaebli schrieb: > It does not only apply to the recorder. I cannot automate anything > because the display is null. I used the same statements to start the GUI > like you are doing it in your examples. > > Did you test RCP applications with SWT Bot? Does it work with RCP > applications? The recorder does not matter so much, as long as we can > test RCP applications with SWT Bot. > > > > */Ketan Padegaonkar <[EMAIL PROTECTED]>/* wrote: > > I've already re-iterated that the recorder is work in progress, use it > at your own risk. There's little support for most controls, and is not > worth the effort to look into. > > There's also no support for RCP in the recorder. > > On 12-Jun-08, at 4:53 PM, Hans Schwaebli wrote: > > > Exception in thread "main" java.lang.IllegalStateException: Was > > expecting a display to appear. > > at > > net > > .sf > > .swtbot > > .recorder > > .ui.SWTBotRecorderUI.waitForDisplayToAppear(SWTBotRecorderUI.java:184) > > at > > net > > .sf > > .swtbot > > .recorder.ui.SWTBotRecorderUI.initialize(SWTBotRecorderUI.java:65) > > at net.sf.swtbot.recorder.ui.Main.start(Main.java:51) > > at net.sf.swtbot.recorder.ui.Main.main(Main.java: > > Cheers, > Ketan Padegaonkar, > I blog... therefore I am... http://ketan.padegaonkar.name > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > SWTBot-users mailing list > SWTBot-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > SWTBot-users mailing list > SWTBot-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ SWTBot-users mailing list SWTBot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse