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

相关推荐
AI_56781 天前
Postman接口测试提速技巧:批量请求+智能断言实践
测试工具·lua·postman
Warren981 天前
Pytest Fixture 作用域与接口测试 Token 污染问题实战解析
功能测试·面试·单元测试·集成测试·pytest·postman·模块测试
弹简特1 天前
【JavaEE06-后端部分】SpringMVC01-Spring MVC第一大核心URL 路由映射【建立连接】与 Postman 接口测试详解
java·spring boot·测试工具·spring·postman
一念一花一世界2 天前
接口管理工具选型指南:Postman vs swagger vs PostIn
postman·swagger·postin·接口管理工具
今天小迪敲代码了吗3 天前
【自学】接口测试
postman
小王不爱笑1324 天前
Postman 使用教程
测试工具·lua·postman
程序员杰哥4 天前
Chrome浏览器+Postman做接口测试
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
程序员小远6 天前
使用Postman进行一次完整的接口测试
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
nangonghen7 天前
centos 7.9安装postman v9.31.0
centos·api·postman