简体   繁体   English

Robotium主页按钮并恢复到应用程序

[英]Robotium Home Button and resuming to app

I'm new to Robotium testing and I want to test the following scenario: 我是Robotium测试的新手,我想测试以下情况:

1.) Start the app do something. 1.)启动应用程序执行某些操作。 2.) Press the Home Button.(Close the app) 3.) Resume the app and test if everything is ok. 2.)按下主屏幕按钮。(关闭应用程序)3.)恢复应用程序并测试一切正常。

My question is how can I achieve steps 2 & 3 ? 我的问题是如何实现步骤2和3?

You can't do this with robotium, neither with pure Android Instrumentation framework. 您不能使用robotium来做到这一点,也不能使用纯Android Instrumentation框架来做到这一点。 You should rather take a look on UIAutomator, if you have to test such scenarios. 如果您必须测试此类方案,则应该看一下UIAutomator。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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