RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

Is there a way to avoid quiting the app when a test in done? #862

Open Pezhin opened 7 years ago

Pezhin commented 7 years ago

Even in teardown function, I deteled finishOpenedActivities, it will still quit the app. I just want the robotium scripts do some steps and let the app stay there.

retryer commented 7 years ago

Are you using ActivityInstrumentationTestCase2 or ActivityTestRule ? When using Rules the app is closed automatically because of the Rule itself. If that is the case search on how to avoid it. If you run the tests with connectedAndroidTest , currently there isn't a way to avoid uninstalling the app after all tests complete