Unexpected dialog

Ask general questions here.
stapes
Posts: 206
Joined: Wed Sep 16, 2015 10:55 am

Unexpected dialog

Post by stapes » Fri Dec 11, 2015 1:25 pm

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Unexpected dialog

Post by krstcs » Fri Dec 11, 2015 2:57 pm

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.
Shortcuts usually aren't...