当前位置:网站首页>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
- TLS environment construction and plaintext analysis
- Summary of common operation and maintenance commands
- 阻塞非阻塞和同步异步的区分 参考一些书籍
- [postgresql]postgresql custom function returns an instance of table type
- Golang type assertion and conversion (and strconv package)
- C 10 new feature [caller parameter expression] solves my confusion seven years ago
- Introduction to golang garbage collection
- String and+
- Instructions for common methods of regular expressions
猜你喜欢

全网都在疯传的《老板管理手册》(转)

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

【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装

Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
![[secretly kill little buddy pytorch20 days -day02- example of image data modeling process]](/img/14/8ab1f1fb142e10dead124851180d03.jpg)
[secretly kill little buddy pytorch20 days -day02- example of image data modeling process]

Battle drag method 1: moderately optimistic, build self-confidence (1)

The "boss management manual" that is wildly spread all over the network (turn)

Apprentissage intensif - notes d'apprentissage 1 | concepts de base

Operate BOM objects (key)

Study diary: February 14th, 2022
随机推荐
First knowledge of database
String and+
Rhcsa third day operation
Basic preprocessing and data enhancement of image data
Single page application architecture
浅议.NET遗留应用改造
Pengcheng cup Web_ WP
Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
强化學習-學習筆記1 | 基礎概念
Cap and base theory
Custom view incomplete to be continued
Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
Analyse de REF nerf
Battle drag method 1: moderately optimistic, build self-confidence (1)
Is flush account opening and registration safe and reliable? Is there any risk?
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
Such as the visual appeal of the live broadcast of NBA Finals, can you still see it like this?
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
18、 MySQL -- index
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data