postman.clearGlobalVariable(“requestObject”);
// 构建数据部分
var schoolname =“山东布尔街学堂”;
var content =“5nagesha”;
// 整合数据
var body = {
‘schoolName’: schoolname,
‘content’:content
};
postman.setGlobalVariable(“requestObject”,JSON.stringify(body));
postman.clearGlobalVariable(“requestObject”);
// 构建数据部分
var schoolname =“山东布尔街学堂”;
var content =“5nagesha”;
// 整合数据
var body = {
‘schoolName’: schoolname,
‘content’:content
};
postman.setGlobalVariable(“requestObject”,JSON.stringify(body));