当前位置:网站首页>Postman interface automation-3-tests assertion 3: get dynamic parameters and set environment variables (Interface Association)
Postman interface automation-3-tests assertion 3: get dynamic parameters and set environment variables (Interface Association)
2022-04-22 08:05:00 【Flower test】
In Chapter postman primary -3- header presets, Resolve request Headband token The problem of We mentioned using environment variables token、uid
however ,token It has a validity period , After the expiration, you have to modify the environment variable again , In this way, the interface automation is not automatic at all . So here comes the question , How to automatically set environment variables ? Actually , This is the inevitable problem of interface automation , We will certainly encounter the problem of Interface Association . namely : The data in the response result of the previous interface , As the input parameter of the following interface .
postman Provides the syntax for setting environment variables :Tests A template is provided on the right , Click and it will be automatically displayed in the editing area on the left .
obtain (get)/ Set up (set)/ eliminate (clear) environment variable 、 Global variables, etc .
as follows : If the test case is executed successfully , The interface will respond to the... In the data token、uid Add to environment variables . such , Other interfaces can directly reference these two variables .

attach :
1、 It is recommended to set the environment variable 、 eliminate , Execute again when the use case is executed successfully , Otherwise, it is easy to confuse the environment variables .
2、 An environment variable with the same name already exists , Direct override when setting .
版权声明
本文为[Flower test]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220628391738.html
边栏推荐
- Seven steps of PLC project commissioning
- Raspberry pie 4B: USB boot using raspi config
- MySQL queries the attributes of all fields in the database
- 八阿哥纪事【四】
- Raspberry pie Lite: install the latest version of discuz
- echars动态实现散点图并自定义信息提示框
- Shrio 学习笔记(二)
- js动态合并单元格
- The exchange meeting on the interpretation of the data security law and the application of security and confidentiality technology was successfully held in Beijing
- 2021-10-08 selenium headless mode open browser
猜你喜欢

朴素的CSRF漏洞

昆仑通态 │ G系列屏如何与西门子300国产MPI适配器连接
![[site building notes]: insert code snippets in wordpress blog posts and highlight them](/img/2f/d222c77172383fda79f2c109db0bdc.png)
[site building notes]: insert code snippets in wordpress blog posts and highlight them

Figure 2022 work plan of industrial Internet special working group

世平信息成功通过中国信通院“数据安全类产品能力验证”评测

TCP三次握手和四次挥手

Help 2021 Hangzhou network security publicity week | collection of wonderful activities of Shiping information

《数据安全产品指南》正式发布,世平信息多项产品收录其中

培训赋能 | 打造专业技术服务团队

Mysql索引的探索
随机推荐
文件上传漏洞小结与Upload-labs 靶场纪实
MySQL queries the attributes of all fields in the database
Mysql索引的探索
log4net在.Net Core使用
The practical paper of Shiping information and data security compliance testing was selected into the Chinese core journals
Raspberry Pie: simulating iSCSI storage
关于transformer机制的理解
如何保护个人信息安全?@每个人,一定不要错过这份干货分享
Jmeter性能指标监控:CPU、内存、磁盘、网络
世平信息上榜《CCSIP 2021中国网络安全产业全景图》
node配置环境cmd不生效
[write missed scan from scratch] host discovery -- handwritten a subdomain name digger
Industry application | the way of data security and compliance construction of government big data platform
Shiping information appeared at the China traditional Chinese medicine information conference to help build the data security system of the pharmaceutical industry
A simple image processor running across C raspberry pie
落实数据合规,保障数据安全
How to connect Kunlun on state │ G series screen with Siemens 300 domestic MPI adapter
Raspberry pie 4B: USB mobile hard disk box startup (beta version)
web自动化:8.3 selenium中如何实现浏览器的窗口滚动
Raspberry Pie: use mono and C to call MSSQL database