简体   繁体   中英

how to restart killed android application in testing with robotium

I am testing an apk using robotium. In this app, I have a button which kills the app process and relaunches it. I want to test this scenario using robotium. When I click on the button through robotium, app is killed as expected but I cannot see that- it relaunches.

您不能通过robotium来执行此操作,Instrumentation测试与您的应用程序处于同一过程中(如果您查看logcat,则可以看到此信息),这意味着,当您终止应用程序进程时,测试也会随之终止。

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