兼容性测试
STF
安装命令
brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config
npm install -g stf
启动
nohup rethinkdb &
stf local
客户端
token: f41f301e7f344bce97fde241ceaf334f68e77475fd5d45e09c81c6fcab4eb0b8
curl -H "Authorization: Bearer f41f301e7f344bce97fde241ceaf334f68e77475fd5d45e09c81c6fcab4eb0b8" http://192.168.0.100:7100/api/v1/devices | jq
自定遍历回归测试AppCrawler
monkey用法
adb shell monkey -p com.xueqiu.android --pct-touch 100 --throttle 500 -vv 50
Quick Start
appium
java -jar appcrawler-2.4.0-jar-with-dependencies.jar --capability "appPackage=com.xueqiu.android,appActivity=.view.WelcomeActivityAlias"
配置文件
capability:
noReset: "false"
fullReset: "false"
appium: "http://127.0.0.1:4723/wd/hub"
appPackage: com.xueqiu.android
appActivity: .view.WelcomeActivityAlias
automationName: uiautomator2
autoGrantPermissions: true
testcase:
name: "TesterHome AppCrawler"
steps:
- { xpath: 行情, action: click }
- xpath: 美股
selectedList:
- xpath: //*[@resource-id!='' and contains(@class, "Image")]
结合STF运行
- add_device
- remote_debug
- appcrawler/monket/appium
- remove_device
作业1
完成stf的搭建,并把自己的设备连接到stf内进行管理,截图并回复帖子
学会如何释放stf的agent
作业2
- 遍历自己公司的app,只遍历可被点击的控件,遍历深度为3,输出一份遍历报告,把报告的截图和配置贴到回复里