So I've learned a bit more about the Instrumentation, but now I am at a point where it HANGS if I have more than one test case running.
I'm running a cross-activity functional test case using InstrumentationTestCase. I have to run handles for the ActivityGroup, currentActivity, and the activityManager. I also instantiate an activity monitor so I know when to wait for other activities to finish executing. The problem now is, I run more than one test, and the instrumentation test runner hangs on the second test case in the stack. Anyone!? On Fri, Apr 17, 2009 at 10:41 AM, z <[email protected]> wrote: > > +1 > > On Apr 16, 8:52 am, Rick <[email protected]> wrote: > > I've been exploring the Android test package and I'm very confused on > > how to implement functional testing for endpoint-to-endpoint. > > > > Consider the example below, I have 4 activities: > > 1. A Contact List Activity > > 2. A View Contact Activity > > 3. An Add/Edit Contact Activity > > 4. A Sync Contact List activity > > > > I want to automate a few tests that will go through multiple test > > cases simulating a user experience: > > From launching the application, to selecting 'Add contact;' opening > > the add contact activity, > > entering data, saving it, going back to the list activity, and > > verifying the new contact was saved properly. > > > > As I understand it, ActivityInstrumentationTestCase<T extends > > Activity> and ActivityUnitTestCase<T extends Activity>, are only > > useful for testing single activity functionality. > > > > But what if I need to switch between 2 or more activities inside a > > single functional test case? > > > > Any help would be greatly appreciated. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

