I try to GUI test a RCP application. It has a startup.jar library which can be 
executed with java -jar. The starting class is org.eclipse.core.launcher.Main

If I start the SWT Bot recorder with this argument, it does not show the 
recorder controls. But it starts the RCP application with its GUI.

On the console I get this exception:

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:36)

I know you said, that the recorder is in an very early stage. Maybe this is 
just not supported. Or am I doing something wrong?

The guy who is responsible for the RCP application told me it has to be started 
this way (with org.eclipse.core.launcher.Main in the startup.jar file). I had 
asked him to tell me the GUI class which is actually started by the Eclipse 
class.

       
-------------------------------------------------------------------------
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

Reply via email to