5.4.2.1 Dealing with occasional dialogs

In the case of occasional dialogs, your Test Case in the test should contain an action which checks that the dialog does not exist (e.g.Check Existence of Window with the parameter false). If the dialog is not visible, the test will continue normally.

If the dialog is present, an error occurs. Add an Event Handler to the Check Existence of Window Test Case that clicks e.g. the cancel button in the window and waits for the window to close. The Event Handler should react to a check failed event, and should use retry as the reentry property. Once the window has closed, the failed Test Step (check existence) will be carried out again. This time, the check will succeed, and the test will continue. The Test Step will be marked as successful on retry.



Copyright BREDEX GmbH 2011. Made available under the Eclipse Public License v1.0.