当前位置:网站首页>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 ;
边栏推荐
- Solve the problem that XML, YML and properties file configurations cannot be scanned
- Good blog good material record link
- Security design verification of API interface: ticket, signature, timestamp
- CSDN问答标签技能树(一) —— 基本框架的构建
- Advantages and disadvantages of evaluation methods
- Mysql32 lock
- Timestamp with implicit default value is deprecated error in MySQL 5.6
- Water and rain condition monitoring reservoir water and rain condition online monitoring
- February 13, 2022 - Maximum subarray and
- API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
猜你喜欢

MySQL35-主从复制

ZABBIX introduction and installation

Mysql34 other database logs

CSDN问答模块标题推荐任务(一) —— 基本框架的搭建

ByteTrack: Multi-Object Tracking by Associating Every Detection Box 论文阅读笔记()

Breadth first search rotten orange

IDEA 导入导出 settings 设置文件

Database middleware_ MYCAT summary

Pytorch RNN actual combat case_ MNIST handwriting font recognition

Mysql26 use of performance analysis tools
随机推荐
Mysql32 lock
Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
MySQL底层的逻辑架构
Solve the problem that XML, YML and properties file configurations cannot be scanned
MySQL storage engine
第一篇博客
CSDN问答标签技能树(五) —— 云原生技能树
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
Software test engineer development planning route
How to find the number of daffodils with simple and rough methods in C language
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Windchill配置远程Oracle数据库连接
Mysql30 transaction Basics
C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
MNIST implementation using pytoch in jupyter notebook
MySQL36-数据库备份与恢复
Security design verification of API interface: ticket, signature, timestamp
MySQL25-索引的创建与设计原则
Mysql27 - Optimisation des index et des requêtes
CSDN博文摘要(一) —— 一个简单的初版实现