02 2022 档案
摘要:// md5加密var strmd5=CryptoJS.MD5("admin123").toString();pm.collectionVariables.set('passwordmd5',strmd5);
阅读全文
摘要://从响应数据中,获取 user_id var jsonData=pm.response.json(); //获取响应数据 pm.collectionVariables.set("get_userid",jsonData.user_id); //从响应数据中,获取 token var jsonDat
阅读全文
摘要://获取时间戳 var times = Date.now().toString() //通过 var 定义变量,只有脚本可以使用// 设置一个 postman中可以使用的变量 pm.collectionVariables.set("username", times);
阅读全文
摘要:postman读取变量用两个中括号中间加变量名,{{变量名}}
阅读全文
浙公网安备 33010602011771号