0
当Postman集合中的任何一个请求失败时,报告不会在Newman中生成。执行将结束显示包含文字 “response.toJSON” 错误当任何一项测试失败时,报告不会在Newman中生成
当Postman集合中的任何一个请求失败时,报告不会在Newman中生成。执行将结束显示包含文字 “response.toJSON” 错误当任何一项测试失败时,报告不会在Newman中生成
问题可以通过更改如下来解决:
打开HTML文件(路径:npm\node_modules\newman\lib\reporters\html
)
注释行reducedExecution.response = reducedExecution.response.toJSON();
保存文件并重新执行脚本。
就是这样!
链接到您的答案https://github.com/postmanlabs/newman/issues/1048。 – reinouts