On 20-Oct-08, at 8:50 AM, inTrance wrote: > > 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?
Very much possible. The example was merely to demonstrate how SWTBot works. As far as your solution goes, perhaps you'd want to subclass SWTBotTestCase and do stuff in it's constructor instead ? That's what I've done in SWTBot's own test cases as well. I'll move the initialization of the 'bot' instance inside the constructor of SWTBotTestCase, you could subclass it to invoke startApplicationInAnotherThread and maintain state. Does that sound fine to you ? -- 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