Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to restart RCP application for each case?
How to restart RCP application for each case? [message #692300] Mon, 04 July 2011 07:20
Yongqiang Li is currently offline Yongqiang Li
Messages: 2
Registered: October 2010
Junior Member
Hi all,

Today I installed SWTBot and it was very handy.
I think we will use it to write UI test cases.

Here I have a question.
When I write a test case, I want each one should be standalone, which means every case may start at RCP application starts.
So in my test case, maybe there will be such code at the end of each code:
bot.menu("File").menu("Exit").exit();


But as I tried, in one case, if the Exit menu is clicked, following cases can't be run. There will be an error about "Can't find the display".

So can I restart the RCP application for each test case?
Or I should change my mind of writing test cases?

Thanks in advance.

Yongqiang
Previous Topic:cannot find Package Explorer if just import a project but okay after creating a new project
Next Topic:Radio button selection ignored 3.7
Goto Forum:
  


Current Time: Sat Oct 25 18:13:12 GMT 2014

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

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