airtestpython连接airtest及生产报告

1、安装Airtest库

  pip install airtest --index-url https://pypi.douban.com/simple

2、安装poco

  pip install pocoui --index-url https://pypi.douban.com/simple

3、命令行运行脚本及查看日志

  airtest runner 脚本名称.air --device android://127.0.0.1:5037/devicename(手机名) --log log路径

4、生产报告

  airtest report 脚本名称.air --log_root log路径 --outfile report.html(报告路径) --lang zh

原文地址:https://www.cnblogs.com/xwxxh/p/15566158.html