当前位置:网站首页>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 .
边栏推荐
- Unified blog writing environment
- Include rake tasks in Gems - including rake tasks in gems
- Outlook:总是提示输入用户密码
- Win:使用 Shadow Mode 查看远程用户的桌面会话
- Database postragesq role membership
- Win:将一般用户添加到 Local Admins 组中
- 官宣!第三届云原生编程挑战赛正式启动!
- Vulnstack3
- A label making navigation bar
- Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
猜你喜欢
R language uses logistic regression and afrima, ARIMA time series models to predict world population
MATLB|多微电网及分布式能源交易
How to make a cool ink screen electronic clock?
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!
Express routing, express middleware, using express write interface
Kibana installation and configuration
A tab Sina navigation bar
A label making navigation bar
Win:使用 PowerShell 检查无线信号的强弱
Go RPC call
随机推荐
Pgadmin 4 V6.5 release, PostgreSQL open source graphical management tool
MySQL regexp: Regular Expression Query
Es uses collapsebuilder to de duplicate and return only a certain field
Official announcement! The third cloud native programming challenge is officially launched!
PHP Joseph Ring problem
如何做一个炫酷的墨水屏电子钟?
One plus six brushes into Kali nethunter
"2022" is a must know web security interview question for job hopping
流批一體在京東的探索與實踐
A label making navigation bar
MySQL backup and recovery + experiment
Grub 2.12 will be released this year to continue to improve boot security
Flutter 2.10 update details
Application and Optimization Practice of redis in vivo push platform
. Net starts again happy 20th birthday
Win:使用组策略启用和禁用 USB 驱动器
如何搭建一支搞垮公司的技术团队?
Hedhat firewall
Incremental backup? db full
Complex, complicated and numerous: illustration of seven types of code coupling