Httprunner report优化

1. 在查看报告时,有时候报告中会出现LazyString($myattrId),如下

 

解决办法:

    1. 找到report template文件,一般在httprunner安装目录下:xxxx \httprunner\report\html 
    2. 打开文件template.html 
    3. 将<td>{{validator.expect | e}}</td>  修改为  <td>{{validator.expect_value | e}}</td>
    4. 保存template.html
    5. 再次运行,查看报告
    6.  

       

 

posted on 2021-02-19 20:06  姜丝  阅读(40)  评论(0编辑  收藏  举报

导航