On 01-Jul-08, at 12:58 PM, Somesh Sasalatti wrote: > I'd be interested to know how you debug if you run your tests in the > UI thread. It could get more challenging that what it is right now. > I am using swtbot only to test Eclipse plugins, hence will stick to > the old way as i have it working.
It's hard to debug stuff, so if I need to debug a statement like blah... bot.listWithLabel("Foo").select(new String[]{"foo", "bar"}); I'd split the statement into: SWTBotList l = bot.listWithLabel("Foo"); l.select(new String[]{"foo", "bar"}); set the breakpoint at the select statement and things should now be simpler to debug :) > can i suggest using another branch for experimenting with running > them in the same ui thread and porting it over to the main trunk > only after it has been tested and used by some pilot users. that > way, all the old stuff will still work and we'll be able to benefit > from other bug fixes. Thanks for the tip, I should have done this in the first place :) -- Ketan ------------------------------------------------------------------------- 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