当前位置:网站首页>Postman Association
Postman Association
2022-07-06 04:48:00 【Cool leg hair!】
Postman relation
Postman relation
** Introduce :** be applied to Multiple http Between requests , Data association 、 Or dependencies .
Implementation steps
A Interface rely on B Interface The data of
- towards B Interface send http request , get data
- Put the data Set up to Global variables ( environment variable ) in
- A Interface obtain Global variables ( environment variable ) in Data values , To use .
Case study
request Get weather interface , Extract... From the response results City , Name the city , Use for Baidu search interface .
Implementation steps :
- establish Use case set , Create separate Check the weather request and Baidu search request
Query weather request Tests in , Write code obtain City name , Write global variables
// obtain All response results var jsonData = pm.response.json() // From the response results obtain City name var city = jsonData.weatherinfo.city // Write the city name to the global variable pm.globals.set("glb_city", city)
Click on Send Button , send out request , View the set global variables .
modify Baidu search request , Use global variables , Press Search for city names .
http://www.baidu.com/s?wd={ {glb_city}}
Batch execution of test cases
边栏推荐
- Selection of slow motion function
- View workflow
- Microservice resource address
- newton interpolation
- Bill Gates posted his 18-year-old resume and expected an annual salary of $12000 48 years ago
- 几种RS485隔离通讯的方案介绍
- [HBZ share] reasons for slow addition and deletion of ArrayList and fast query
- Postman关联
- 驱动开发——HelloWDM驱动
- MIT CMS. 300 session 8 – immersion / immersion
猜你喜欢
The most detailed and comprehensive update content and all functions of guitar pro 8.0
Application of Flody
How to estimate the population with samples? (mean, variance, standard deviation)
Vulnerability discovery - vulnerability probe type utilization and repair of web applications
Weng Kai C language third week 3.1 punch in
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
canal同步mysql数据变化到kafka(centos部署)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Use sentinel to interface locally
ISP learning (2)
随机推荐
[FreeRTOS interrupt experiment]
Postman前置脚本-全局变量和环境变量
Zynq learning notes (3) - partial reconfiguration
Postman测试报告
ue5 小知识点 开启lumen的设置
canal同步mysql数据变化到kafka(centos部署)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[HBZ sharing] how to locate slow queries in cloud database
Leetcode 186 Flip the word II in the string (2022.07.05)
The implementation of the maize negotiable digital warehouse receipt standard will speed up the asset digitization process of the industry
Selection sort
项目经理,你会画原型嘛?项目经理需要做产品设计了?
Vulnerability discovery - vulnerability probe type utilization and repair of web applications
Basic explanation of turtle module - draw curve
Why does MySQL need two-phase commit
Platformio create libopencm3 + FreeRTOS project
Knowledge consolidation source code implementation 3: buffer ringbuffer
ORM aggregate query and native database operation
C'est un petit résumé de l'étude.
2021robocom robot developer competition (Preliminary)