Thread and Object in SWTBot [message #499192] |
Fri, 20 November 2009 11:21  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.*
|
|
|
|
Powered by
FUDForum. Page generated in 0.06877 seconds