当前位置:网站首页>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
- MySQL27-索引優化與查詢優化
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- MySQL31-MySQL事务日志
- API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
- MySQL34-其他数据库日志
- MySQL20-MySQL的数据目录
- The underlying logical architecture of MySQL
- Complete web login process through filter
- Global and Chinese markets of static transfer switches (STS) 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Download and installation of QT Creator

Nanny hand-in-hand teaches you to write Gobang in C language

MySQL32-锁

MySQL 29 other database tuning strategies

How to find the number of daffodils with simple and rough methods in C language

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

MySQL底层的逻辑架构

Pytoch LSTM implementation process (visual version)

Export virtual machines from esxi 6.7 using OVF tool

MySQL27-索引优化与查询优化
随机推荐
Mysql21 user and permission management
导入 SQL 时出现 Invalid default value for ‘create_time‘ 报错解决方法
Record the first JDBC
Timestamp with implicit default value is deprecated error in MySQL 5.6
Mysql36 database backup and recovery
API learning of OpenGL (2002) smooth flat of glsl
实现以form-data参数发送post请求
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
Google login prompt error code 12501
在jupyter NoteBook使用Pytorch进行MNIST实现
35 is not a stumbling block in the career of programmers
百度百科数据爬取及内容分类识别
评估方法的优缺点
Navicat 导出表生成PDM文件
MySQL 20 MySQL data directory
Ueeditor internationalization configuration, supporting Chinese and English switching
Baidu Encyclopedia data crawling and content classification and recognition
Security design verification of API interface: ticket, signature, timestamp
MySQL29-数据库其它调优策略
Discriminant model: a discriminant model creation framework log linear model