当前位置:网站首页>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 .
边栏推荐
- Pgadmin 4 V6.5 release, PostgreSQL open source graphical management tool
- Security level
- 如何做一个炫酷的墨水屏电子钟?
- Do you know the eight signs of a team becoming agile?
- Stored procedure and stored function in Oracle
- A tab Sina navigation bar
- Valentine's Day flirting with girls to force a small way, one can learn
- Luo Gu Pardon prisoners of war
- Flutter 2.10 update details
- Express routing, express middleware, using express write interface
猜你喜欢
Win: use PowerShell to check the strength of wireless signal
Security level
Five ways to query MySQL field comments!
Kibana installation and configuration
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!
phpstrom设置函数注释说明
Win: use shadow mode to view the Desktop Session of a remote user
MySQL regexp: Regular Expression Query
"2022" is a must know web security interview question for job hopping
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
随机推荐
Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
Stored procedure and stored function in Oracle
Interpretation of mask RCNN paper
Process scheduling and termination
What is the current situation and Prospect of the software testing industry in 2022?
DOM basic syntax
85.4% mIOU! NVIDIA: using multi-scale attention for semantic segmentation, the code is open source!
Wechat applet; Gibberish generator
One plus six brushes into Kali nethunter
Codeforces Global Round 19 ABC
batchnorm.py这个文件单GPU运行报错解决
Hedhat firewall
es使用collapseBuilder去重和只返回某个字段
JS implementation determines whether the point is within the polygon range
PHP wechat official account development
Do you know the eight signs of a team becoming agile?
. Net starts again happy 20th birthday
PHP 约瑟夫环问题
After reading the average code written by Microsoft God, I realized that I was still too young
Mysql database | build master-slave instances of mysql-8.0 or above based on docker