Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Error Message Dialog on startup of RCP(Error Message Dialog on startup of RCP will block the entire test.)
icon5.gif  Error Message Dialog on startup of RCP [message #757048] Wed, 16 November 2011 08:55 Go to next message
Andreas Heinchen is currently offline Andreas Heinchen
Messages: 6
Registered: November 2011
Junior Member
We are trying to test our application using Jubula. One problem that we have spotted is that error dialogs shown during start up of our RCP application will prevent Jubula as we cannot handle that message dialog.

How can we handle dialogs that show up very early in the RCP?
Re: Error Message Dialog on startup of RCP [message #757227 is a reply to message #757048] Thu, 17 November 2011 08:52 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1152
Registered: July 2009
Senior Member
Hi,

Have a look at this thread that deals with Windows messageboxes:

http://www.eclipse.org/forums/index.php/mv/msg/243895/732079/#msg_732079

The answers in it can be used for anything that we can't "get to" in the test (including dialogs that are shown before the plugins for RCP are loaded).

Test design aside, another suggestion is to get rid of the error dialogs Wink. Having said that, the suggestions in the thread above should let your test continue even if there is a problem at startup.

Best regards,
Alex
Re: Error Message Dialog on startup of RCP [message #757403 is a reply to message #757227] Fri, 18 November 2011 09:46 Go to previous messageGo to next message
Andreas Heinchen is currently offline Andreas Heinchen
Messages: 6
Registered: November 2011
Junior Member
Thanks for the fast reply.

The problem that Mr. Crouse had in the thread you linked slightly different then we have.

Our problem is that the blocking dialog is shown during the startup of the AUT blocks the start up of the AUT before jubula's rcp support bundle is started.


Fri Nov 18 10:12:21 CET 2011 AUT Agent: connection established
Fri Nov 18 10:12:21 CET 2011 Database: Connecting...
Fri Nov 18 10:12:23 CET 2011 Database: Connection established.
Fri Nov 18 10:12:23 CET 2011 Database: Loading project: Viewer Tests
Fri Nov 18 10:12:25 CET 2011 Database: Project loaded: Viewer Tests
Fri Nov 18 10:12:25 CET 2011 Project: Checking completeness
Fri Nov 18 10:12:25 CET 2011 AUT: Starting AUT: DBWB4Mill

At this step the test execution hangs and no test case is executed.

For us this is the first steps into automated UI tests and our first lection in DFT is that we shouldn't use blocking dialogs that might block the startup of the application Cool

One case where that happens was the dialog that displayed that there is no valid license. That dialog is a jface dialog. The solution is to call dialog.setBlockOnOpen(false); so that the test developer can handle the dialog.

Another case is more complicated and needs to be blocking. Today, I will look if I can find a way to ensure that jubula's rcp support bundle is started as soon as possible.

Re: Error Message Dialog on startup of RCP [message #757420 is a reply to message #757403] Fri, 18 November 2011 11:55 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1152
Registered: July 2009
Senior Member
You're right, I'd forgotten that no steps at all can be executed until the AUT has started. Thanks for the feedback!

Alex

Previous Topic:Problem Mapping Objects (RCP)
Next Topic:How to find what projects and versions are available from the default embedded H2 database
Goto Forum:
  


Current Time: Sun Sep 21 14:12:15 GMT 2014

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

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