Robotium的示例 [英] Examples for Robotium

查看:68
本文介绍了Robotium的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一种名为Instrumentation的工具测试工具,它对Android应用程序的黑匣子测试非常简单. 我们可以按如下方式使用它:

I found a tool for Instrumentation Testing called Robotium.It is easy and simple for black box testing of android applications. We can use it as follows:

    solo.clickOnText("Other");
    solo.clickOnButton("Edit");
    assertTrue(solo.searchText("Edit Window"));
    solo.enterText(1, "Some text for testing purposes")
    solo.clickOnButton("Save");
    assertTrue(solo.searchText("Changes have been made successfully"));
    solo.clickOnButton("Ok");
    assertTrue(solo.searchText("Some text for testing purposes"));

有人能对此有更多的想法吗? 谁能告诉我们如何将其用于网络视图和列表视图等.

Can any body have more idea about it? Can any one please tell how can we use it for webviews and listviews etc.

推荐答案

请参阅质量检查Wiki页面,以获取有关Robotium支持的常见问题和解答:

Please see the QA wiki page for common question and answers on what Robotium supports: http://code.google.com/p/robotium/wiki/QuestionsAndAnswers

也请转到入门"页面: http://code.google.com /p/robotium/wiki/Getting_Started

Also please go to the Getting Started page: http://code.google.com/p/robotium/wiki/Getting_Started

您将找到一个示例测试项目,可以下载该示例并查看其想法.您也可以从以下网址下载Javadoc: http://code.google.com/p/robotium /downloads/list 查看当前功能.

There you will find an example test project that you download and look at for ideas. You can also download the javadoc from: http://code.google.com/p/robotium/downloads/list to see what functionality there is at the moment.

有关教程,请访问: http://code.google.com/p/robotium /wiki/RobotiumTutorials

此致, 雷纳斯

这篇关于Robotium的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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