Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Thread and Object in SWTBot
Thread and Object in SWTBot [message #499192] Fri, 20 November 2009 11:21 Go to next message
Eclipse UserFriend
I don't know much about thread. A question about Thread. In SWTBot, is each test case a thread?
I have thougt in my test cases, because I need a swtBotTree "desktopTree" each time in the test cases, can I define it into static and call this object by other test cases?
tearDown() is for each class, not for each testXX()?

Thanks very much!
Re: Thread and Object in SWTBot [message #499230 is a reply to message #499192] Fri, 20 November 2009 13:48 Go to previous messageGo to next message
Eclipse UserFriend
Jie Xiao wrote:
> In SWTBot, is each test case a thread?
Nope, they are all in the same thread, the WorkbenchTestable thread.

> I have thougt in my test cases, because I
> need a swtBotTree "desktopTree" each time in the test cases, can I
> define it into static and call this object by other test cases?
Yes this is probably doable.

> tearDown() is for each class, not for each testXX()?
tearDown() is called after each testXX(), not for each class.

> Thanks very much!
No problem. Hope this helps.

--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Re: Thread and Object in SWTBot [message #499262 is a reply to message #499230] Fri, 20 November 2009 15:41 Go to previous message
Eclipse UserFriend
Pascal G, Thanks very much! Razz
Previous Topic:Finding a CTabItem by Text Regexp, or How to make custom matchers
Next Topic:table.contextMenu()
Goto Forum:
  


Current Time: Wed Feb 19 06:34:01 GMT 2025

Powered by FUDForum. Page generated in 0.06877 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top