当前位置:网站首页>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 ;
边栏推荐
- February 13, 2022-2-climbing stairs
- CSDN博文摘要(一) —— 一个简单的初版实现
- MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
- [untitled]
- Export virtual machines from esxi 6.7 using OVF tool
- Pytorch LSTM实现流程(可视化版本)
- C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
- 该不会还有人不懂用C语言写扫雷游戏吧
- CSDN问答标签技能树(五) —— 云原生技能树
- MySQL35-主从复制
猜你喜欢
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
Emotional classification of 1.6 million comments on LSTM based on pytoch
PyTorch RNN 实战案例_MNIST手写字体识别
In fact, the implementation of current limiting is not complicated
Typescript入门教程(B站黑马程序员)
用于实时端到端文本识别的自适应Bezier曲线网络
[C language] deeply analyze the underlying principle of data storage
MySQL19-Linux下MySQL的安装与使用
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
该不会还有人不懂用C语言写扫雷游戏吧
随机推荐
[C language] deeply analyze the underlying principle of data storage
使用OVF Tool工具从Esxi 6.7中导出虚拟机
Pytoch LSTM implementation process (visual version)
Time complexity (see which sentence is executed the most times)
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
Breadth first search rotten orange
Kubesphere - deploy the actual combat with the deployment file (3)
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
[programmers' English growth path] English learning serial one (verb general tense)
C语言标准的发展
Discriminant model: a discriminant model creation framework log linear model
Mysql25 index creation and design principles
Security design verification of API interface: ticket, signature, timestamp
Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL32-锁
① BOKE
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
February 13, 2022-3-middle order traversal of binary tree
[paper reading notes] - cryptographic analysis of short RSA secret exponents