07-31-2009 04:43 PM
I have a testing app that displays a dialog box and then simulates a "ESC" keypress to dismiss it. This simulates a user interaction.
I need to detect the meeting/calendar reminder notification screen, because it gets displayed on top of my dialog box and the key press I send goes to the reminder screen.
The idea is to fail the test if a reminder or lock screen is present. I don't want to dismiss them.
1. I need to detect this and similar screens and fail the test
2. display my dialog box on top of the reminder and successfully do the test.
My dialog box is:
but still gets overridden by the reminders.
The other situation I can't override is the incoming call screen. Is there a way to detect that screen, so I can fail the test.