当前位置:网站首页>Getting started with postman -- environment variables and global variables
Getting started with postman -- environment variables and global variables
2022-07-03 21:02:00 【Little brother said test】
One 、 Send a request


Two 、 Set and reference environment variables

such as : The production environment I built

There are two ways to use the environment , One is to click the check box behind each environment ; Another way is to click the selection button in the upper right corner

3、 ... and 、 Environment variables use
We call the environment variable host, When calling, just put url The part to be replaced with
{ { Variable name }} Replace it , for example

Four 、 Interface Association
As long as it involves the interface that can only be operated after login , It is inevitable to quote token/session/ etc. . This reference is the value returned when logging in . such as , We're going to create labels , Transfer parameters need to be carried access_token, We already know that access_token Is to obtain access_token Return value of interface , We need to take out the return value , Then make a call in another interface
There are two ways , One is Json Extractor , We need to get access_token Interface
Tests Write the following code in :

The last sentence is automatically added , Just click... On the right
Set a global variable Then modify the variable name and value

The second method is regular extraction , Also in Tests in , Write the following regular extractor

Either way, extract this access_token, When you write and execute access_token After the interface , Click the eye in the upper right corner , You can see your access_token It has been set as a global variable

The next interface reference is also in { { Global variable name }}

The following is the supporting information , For doing 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you !
Last : It can be in the official account : Programmer Xiaohao ! Get a free copy of 216 Page software testing engineer interview guide document information . And the corresponding video learning tutorial is free to share !, It includes basic knowledge 、Linux necessary 、Shell、 The principles of the Internet 、Mysql database 、 Special topic of bag capturing tools 、 Interface testing tool 、 Test advanced -Python Programming 、Web automated testing 、APP automated testing 、 Interface automation testing 、 Testing advanced continuous integration 、 Test architecture development test framework 、 Performance testing 、 Safety test, etc. .
If my blog helps you 、 If you like my blog content , please “ give the thumbs-up ” “ Comment on ” “ Collection ” One button, three links ! Friends who like software testing , You can join our testing technology exchange group :779450660 There are various software testing resources and technical discussions )
边栏推荐
- Hcie security Day10: six experiments to understand VRRP and reliability
- For in, foreach, for of
- How to do Taobao full screen rotation code? Taobao rotation tmall full screen rotation code
- 抓包整理外篇——————autoResponder、composer 、statistics [ 三]
- Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
- Strange way of expressing integers (expanding Chinese remainder theorem)
- Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
- Read the root directory of the folder, write txt and generate random samples
- In 2021, the global general crop protection revenue was about $52750 million, and it is expected to reach $64730 million in 2028
- Mysql database ----- common commands of database (based on database)
猜你喜欢

19、 MySQL -- SQL statements and queries

Use nodejs+express+mongodb to complete the data persistence project (with modified source code)

Inventory 2021 | yunyuansheng embracing the road

不同业务场景该如何选择缓存的读写策略?

TLS environment construction and plaintext analysis

Node MySQL serialize cannot rollback transactions

Wargames study notes -- Leviathan
![[gd32l233c-start] 5. FLASH read / write - use internal flash to store data](/img/4f/ed8ca2f43ba5a8e5da63eb419aae82.jpg)
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data

强化学习-学习笔记1 | 基础概念

Link aggregation based on team mechanism
随机推荐
抓包整理外篇——————autoResponder、composer 、statistics [ 三]
CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
Recommendation of books related to strong foundation program mathematics
Ask and answer: dispel your doubts about the virtual function mechanism
一台服务器最大并发 tcp 连接数多少?65535?
Sightseeing - statistics of the number of shortest paths + state transfer + secondary small paths
Strange way of expressing integers (expanding Chinese remainder theorem)
In 2021, the global foam protection packaging revenue was about $5286.7 million, and it is expected to reach $6615 million in 2028
Node MySQL serialize cannot rollback transactions
MySQL master-slave synchronization principle
Fingerprint password lock based on Hal Library
From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events
Set, weakset, map, weakmap in ES6
11-grom-v2-04-advanced query
Basic number theory -- Chinese remainder theorem
设计电商秒杀系统
Analyse de REF nerf
Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
Rhcsa third day operation
上周内容回顾