pm.test("Status code is 200", function () {
var data = JSON.parse(responseBody);
if(data && data.Code==0)
//pm.globals.set('token',data.msg);
pm.environment.set('token',data.Msg);
});
pm.test("Status code is 200", function () {
var data = JSON.parse(responseBody);
if(data && data.Code==0)
//pm.globals.set('token',data.msg);
pm.environment.set('token',data.Msg);
});
本文标题:Postman动态设置环境变量值
本文链接:https://www.haomeiwen.com/subject/xqukoctx.html
网友评论