junit - Parameterized instrumentation tests on Android -


i'm trying write batched instrumentation test (using activityinstrumentationtestcase2) particular activity change intent each time test runs. can single test, , loop through stopping , restarting activity new intent, not want. 1 reason should separate test runs. other reason is, i'm using spoon generate report when tests finish, , report rightly think ran 1 test.

what treat single test possibly infinite number of tests, , pass data test each time test runs.

unfortunately can't use theories because results in runtimeexception instrumentationtestrunner can't find tests. have luck this?

you create "testing" intent. in order simulate relaunching of application, make method or several methods reset static variables between tests. can test classes within testing intent inside application using

assert("value", myclass.mymethod); resetstatics(); assert(true, myclass,mymethod); resetstatics(); 

i don't know how you, if @ all, how started writing own tests.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -