一、安装环境准备:
pip install httprunner==2.5.7
pip install har2case
检查是否安装成功:
httprunner -V
hrun -V
「httprunner」安装执行命令

二、执行命令:
har2case my_demo.har —>将har文件转json格式
har2case my_demo.har -2y —>将har文件转yml格式
hrun my_demo.yml —>运行测试用例
运行完成如下图:
「httprunner」安装执行命令
hrun my_demo.yml --report-template report.html -->指定自己的报告模版执行

相关文章:

  • 2021-08-18
  • 2022-01-04
  • 2021-07-28
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-20
  • 2022-12-23
  • 2021-07-17
  • 2021-11-28
  • 2022-01-13
  • 2021-06-28
  • 2022-12-23
相关资源
相似解决方案