PostMan 自动化测试断言列子

105 阅读1分钟

if(responseCode.code === 200){ var jsonData = JSON.parse(responseBody); if(jsonData.errorCode=="0000"){ tests["成功"] = true; }else{ tests["失败"] = true; } }else{ tests["失败"] = false; }