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 06:21 Go to next message
Jie Xiao is currently offline Jie Xiao
Messages: 11
Registered: July 2009
Junior Member
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 08:48 Go to previous messageGo to next message
Pascal G is currently offline Pascal G
Messages: 157
Registered: July 2009
Senior Member
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 10:41 Go to previous message
Jie Xiao is currently offline Jie Xiao
Messages: 11
Registered: July 2009
Junior Member
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: Thu Jul 24 00:41:05 EDT 2014

Powered by FUDForum. Page generated in 0.02044 seconds