摘要: 背景介绍:最近在做Robotium自动化测试,使用到solo.takeScreenshot()函数以在测试过程中截图,但此函数需要被测试APP具有权限。在只有被测试APP的apk文件的情况下,修改apk文件后缀名为zip,解压缩后,修改AndroidManifest.xml文件,删除META-INF... 阅读全文
posted @ 2014-09-19 10:50 思考的犀牛 阅读(682) 评论(0) 推荐(0)
摘要: 原文地址:http://www.cnblogs.com/xirihanlin/archive/2010/06/15/1758677.htmlAndroid提供了一系列强大的测试工具,它针对Android的环境,扩展了业内标准的JUnit测试框架。尽管你可以使用JUnit测试Android工程,但An... 阅读全文
posted @ 2014-09-18 10:40 思考的犀牛 阅读(1062) 评论(0) 推荐(0)
摘要: Class By定义了页面元素的定位和支持哪些页面元素(至少我是这么理解的),使用及其简单:Used in conjunction with the web methods. Examples are By.id(String id) and By.cssSelector(String select... 阅读全文
posted @ 2014-09-15 15:00 思考的犀牛 阅读(196) 评论(0) 推荐(0)
摘要: 框架目的: Robotium is an Android test automation framework that has full support for native and hybrid applications. Robotium makes it easy to write power... 阅读全文
posted @ 2014-09-15 11:25 思考的犀牛 阅读(330) 评论(0) 推荐(0)
摘要: The test application demonstrates these key points:An Android test is itself an Android application that is linked to the application under test by en... 阅读全文
posted @ 2014-09-05 15:50 思考的犀牛 阅读(204) 评论(0) 推荐(0)
摘要: 一、RobotFramework1.工具介绍:Robotframework在测试中作为组织测试用例和BDD关键字的平台,主要使用RIDE进行管理,它不是一个工具,而仅仅是一个框架,使用Python进行开发,同时支持WEB测试(Selenium)、Java GUI 测试,启动线程、终端、SSH等、支持... 阅读全文
posted @ 2014-09-05 10:02 思考的犀牛 阅读(2193) 评论(1) 推荐(1)
摘要: public abstract classActivityInstrumentationTestCase2extendsActivityTestCase//继承自ActivityTestCase类This class provides functional testing of a single a... 阅读全文
posted @ 2014-09-04 18:24 思考的犀牛 阅读(316) 评论(0) 推荐(0)
摘要: Android是在Linux2.6的内核基础之上运行的,提供核心系统服务:安全、内存管理、进程管理、网络组、驱动模型。内核部分还相当于一个介于硬件层和系统中其他软件组之间的一个抽象层次。但是严格来说它不算是Linux操作系统。Android系统的系统层面的底层是Linux,中间加上了一个叫做Dalv... 阅读全文
posted @ 2014-09-01 16:26 思考的犀牛 阅读(504) 评论(0) 推荐(0)