Unplanned
Last Updated: 01 Mar 2019 17:09 by dan
dan
Created on: 01 Mar 2019 13:53
Type: Bug Report
0
HandleAndFail test list option not working with specific OnBeforeUnloadDialogs
in a specific situation with old OnBeforeUnload dialogs appearing, if you have a test list with setting to HandleAndFail execution on unexpected dialog appearing, what happens upon execution is that dialog is handled, but test passes instead of failing, in execution log there is nothing logged that unexpected dialog is shown and handled, but in test studio log there is a strange log that indicates OnBeforeUnload dialog is added to collection, while there is no dialog defined in the test:
1 comment
dan
Posted on: 01 Mar 2019 17:09

Let me clarify the scenario..

GIVEN I have a test scenario that if it fails it would raise the 'Leave Site?' dialog (e.g. leave form with unsaved changes)

WHEN I execute the test manually, I see the dialog, as expected

WHEN I execute the test with an automated script locally in Test Studio Ultimate, I see the dialog, as expected. (logs show the dialog event)

WHEN I execute the test with an automated script remotely in Test Runner, I DO NOT see the dialog. (logs do not show dialog event)

 

My expectations are as follows:

...when the 'Leave Site?' dialog is an unexpected event, I want the dialog handled and the test failed.

... when the 'Leave Site?' dialog is an expected event, I want the dialog handled and the test continued OR I want the dialog event ignored and my code will handle it instead.

 

Thx.