Hello! Sorry, currently I am quiet busy. Couldn't you simply call startApplicationInAnotherThread in the constructor of SWTBotTestCase and then set a flag that it's already started?
Best regards, Florian Ketan Padegaonkar-2 wrote: > > > On 18-Oct-08, at 2:15 PM, inTrance wrote: > >> >> Hello! >> >> I experience the same bug! I tried to change back to version 1.3 but >> stuck >> with the same bug! However, running it several times I got a failure >> rate of >> 50%... >> >> It seems that SWTBotTestCase creates a ControlFinder which tries to >> find a >> display... But how should it find a display which is not created yet?? > > Yes, your analysis *seems* to be correct. But I've never seen the > tests fail. Infact all SWTBot tests are written in a similar way. > > I always thought that the static code block should always execute > before any of the variables are initialized. Any information that > disproves it would be helpful. > > Could you try to remove the initialization of the "bot" instance > variable in SWTBotTestCase and see what happens ? > > Other alternative I'm exploring is to make the SWTBot.display() a bit > more redundant by adding a waitFor() condition. > > -- Ketan > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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 > > > -- View this message in context: http://www.nabble.com/Hit-a-BUg-in-SWTBot-2.0-tp19990466p20062651.html Sent from the SWTBot Users List mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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