Postman[7] 内置动态参数及自定义的动态参数

postman 内置动态参数和自定义的动态参数

1.内置动态参数

格式:{{$参数名}}

1.1时间戳

{{$timestamp}} //生成当前时间的时间戳

1.2随机整数

{{$randomint}} //生成0-1000之间的随机数

1.3GUID字符串

{{$guid}} //生成随机GUID字符串

2.自定义动态参数

格式:{{参数名}}

var time = Data.now(); //获取时间戳

pm.global.set("time", time); //设置成全局变量

2.1 定义一个全局变量

2.2使用自定义全局变量

相关推荐
Algorithm-0075 天前
【Postman 接口测试】接口用例设计与评审
测试工具·postman
晚晚不晚5 天前
登录授权流程
postman
Algorithm-0076 天前
【Postman接口测试】Postman的全局变量和环境变量设置
测试工具·postman
安冬的码畜日常6 天前
【玩转 Postman 接口测试与开发2_009】第八章:利用 Postman 的 Flows 模块实现工作流测试(Workflow Testing)
测试工具·接口测试·postman·workflow·api接口·postman flows·工作流测试
Algorithm-0076 天前
【Postman接口测试】Postman的安装和使用
测试工具·postman
Lilixxs6 天前
使用 postman 测试思源笔记接口
笔记·测试工具·postman
likesyour9 天前
Postman 测试 部署在服务器上的接口404问题解决
测试工具·postman
Algorithm-00710 天前
【Postman接口测试】Postman的常见断言
测试工具·postman
枣泥馅11 天前
Netty搭建websocket服务器,postman可以连接,浏览器无法连接
服务器·websocket·postman
天堂的恶魔94612 天前
软件测试 ——Postman(Newman的使用)
测试工具·postman