airtest 多airtest脚本批量执行

 

官网教材:新手入门见(官网教材)

http://airtest.netease.com/docs/cn/index.html

https://testerhome.com/topics/12486

https://testerhome.com/topics/17892 (入门教程详细讲解)

编写的demo

airtest_project.zip

项目结构如图所示:

脚本如下:

  1. 实现了多case同时运行生成聚合报告
  2. 不同设备运行同一脚本

脚本执行方法:(安装的python3环境)

进入到项目的根目录:python3 runner.py F:\airtest_project\air_case


执行脚本之后,log文件夹多出xx.air生成的日志内容:

生成报告命令:python3 report.py F:\airtest_project\air_case\log

 

执行生成报告脚本之后,生成聚合报告summary.html

聚合报告summary.html,内容如下,可进入对应的xx.air脚本对应的文件名,查看执行结果

猜你喜欢

转载自www.cnblogs.com/dreamhighqiu/p/10991969.html
今日推荐