可在Pre-request Script中书写JavaScript代码,最后通过调用postman的setGlobalVariable函数置入全局变量:postman.setGlobalVariable("now",Date.parse(new Date())); 这是毫秒数,传到后台编程系统默认的格式
转载于:https://my.oschina.net/u/252854/blog/2875701
可在Pre-request Script中书写JavaScript代码,最后通过调用postman的setGlobalVariable函数置入全局变量:postman.setGlobalVariable("now",Date.parse(new Date())); 这是毫秒数,传到后台编程系统默认的格式
转载于:https://my.oschina.net/u/252854/blog/2875701