当前位置:网站首页>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 )
边栏推荐
- In 2021, the global general crop protection revenue was about $52750 million, and it is expected to reach $64730 million in 2028
- Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
- 上周内容回顾
- "Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
- Test access criteria
- 一台服务器最大并发 tcp 连接数多少?65535?
- 浅析 Ref-NeRF
- Such as the visual appeal of the live broadcast of NBA Finals, can you still see it like this?
- 19、 MySQL -- SQL statements and queries
- Experience summary of database storage selection
猜你喜欢

Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of rotary tablet presses in the global market in 2022

MySQL master-slave synchronization principle

Software testing skills, JMeter stress testing tutorial, obtaining post request data in x-www-form-urlencoded format (24)
![[Yugong series] go teaching course 002 go language environment installation in July 2022](/img/47/35b4fb0354122e233977b261ef405b.png)
[Yugong series] go teaching course 002 go language environment installation in July 2022

Etcd 基于Raft的一致性保证

APEC industry +: father of the king of the ox mill, industrial Internet "king of the ox mill anti-wear faction" Valentine's Day greetings | Asia Pacific Economic media | ChinaBrand

Etcd raft Based Consistency assurance

XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向

Hcie security Day12: supplement the concept of packet filtering and security policy

Leetcode daily question 540 A single element in an ordered array Valentine's Day special article looking for a single dog in a pile of lovers ~ the clown is myself
随机推荐
Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]
Advanced collaboration: coroutinecontext
thrift go
Ask and answer: dispel your doubts about the virtual function mechanism
From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events
一台服务器最大并发 tcp 连接数多少?65535?
Use nodejs+express+mongodb to complete the data persistence project (with modified source code)
Offset related concepts + drag modal box case
Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
Kubernetes 通信异常网络故障 解决思路
Qt6 QML Book/Qt Quick 3D/基础知识
Recommendation of books related to strong foundation program mathematics
How to handle wechat circle of friends marketing activities and share production and release skills
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
MySQL master-slave synchronization principle
电子科技大学|强化学习中有效利用的聚类经验回放
Yyds dry goods inventory TCP & UDP
Transformer structure analysis and the principle of blocks in it
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]