当前位置:网站首页>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 ;
边栏推荐
- Baidu Encyclopedia data crawling and content classification and recognition
- Global and Chinese market of operational amplifier 2022-2028: Research Report on technology, participants, trends, market size and share
- [programmers' English growth path] English learning serial one (verb general tense)
- Moteur de stockage mysql23
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- 使用OVF Tool工具从Esxi 6.7中导出虚拟机
- Mysql21 - gestion des utilisateurs et des droits
- [paper reading notes] - cryptographic analysis of short RSA secret exponents
- Typescript入门教程(B站黑马程序员)
- MySQL26-性能分析工具的使用
猜你喜欢
Mysql26 use of performance analysis tools
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
How to change php INI file supports PDO abstraction layer
CSDN博文摘要(一) —— 一个简单的初版实现
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Case identification based on pytoch pulmonary infection (using RESNET network structure)
CSDN blog summary (I) -- a simple first edition implementation
CSDN Q & a tag skill tree (V) -- cloud native skill tree
Mysql28 database design specification
Mysql33 multi version concurrency control
随机推荐
[Li Kou 387] the first unique character in the string
Security design verification of API interface: ticket, signature, timestamp
Have you mastered the correct posture of golden three silver four job hopping?
Export virtual machines from esxi 6.7 using OVF tool
Advantages and disadvantages of evaluation methods
MySQL32-锁
Anaconda3 installation CV2
[untitled]
CSDN question and answer tag skill tree (II) -- effect optimization
Mysql27 index optimization and query optimization
UEditor国际化配置,支持中英文切换
Copy constructor template and copy assignment operator template
Mysql26 use of performance analysis tools
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
Timestamp with implicit default value is deprecated error in MySQL 5.6
Pytorch LSTM实现流程(可视化版本)
MySQL25-索引的创建与设计原则
Complete web login process through filter
MySQL29-数据库其它调优策略
@controller,@service,@repository,@component区别