var moment = require('moment');
var variable_key= moment().format("YYYY-MM-DD");
pm.environment.set("variable_key",variable_key);
打印结果
var moment = require('moment');
var variable_key= moment().format("YYYY-MM-DD");
pm.environment.set("variable_key",variable_key);
打印结果