1、在Pre-request Script下设置如下:
postman.setGlobalVariable("startTime",Date.parse(new Date("2020/06/12 00:00:10")));
postman.setGlobalVariable("endTime",Date.parse(new Date("2020/06/12 23:59:10")));
2、body下json参数设置如下:
"startTime": {{startTime}},
"endTime": {{endTime}},
网友评论