当前位置:网站首页>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 )
边栏推荐
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of rotary tablet presses in the global market in 2022
- leetcode-540. A single element in an ordered array
- Discussion Net legacy application transformation
- Kernel symbol table
- Hcie security Day10: six experiments to understand VRRP and reliability
- Brief analysis of ref nerf
- Recommendation of books related to strong foundation program mathematics
- Golang type assertion and conversion (and strconv package)
- Analysis of gas fee setting under eip1559
- Interval product of zhinai sauce (prefix product + inverse element)
猜你喜欢
[Tang Laoshi] C -- encapsulation: member variables and access modifiers
Advanced collaboration: coroutinecontext
19、 MySQL -- SQL statements and queries
Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
SQL injection - Fundamentals of SQL database operation
设计电商秒杀系统
The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%
Measurement fitting based on Halcon learning -- Practice [1]
Visiontransformer (I) -- embedded patched and word embedded
Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
随机推荐
How to choose cache read / write strategies in different business scenarios?
Recommendation of books related to strong foundation program mathematics
浅议.NET遗留应用改造
Strange way of expressing integers (expanding Chinese remainder theorem)
Kernel symbol table
Transformation between yaml, Jason and Dict
TLS environment construction and plaintext analysis
《ActBERT》百度&悉尼科技大学提出ActBERT,学习全局局部视频文本表示,在五个视频-文本任务中有效!...
Memory analyzer (MAT)
Go learning notes (4) basic types and statements (3)
如临现场的视觉感染力,NBA决赛直播还能这样看?
Kubernetes abnormal communication network fault solution ideas
University of Electronic Science and technology | playback of clustering experience effectively used in reinforcement learning
What is the maximum number of concurrent TCP connections for a server? 65535?
Analyse de REF nerf
leetcode-540. A single element in an ordered array
How to set the system volume programmatically- How to programmatically set the system volume?
Basic preprocessing and data enhancement of image data
Discussion Net legacy application transformation
Node MySQL serialize cannot rollback transactions