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

相关推荐
Madison-No72 天前
基于JMeter工具的性能测试(接口)
python·jmeter·postman
Joyce_xiaobaibai5 天前
windows+Postman Newman+接口巡检
postman
Tinyfacture10 天前
postman抓取登录鉴权码token及设置全局变量
测试工具·postman
川石课堂软件测试10 天前
涨薪技术|Prometheus之HTTP API中使用PromQL
网络协议·测试工具·jmeter·http·单元测试·postman·prometheus
x10n910 天前
Postman 汉化完整指南
测试工具·lua·postman
AI情绪识别开源15 天前
检信 Allemotion 认知功能障碍矫正软件· 数据方案
人工智能·postman
程序员杰哥19 天前
如何做接口测试?
自动化测试·python·测试工具·职场和发展·测试用例·接口测试·postman
测试老哥22 天前
Postman获取token并设置token依赖步骤
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
2601_9621819623 天前
Redis Redis介绍、安装 - Redis客户端
数据库·redis·postman
redfred24 天前
hoppscotch 使用教程:开源 API 调试工具 Postman 免费替代 Web/桌面/Docker 部署详解
开源·postman·graphql