Hi All , I experience same issue to test alert / promt alert. I implement activityinstrumentationtestcase to test all stuff but not able to make automatically selection of alert box option's(OK/Cancel/Remind me later). Any suggestion would be appreciate. -- Same On Wednesday, 14 January 2009 15:30:53 UTC+5:30, singlemalt wrote:
> I'm attempting to write some integration tests using the Activity > instrumentation test case framework. > > Here's the scenario: > (1) An Activity presents some data as a form for the user to > complete. > (2a) If data submission is successful the form Activity launches a > new Activity. > (2b) If data submission fails an alert prompt is displayed by the > form Activity . > > I can test the success path (2a) using an ActivityMonitor to check the > launched Activity but am unsure how to write a test that verifies the > alert prompt is raised if the failure path (2b) is hit. I can see ways > to do this by adding special flags to the form Activity but would > prefer to avoid altering the system under test with functionality that > is only used for test. > > Any ideas? > > Thanks, > Doug. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

