当前位置:网站首页>Postman Interface Association
Postman Interface Association
2022-07-06 10:44:00 【Wang Dashan 0928】
postman Interface Association :
postman Interface Association is in Tests Set variable in , For other interfaces to call .
Example : Place the mobile phone number in the response result of the query interface city The value of the node , As a parameter in the weather query interface city To enter , So as to realize the association of interfaces .
Ideas :
1. Input parameters in the weather query interface city The value of is set as variable ( Variables can accept different values ).
2. Get the response result in the mobile phone number attribution query interface city The value of the node .
3. Will be the first 2 The value obtained in step is transferred to the variable .
step 1、 Input parameters in the weather query interface city The value of is set as variable ( Variables can accept different values );
step 2、 Get the response result in the mobile phone number attribution query interface city The value of the node ;
1)、 Get all of the response text json Content
var jsonData = pm.response.json();
2)、 to city The value of the node
city = jsonData.result.city;
step 3、 Will be the first 2 The value obtained in step is transferred to the variable .
take city The value of the node is transferred to the set variable ;
pm.globals.set(“variable_key”, “variable_value”);
step 4、 Send a request , View results
1)、 Check whether the value is transferred to the variable ;
2)、 Check whether the value is accepted in the weather query interface ;
边栏推荐
- Implement sending post request with form data parameter
- Typescript入门教程(B站黑马程序员)
- MySQL learning diary (II)
- MySQL32-锁
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
- Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
- How to change php INI file supports PDO abstraction layer
- 基于Pytorch的LSTM实战160万条评论情感分类
- MySQL20-MySQL的数据目录
- What is the difference between TCP and UDP?
猜你喜欢
[Li Kou 387] the first unique character in the string
Security design verification of API interface: ticket, signature, timestamp
Implement sending post request with form data parameter
CSDN question and answer tag skill tree (I) -- Construction of basic framework
CSDN问答标签技能树(五) —— 云原生技能树
MySQL 29 other database tuning strategies
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
Just remember Balabala
Mysql27 - Optimisation des index et des requêtes
C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
随机推荐
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
Download and installation of QT Creator
高并发系统的限流方案研究,其实限流实现也不复杂
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
MySQL25-索引的创建与设计原则
Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL 29 other database tuning strategies
C语言标准的发展
MySQL18-MySQL8其它新特性
Case identification based on pytoch pulmonary infection (using RESNET network structure)
MySQL33-多版本并发控制
Development of C language standard
Kubesphere - deploy the actual combat with the deployment file (3)
Adaptive Bezier curve network for real-time end-to-end text recognition
API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
Solution to the problem of cross domain inaccessibility of Chrome browser
Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
A necessary soft skill for Software Test Engineers: structured thinking
Typescript入门教程(B站黑马程序员)