How can I detect dialog (Logon) existence before handling it ?
Here is a short description of tests structures :
- Navigate to URL
- Logon using Dialog
- Wait for page content loading
- Execute Authentication Test
- Click on button...
Currently, in the application being tested, requirements have changed so that in the Authenticate Test, it is really needed to detect a dialog existence before handling it (step 2) : that means Step 2 can be bypassed sometimes but required some others (please, do not ask why :) ).
That leads to a fail (no dialog to is found for handling) or success (Dialog is found).
What we have tried is marking the ContinueOnFailure property of the Step 2 in Authenticate Test to True but, wrong idea : when calling Authenticate Test within Someother Test (test as step), ContinueOnFailure does not ignore the Logon failed step stopping Someother Test execution to step 1.
A workaround for this could be marking Step 1 in Someother Test ContinueOnFailure property also to true but Noo, we already have tons of tests calling it and we dislike this approach.
So, Is there a solution?