pm.sendRequest是异步请求,如果要顺序执行,需嵌套使用get请求发送:constaa='https://www.baidu.com';pm.sendRequest(aa,function(err,response){ if(err){ console.log(err);//打印日志 }else{ varbb=response.json(); pm.variables.set("cc",bb.data);//保存变量 } });post请求发送:constURL=“https://ww