【发布时间】:2020-05-07 10:23:34
【问题描述】:
使用单机版Postman,如何在Postman预请求脚本中输出一些调试信息?
下面的代码非常适合测试(后请求),但不适用于预请求,因为没有 tests[] 数组。
var jsonData = JSON.parse(responseBody);
tests["key = " + jsonData.key] = true; // debug message
tests["value = " + jsonData.value] = true; // debug message
【问题讨论】:
标签: postman