I know that I can run an Android instrumentation using abd shell. But I want to run the instrumentation from another Android app.
Basically, I want to create an Android app that tests another Android app using ins开发者_如何学编程trumentation.
Please let me know if there is a better way to create an Android app that can access to the another Android app to run some test codes..
Thanks in advance..
You can run instrumentation from code using startInstrumentation(), like this
startInstrumentation(componentName, null, null);
精彩评论