当前位置:网站首页>【Postman】使用Tests进行环境变量设置
【Postman】使用Tests进行环境变量设置
2022-07-19 23:16:00 【micromicrofat】
将响应的cookie设置为环境变量
postman.setEnvironmentVariable("XXX_SID", pm.cookies.get('XXX_SID'))
将响应的json设置为环境变量
var jsonData = JSON.parse(responseBody)
postman.setEnvironmentVariable("_token", jsonData.Data)
边栏推荐
- display属性
- Resolution, viewport and double image in mobile terminal
- 数仓:金融级数仓架构转型的最佳实践
- 【收藏】华为 VRP 最全面解析!满满的干货!
- 重新认识生命世界,也重新认识我们自己
- Teach you to use cann to convert photos into cartoon style
- 微信和QQ都能正常上网,但网页不能上网的3种解决办法。
- JS intercept string (3 methods)
- [Yugong series] July 2022 go teaching course 013 constant, pointer
- 面试题 05.06. 整数转换
猜你喜欢
[swintransformer source code reading 1] build_ Loader part code
Shell的执行流控制
[ROS] topic based use
宣布 .NET 7 预览版 6
企业数字化转型之传统架构到中台微服务架构
Job hopping After 3 rounds of interviews for byte test post, 4 hours of soul torture, the ending is cool
postgetsql设置id自增主键
【收藏】华为 VRP 最全面解析!满满的干货!
蚂蚁金服一面:十道经典面试题解析
matplotlib的savefig必须在show之前
随机推荐
chrome 调试技巧
[cloud native] IVX low code development was introduced into Tencent map and previewed online
王者荣耀商城异地多活架构
性能测试学习之jmeter单场景使用示例
这些超级好用的浏览器插件,还有很多人都不知道
如何手写一个js工具库?同时发布到npm上
GIS技术在医疗行业的应用:利用切片地图发布技术解决dmetrix数字病理切片在线浏览
网络带宽的单位含义
js截取字符串(3种方法)
【Flink】富函数
matplotlib的savefig必须在show之前
MySQL表的增删查改(二)
C语言基础演练(6)
display属性
These super easy-to-use browser plug-ins are unknown to many people
cnpm安装
Rust Development -- the concept and application example of trait
Ali P8 posted the salary slip in January. It really pierced my heart after reading it
【软考软件评测师】2015综合知识历年真题
企业数字化转型之传统架构到中台微服务架构