自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (2)
  • 收藏
  • 关注

原创 Configurator

示例代码:package com.mqqzt.john.myuitest;import android.app.Instrumentation;import android.support.test.InstrumentationRegistry;import android.support.test.runner.AndroidJUnit4;import android.support.te

2015-11-24 11:36:33 713

原创 UiWatcher

示例代码:package mqqzt.myuitest6;import android.app.Instrumentation;import android.support.test.InstrumentationRegistry;import android.support.test.runner.AndroidJUnit4;import android.support.test.uiaut

2015-11-23 22:31:46 705

原创 UiObject2介绍

基础动作模拟API 返回 API 说明 void clear() 清除编辑框中的内容 void click() 点击一个对象 <R> R clickAndWait(EventCondition<R> condition, long timeout) 点击一个对象,然后等待在超时时间内条件成立则通过,否则抛出异常 void drag(Point d

2015-11-22 20:42:55 5669 2

原创 BySelector介绍

深度搜索 返回 API 说明 BySelector depth(int exactDepth) 固定层级深度 BySelector depth(int min, int max) 一定范围的层级深度 BySelector maxDepth(int max) 不能超过指定层级深度 BySelector minDepth(int min) 从指定

2015-11-22 15:46:59 1750

原创 UiDevice新增API

InstrumentationRegistry API说明 返回类型 API 解释 static Bundle getArguments() 返回instrumentation参数 static Context getContext() 返回instrumentation对应包的Context static Instrumentatio

2015-11-22 00:52:32 3332

原创 AndroidJUnitRunner常用命令

Instrument命令命令格式:am instrument -w [-r] [-e <Name> <Value>] [-p <FILE>] [--user <USER_ID>|current] [-no-window-animation] [--abi <ABI>] COMPONENT COMPONENT:包名/运行Runner运行所有用例

2015-11-21 17:44:55 1315

原创 JUnit4常用注释

常用注释 解释 @Test 定义一个要测试的方法 @Before 在每一个测试之前,都会被执行的方法,这个方法常常被用来进行一些测试环境的初始化 @After 与@Before进行对应,在测试结束后,做一些清理工作 @BeforeClass 在所有测试开始之前执行,这个方法在类运行的时候运行,而且只会运行一次,所以常常用来做一些所有方法都要依赖到的工作 @Aft

2015-11-21 16:51:18 622

原创 Uiautomator环境搭建

下载依赖库进入https://github.com/,搜索android-testing下载工程googlesamples/android-testing工程中android-testing-master\ui\espresso\BasicSampleBundled\libs目录中就是需要的依赖库(不需要其中的android-support-v4.jar)AndroidStudio配置打开

2015-11-21 14:59:41 678

原创 重启压力测试APK

重启压力测试APK完整实现代码如下:MainActivity.javapackage mqqzt.reboot;import android.content.Context;import android.content.SharedPreferences;import android.os.Bundle;import android.os.Handler;import android.os.

2015-11-21 11:38:36 2250 3

android-testing

googlesamples/android-testing

2015-11-21

重启压力测试APK相关资源

platform.pk8,platform.x509.pem,signapk.jar,reboot.apk

2015-11-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除