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使用自定义全局变量

相关推荐
进阶的小名5 天前
@RequestMapping接收文件格式的形参(方法参数)
java·spring boot·postman
@Aurora.5 天前
【接口自动化测试】---YAML、JSON Schema
selenium·单元测试·测试用例·压力测试·postman·ab测试·测试覆盖率
ACGkaka_6 天前
Postman 如何设置Cookie
测试工具·postman
山里幽默的程序员6 天前
如何使用Postman无障碍导入JSON文件?详细步骤&工具对照
测试工具·json·postman
Java&Develop11 天前
用html写一个类似于postman可以发送请求
前端·html·postman
w_312345411 天前
支持多网络协议的测试工具(postman被无视版)
网络协议·测试工具·postman·调试工具
zk_xyb12 天前
Postman 四种请求体格式全解析:区别、用法及 Spring Boot 接收指南
spring boot·lua·postman
吃饱了想撑死14 天前
Postman四种请求教程
测试工具·postman
大白曾是少年15 天前
基于Postman进行http的请求和响应
测试工具·http·postman
努力的小Qin17 天前
oneapi本地部署接口测试(curl命令方式+postman方式)
测试工具·postman·oneapi