https://www.v2ex.com/api/nodes/show.json?name=python get请求
断言:
tests["Body matches string"] = responseBody.has("这里讨论各种 Python 语言编程话题,也包括 Django,Tornado 等框架的讨论。这里是一个能够帮助你解决实际问题的地方");
var data = JSON.parse(responseBody);
tests["test id"] = data.id === 90;
tests["test name"] = data.name === "python";
var name = data['name'];
console.log("name:",name);
var md5 = CryptoJS.MD5(name).toString();
console.log("md5:",md5);
postman.setEnvironmentVariable("md5", md5);
然后下一个接口传参md5