如何在Android中使用robotium编写测试用例的主屏幕活动 [英] How to write test cases for the home screen activity using robotium in android

查看:111
本文介绍了如何在Android中使用robotium编写测试用例的主屏幕活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作Robotium编写测试用例的Andr​​oid应用程序之一。
我的要求是写的锁屏和主屏幕与我的测试情况下,测试服。但我无法得到主屏事件和锁屏通过我的仪器测试案例拖动。能否请你帮我在这方面?

I am working on Robotium to write the test cases for one of the Android application. My requirement is to write the test suits for the lock screen and home screen with my test case. But I am unable to get home screen events and lock screen dragging through my instrumentation test case. Can you please help me out in this area?

推荐答案

的锁屏是不是一个正常的应用程序,所以你不能够仪它(这意味着使用robotium你不能测试它)。

The lock screen is not a normal application, so you won't be able to instrument it (which means you can't test it using robotium).

主屏幕是启动应用程序的一部分,你应该能够仪并测试它,你会用robotium任何其他应用程序。

The home screen is part of the Launcher app, and you should be able to instrument it and test it as you would with any other app using robotium.

这篇关于如何在Android中使用robotium编写测试用例的主屏幕活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆