Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Exception if the workbench has been already closed(Exception on close)
Exception if the workbench has been already closed [message #666629] Thu, 21 April 2011 11:51
No real name is currently offline No real nameFriend
Messages: 4
Registered: May 2010
Junior Member
Hello,
we want to test our product with swtbot but it needs a special close handling. I wrote a own test runner with a run listener. On testRunFinished() I want to close the workbench but in the testingFinished method in the class org.eclipse.ui.internal.testing.WorkbenchTestable there is no check if the display is null and the workbench has been already closed.

The Assert.isTrue(workbench.close()); prevents me from forcing the close of the workbench because of the special handling which is needed I got often an assertion here.

Would it be possible to change this code so that the display will be checked if it is not null or the assertion will be changed to a try { } catch(..)?

Thank you in advance.

Regards,
Marc
Previous Topic:Using JAWS with Table widget
Next Topic:SWTBot in Eclipse dropins
Goto Forum:
  


Current Time: Thu Apr 25 01:11:34 GMT 2024

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

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

Back to the top