httprunner2生成报告问题

作者: LeslieFind | 来源:发表于2020-10-21 11:43 被阅读0次

执行hrun后,到生成报告时报:[Errno 22] Invalid argument: 'reports\2020-10-21T03:21:36.858795.html'

定位:

1、这个报错由于参数问题,查了因为这里时间不能用冒号

2、由于这里的名称是httprunner自动生成的,所以找一下源码中这里的命名

image.png
image.png

找到指定的代码行进行修改

image.png

相关文章

网友评论

    本文标题:httprunner2生成报告问题

    本文链接:https://www.haomeiwen.com/subject/csbsmktx.html