Page 1 of 1

Unexpected dialog

Posted: Fri Dec 11, 2015 1:25 pm
by stapes
In you Code Examples you have one entitled 'Handling unexpected Dialogs'.

http://www.ranorex.com/support/user-gui ... html#c4678

This is really a big misnomer, because the example shown actually knows the dialog it is not expecting - it is hardly unexpected.

How do I watch for a dialog popping up I really don't expect, and have never seen before?

On iPad occasional dialogs pop up such as 'Vote for this App!" and other such rubbish.

Re: Unexpected dialog

Posted: Fri Dec 11, 2015 2:57 pm
by krstcs
When they use the word "unexpected" in that context it is referring to the timing of the popup, not the actual existence of the popup.

As a tester, it is our job to know every popup that could possibly happen in our SUTs. That is just part of testing.

The issue is whether we know WHEN the popup will occur. Things like network slowness alerts, for example, might need to be handled, but we may not know when or if they will popup in a given test.

Under ideal situations, we would be able to control all of this and wouldn't need the popup watcher, but no one tests under ideal conditions.