![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
liuy5277
这个作者很懒,什么都没留下…
展开
-
android-x86 compile
OS: ubuntu 10.0.4 32bitProcessor: x86 Atom CPU N4501. Add the following sources to /etc/apt/sources.list deb http://tw.archive.Ubuntu.com/ubuntu/ jaunty main restricted universe multiverse deb-src http://tw.archive.Ubuntu.com/ubuntu/ jaunty main restricte原创 2011-05-19 19:16:00 · 1419 阅读 · 0 评论 -
UiAutomator 测试环境搭建
1. 安装Centos 系统,镜像下载地址mirrors.163.com(请下载centos7, 安卓sdk里面的adb需要用到glibc,6里面的glibc版本已经不再受支持)2. 安装必要的编译包,gcc,make,java-jdk-devel3. 下载ant,解压,并加入到path里面去, 地址:http://ant.apache.org/bindownload.cgi4. 下载原创 2016-02-23 15:08:29 · 1301 阅读 · 0 评论 -
UiAutomator实现打电话功能
测试代码:package com.yang.clicktest;import com.android.uiautomator.core.UiDevice;import com.android.uiautomator.core.UiObject;import com.android.uiautomator.core.UiObjectNotFoundException;import原创 2015-09-22 17:38:06 · 2966 阅读 · 0 评论 -
UiAutomator之删除在最近运行的所有app
package com.yang.clicktest;import com.android.uiautomator.core.UiDevice;import com.android.uiautomator.core.UiObject;import com.android.uiautomator.core.UiObjectNotFoundException;import co原创 2015-09-18 15:25:52 · 4101 阅读 · 0 评论 -
UiAutomator 测试报告查看与分析
报告:--------------------------------执行测试前------------------------------------------INSTRUMENTATION_STATUS: numtests=4INSTRUMENTATION_STATUS: stream=com.yang.clicktest.UiClickTest:INSTRU原创 2015-09-17 22:05:08 · 5914 阅读 · 0 评论 -
Appium junit之自定义多次执行部分case的次数以及顺序,仅运行rePublish()即可
@Test public void publishText(){ } @Test public void publishPicAndText(){ } @Test public void rePublish(){ for(int i = 0; i原创 2015-09-18 11:03:01 · 2957 阅读 · 0 评论 -
Appium junit测试之定义case执行优先级
@FixMethodOrder(MethodSorters.NAME_ASCENDING) // 按case名称字母顺序排序public class SahalaTest{@Before ...@After ....@Testpublic void T1_xxx( ){}@Testpublic void T2_yyy( )原创 2015-09-18 10:52:41 · 2216 阅读 · 0 评论 -
Appium 测试,实现上下左右滑动页面
SwipeTo swipeTo = new SwipeTo(); swipeTo.swipeToUp(driver, 1000);package SahalaTest;import io.appium.java_client.android.AndroidDriver;public class SwipeTo { public原创 2015-09-18 10:41:10 · 9588 阅读 · 0 评论 -
Appium 测试之setUP
@Beforepublic void setUp() throws Exception {File classPathRoot = new File(System.getProperty("user.dir"));File appDir = new File(classPathRoot, "apps/Sahala");File app = new File(appDir, "sah原创 2015-09-18 10:47:19 · 1850 阅读 · 0 评论 -
shell脚本 集成测试多个UiAutomator case类
shell 集成脚本:root-->cat /bin/run #!/bin/bashUSAGE="Command Sample: run 2 /root/workspace/UiClickTest/ UiClickTest com.yang.clicktest"if [ $# != 4 ] ; then echo " Need 4 parameters: android原创 2015-09-17 20:09:06 · 2042 阅读 · 0 评论 -
UiAutomator 简单测试脚本示例
package com.yang.clicktest;import com.android.uiautomator.core.UiDevice;import com.android.uiautomator.core.UiObject;import com.android.uiautomator.core.UiObjectNotFoundException;import com.原创 2015-09-17 21:49:33 · 3307 阅读 · 0 评论 -
Ice Cream Sandwich 4.0 Build Guidance
Build Server:CentOS 6.0 X86_64TargetAndroid Version: Ice Cream Sandwich 4.0JDK: 1.6.0_29OS Image Download site: http://mirrors.163.com/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-bin-DVD1.isoAnd原创 2011-12-02 13:56:41 · 1097 阅读 · 0 评论 -
Java自动化测试之测试常用功能集集锦(UiAutomator、Selenium等)
生成当前时间: SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); System.out.println(df.format(new Date()));生成随机数: Random ra = new Random( ); int i = ra.nextInt( 10原创 2015-09-18 11:10:10 · 2329 阅读 · 0 评论