当前位置:网站首页>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 ;
边栏推荐
- How to change php INI file supports PDO abstraction layer
- API learning of OpenGL (2002) smooth flat of glsl
- Software test engineer development planning route
- 该不会还有人不懂用C语言写扫雷游戏吧
- The underlying logical architecture of MySQL
- Security design verification of API interface: ticket, signature, timestamp
- Time complexity (see which sentence is executed the most times)
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
- 35 is not a stumbling block in the career of programmers
- Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
猜你喜欢

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

MySQL33-多版本并发控制

CSDN question and answer tag skill tree (I) -- Construction of basic framework

保姆级手把手教你用C语言写三子棋

MySQL26-性能分析工具的使用

Mysql26 use of performance analysis tools

Introduction tutorial of typescript (dark horse programmer of station B)

Solve the problem of remote connection to MySQL under Linux in Windows

MySQL23-存储引擎

Mysql36 database backup and recovery
随机推荐
What is the current situation of the game industry in the Internet world?
基于Pytorch的LSTM实战160万条评论情感分类
Mysql24 index data structure
Win10: how to modify the priority of dual network cards?
Mysql21 user and permission management
MySQL25-索引的创建与设计原则
C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
Mysql30 transaction Basics
CSDN question and answer module Title Recommendation task (II) -- effect optimization
MySQL31-MySQL事务日志
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
Pytoch LSTM implementation process (visual version)
Kubesphere - deploy the actual combat with the deployment file (3)
Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
February 13, 2022 - Maximum subarray and
[untitled]
Have you mastered the correct posture of golden three silver four job hopping?
Mysql33 multi version concurrency control
Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
Mysql26 use of performance analysis tools