兼容性测试

1.需要关注的手机版本

4.4+6.0+7.0+8.0。再结合真机进行测试

2.分辨率

可先借助软件进行测试,最后在真机上进行测试

 

monkey 用法

adb shell monkey -p com.xueqiu.android --pct-touch 100 --throttle 500   -vv 50

stf 自动化

1.stf test token (仅为记录测试)

ea714a522fcf4927a6c513980d84d957100ad711d4c447aa9c61fd874e30d212

2. 建立stf.sh  bash文件,将example的shell 中内容拷入 https://github.com/openstf/stf/blob/master/doc/API.md

3. 

执行命令查看是否能执行成功

DEVICE_SERIAL=FKC4C16909000557 STF_URL=http://127.0.0.1:7100 STF_TOKEN=f3ecc1bb8af349e8a3469423cf1de7195053652532ae4e40837c5b72a4fa06ee bash stf.sh

执行成功的话,执行以下命令将三个参数(DEVICE_SERIAL,STF_URL,STF_TOKEN)导入到变量里

export DEVICE_SERIAL=FKC4C16909000557 STF_URL=http://127.0.0.1:7100 STF_TOKEN=f3ecc1bb8af349e8a3469423cf1de7195053652532ae4e40837c5b72a4fa06ee

 

再执行以下命令,查看是否导入正确

bash stf.sh

 

执行以下命令将stf.sh文件中的函数放入到shell中

source stf.sh (或者 . stf.sh   source可简写为.)

 

接下来就可执行以下命令进行操作

add_device 添加设备
remote_connect 远程连接设备
remove_device断开设备


AppCrawler

1.生成demo文件 java -jar appcrawler-2.4.0.jar --demo

2.快速遍历 java -jar appcrawler-2.4.0.jar --capability "appPackage=com.xueqiu.android,appActivity=.view.WelcomeActivityAlias"

3.遍历yml文件 java -jar appcrawler-2.4.0.jar -c demo.yml -o appcrawler

4.遍历指定应用 

java -jar appcrawler-2.4.0-jar-with-dependencies.jar --capability "appPackage=com.xueqiu.android,appActivity=.view.WelcomeActivityAlias" 




 









 

 

posted @ 2018-12-03 23:01  霂雨  阅读(179)  评论(0编辑  收藏  举报