/序列化/
var jsonData=JSON.parse(responseBody)
tests[“获取data success”]=jsonData.msg==“success”
pm.test(“Status code is 200”, function () {
pm.response.to.have.status(200);
});
if (jsonData.data)
{
tests[“获取deltaID成功”]=true
postman.setGlobalVariable(“deltaID”,jsonData.data.version.deltaID);
}
else
{
tests[“获取deltaID失败”]=false
}