简体   繁体   中英

How do you test an Android application across multiple processes?

I have the whole project for tablets with resources and already have bunch of test cases written in combination of Robotium, Android and JUnit APIs

In a project which under testing is used special attribute for one of activities android:process=":remote" . At the point where activity with this attribute already loaded I can use Robotium methods but can't get access to the elements on current screen. So seems like I should relaunch instrumentation or initialize new instance of Solo . I tried to do this, but no help, seems like I can't relaunch it in other process from my test. Maybe someone have an experience of testing such kind of applications and know how to implement it with Robotium or using directly android.test API?

You can use IUAutomator, but it works on api >= 16: http://developer.android.com/tools/testing/testing_ui.html

You can always use monkey runner: http://developer.android.com/tools/help/monkeyrunner_concepts.html however it's based on x,y

There is no option to use robotium, neither instrumentation to test multiple processes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM