airtest多脚本批量执行生成聚合报告

 

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

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

https://testerhome.com/topics/12486

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

airtest_project 项目demo:https://github.com/dreamhighqiu/airtest_project

项目结构如图所示:

脚本如下:

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

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

进入到项目的根目录:python3 runner.py F:airtest_projectair_case


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

生成报告命令:python3 report.py F:airtest_projectair_caselog

 

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

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

原文地址:https://www.cnblogs.com/dreamhighqiu/p/10991969.html