1、安装好Python3
2、安装airtest框架:
pip install airtest
3、安装相关依赖:
pip inatall uiautomator
pip install pocoui
pip install pocoui.driver
4、把air后缀的文件夹放入D:\software\airtest
5、adb连接好手机后,双击批处理文件
脚本如下:
::关闭回显
@echo off
::切换到D盘
D:
::进入D盘的test目录
cd D:\software\airtest
::执行 airtest run 命令
start airtest run vx-test-v1.air --device Android:/// --log log/ --recording
exit