当前位置:网站首页>Variables in postman
Variables in postman
2022-07-05 01:53:00 【@chameleon】
Postman There are three variables in total
Postman Tool introduction and usage tutorial
One 、 environment variable
· Creation of environment variables
step :
1、 Click on postman Icon in the upper right corner 
2、 Click on “Add” Button , Then enter the name of the environment variable stay “VARIABLE” Enter the variable name of the environment variable in the column , stay “CURRENT VALUE” Enter the variable value in the column
3、 Click the bottom right corner of the interface “Add” Button to complete the creation of environment variables
· View environment variables
step :
1、 stay postman Click the icon in the upper right corner to select the name of the environment variable to view 
2、 stay postman Click the icon in the upper right corner , You can view the contents of environment variables 
· Environment variable reference
stay postman Click the icon in the upper right corner to select the name of the environment variable to view 
Use where reference is needed Two Curly braces hold Variable name Cover up . Format : { { Variable name }}
Two 、 Global variables
· Creation of global variables
step :
1、 Click on postman Icon in the upper right corner 
2、 Click on “Globals” Button
3、 stay “VARIABLE” Enter the variable name of the global variable in the column , stay “CURRENT VALUE” Enter the variable value in the column
4、 Click the bottom right corner of the interface “Save” Button to complete the creation of global variables
· View global variables
1、 stay postman Click the icon in the upper right corner , You can view the contents of global variables 
· References to global variables
step :
1、 Where variables need to be set , Use Two Curly braces Put the variable name Cover up , Format : { { The variable name of the global variable }}
3、 ... and 、 Set variable
Set variables can only be used in this set .
priority : environment variable > Set variable > Global variables
Project practice
step :
1、 Create a Collection( aggregate ) ---- Corresponding to project
· Click on the icon , Create set 
· Enter the set name , Click on “Create” Complete the creation of the collection
2、 Select the set created , Right click , choice “Add Fodler”, Create a folder — Corresponding to module
3、 Select step 2 Folder created in , Right click , choice “Add Fodler”, Create a folder — Corresponding to a specific interface
4、 Select step 3 Folder created in , Right click , choice “Add request”, Create a request ---- Corresponding to the use case
5、 First select the request method , Then enter the requested URL, Switch to Body Options Content-Type, Fill in the request parameters , And then in Tests Write assertions in , Click on “Save” Button to save the use case .
6、 Click... In the collection “…”, choice Run( Actuator ) To execute all use cases .
边栏推荐
- Huawei machine test question: longest continuous subsequence
- 力扣剑指offer——二叉树篇
- Remote control service
- Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
- . Net starts again happy 20th birthday
- The MySQL team development specifications used by various factories are too detailed. It is recommended to collect them!
- How to make a cool ink screen electronic clock?
- Wechat applet; Gibberish generator
- Li Kou Jianzhi offer -- binary tree chapter
- Do you know the eight signs of a team becoming agile?
猜你喜欢

Interesting practice of robot programming 16 synchronous positioning and map building (SLAM)

Practice of tdengine in TCL air conditioning energy management platform

微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化

How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety

如何做一个炫酷的墨水屏电子钟?

One plus six brushes into Kali nethunter

流批一體在京東的探索與實踐

"2022" is a must know web security interview question for job hopping

Win: use shadow mode to view the Desktop Session of a remote user
随机推荐
微信小程序;胡言乱语生成器
【LeetCode】88. Merge two ordered arrays
Application and development trend of image recognition technology
The MySQL team development specifications used by various factories are too detailed. It is recommended to collect them!
MATLB|多微电网及分布式能源交易
PowerShell: use PowerShell behind the proxy server
JVM's responsibility - load and run bytecode
Kibana installation and configuration
PHP 基础篇 - PHP 中 DES 加解密详解
Restful fast request 2022.2.1 release, support curl import
ICSI 311 Parser
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Exploration and practice of integration of streaming and wholesale in jd.com
One plus six brushes into Kali nethunter
Include rake tasks in Gems - including rake tasks in gems
Lsblk command - check the disk of the system. I don't often use this command, but it's still very easy to use. Onion duck, like, collect, pay attention, wait for your arrival!
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Blue Bridge Cup Square filling (DFS backtracking)
Win: use shadow mode to view the Desktop Session of a remote user
Restful Fast Request 2022.2.1发布,支持cURL导入