uiautomator如何编译运行
来源:互联网 发布:霾表 知乎 编辑:程序博客网 时间:2024/05/21 14:40
写完uiautomator测试用例后,如何进行操作,有种方法可以写main方法,但是这里用最笨的方法一步步来,提供入门者调试专用,以后可以自己写.bat文件一次性操作运行。
一、工程目录下生成build.xml文件,
android create uitest-project -n testui -t 2 -p D:\PublicPressureTsetCases修改:(1)testui是将要生成jar的名字;(2)1是sdk的id编号可以android list查看(版本低的那个有些不识别);(3)最后一个是项目工程的路径
二、编译build.xml文件,生成jar包(.xml目录下编译,生成bin文件夹,生成的testui.jar在里面)
ant build
三、复制jar至手机中
adb push D:\PublicPressureTsetCases\bin\testui.jar /data/local/tmp
修改:(1)修改jar包所在的路径
四、运行jar包
adb shell uiautomator runtest testui.jar -c testpack.auto
修改:(1)tastui.jar包名;(2)testpack.uiauto项目中包和类的名称,testpack包名,uiauto类名
阅读全文
0 0
- uiautomator如何编译运行
- Uiautomator编译运行的自动化
- Android UiAutomator编译与运行测试代码
- Android UiAutomator环境配置与编译运行
- Android UiAutomator环境配置与编译运行
- UiAutomator配置环境与编译运行
- 01Android UiAutomator环境配置与编译运行
- uiautomator如何实现脱机/脱离USB数据线运行脚本
- java+uiautomator 打包运行
- 命令行运行uiautomator
- 如何调试 android UIAutomator ?
- uiautomator如何截图
- UiAutomator运行命令时传多个参数
- Android Studio下运行UiAutomator
- uiautomator一个简单脚本运行
- android UiAutomator如何把运行结果写到html文档里
- EditPlus如何编译运行java
- Uiautomator 编译调试小工具
- PAT 1030. 完美数列(25)
- 指针和malloc构建一个可变二维数组
- 动物声音模拟器
- 常用查询库 stack、queue、priority_queue
- 网站维护组朱博楠2017.12.04-2017.12.08
- uiautomator如何编译运行
- eclipse中的jsp文件编码的设置
- C# this,base,new关键字
- 关于C++中的前置声明
- WRTnode-使用U盘
- 3333
- tomcat知识点总结
- 笔记杂记
- pagehelper分页