当前位置:网站首页>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 ;
边栏推荐
- Chrome浏览器端跨域不能访问问题处理办法
- 基于Pytorch的LSTM实战160万条评论情感分类
- IDEA 导入导出 settings 设置文件
- [paper reading notes] - cryptographic analysis of short RSA secret exponents
- MySQL27-索引優化與查詢優化
- MySQL21-用戶與權限管理
- Time complexity (see which sentence is executed the most times)
- Mysql30 transaction Basics
- Complete web login process through filter
- Development of C language standard
猜你喜欢

Moteur de stockage mysql23

基于Pytorch肺部感染识别案例(采用ResNet网络结构)

windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止

MySQL 20 MySQL data directory

MySQL28-数据库的设计规范

Download and installation of QT Creator

Not registered via @enableconfigurationproperties, marked (@configurationproperties use)

Mysql27 index optimization and query optimization

CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework

MySQL20-MySQL的数据目录
随机推荐
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
基于Pytorch的LSTM实战160万条评论情感分类
实现以form-data参数发送post请求
How to change php INI file supports PDO abstraction layer
MySQL25-索引的创建与设计原则
Ueeditor internationalization configuration, supporting Chinese and English switching
数据库中间件_Mycat总结
Pytorch RNN actual combat case_ MNIST handwriting font recognition
MySQL29-数据库其它调优策略
Breadth first search rotten orange
Security design verification of API interface: ticket, signature, timestamp
CSDN question and answer tag skill tree (II) -- effect optimization
Implement sending post request with form data parameter
[programmers' English growth path] English learning serial one (verb general tense)
The underlying logical architecture of MySQL
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
[untitled]
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
Technology | diverse substrate formats