postman
千寻qx
这个作者很懒,什么都没留下…
展开
-
postman使用自定义函数
在postman 的前置请求中,输入获取随机数的代码// 获取最小值到最大值之前的整数随机数function GetRandomNum(Min, Max) { var Range = Max - Min; var Rand = Math.random(); return(Min + Math.round(Rand * Range));}var num = GetRandomNum(1000000000000000, 9999999999999999);//把动态字段存在变.原创 2022-04-20 16:35:22 · 3300 阅读 · 0 评论 -
使用postman调用webservice接口及调用postman内置函数
使用postman调用webservice接口接口访问URL:http://192.168.8.xxx:8008/crm/ajax_fm.do访问方式:posthader设置,设置文本方式为:text/xml;charset=UTF-8填写消息体测试是否成功入参使用postman内置函数选择函数,eg:选择随机生成单词randomWords,输入{,下拉选择即可设置执行脚本,pm.variables.replaceIn(‘{{$randomWords}}’);入原创 2022-04-14 17:22:12 · 4439 阅读 · 0 评论