当前位置:网站首页>[fundamentals of interface testing] Chapter 11 | detailed explanation of postman associated interface and batch execution use case set
[fundamentals of interface testing] Chapter 11 | detailed explanation of postman associated interface and batch execution use case set
2022-04-22 18:15:00 【NAIST】
Postman relation
Introduce : Apply to more than one http Between requests , There are data associations or dependencies
A Interface rely on B Interface data
1. towards B Interface send http request , get data
2. Set data to global variable ( environment variable ) in
3.A Interface to get global variables ( environment variable ) Data values , To use
- Case study :
Request to get the weather interface , Extract the city in the response result , Name the city , Use for Baidu search interface
- Implementation steps :
1. Create use case set , Create weather query request and Baidu search request respectively

2. Query weather request Tests in , Write code to get the city name , Write global variables
// Get all response results
var jsonData =pm.response.json();
// Get the city name from the response result
var city = jsonData.weatherinfo.city;
// Write the city name to the global variable
pm.globals.set("glb_city",city)
3. Click on Send Button , Send a request , View the set global variables

4. Modify Baidu search , Use global variables , Search by city name
http://www.baidu.com/s?wd= mobile phone {
{glb_city}}

Postman Batch execution use case set


版权声明
本文为[NAIST]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221810517367.html
边栏推荐
- B-tree [concept]
- 膨胀卷积论文笔记
- Learning documents.
- 第119章 SQL函数 RIGHT
- Guiyitong appointment registration
- 【论文泛读】Easing Embedding Learning by Comprehensive Transcription of Heterogeneous Information Networks
- How to quickly switch and display different software interfaces on the computer
- Huawei router realizes the connection between headquarters and branches through MPLS virtual private network
- [Lane] ultra fast lane detection (2) custom model test
- Must brush the simulated question bank and answers of the latest eight members of Jiangxi in 2022
猜你喜欢

Packet capture analysis of interface protocol TCP protocol

一文了解进程及其通信方法

golang-gin-websocket问题

spaCy第一个例程(中文文本自动标注)

Soft test high item notes | PERT three-point estimation

【Lane】Ultra-Fast-Lane-Detection(2)自定义模型测试

数字化靶场的未来方向

Pytorch Note57 Pytorch可视化网络结构
![[thinking and progress]: regret about yourself](/img/e4/1658eae714440ccc1800aee5b2048c.jpg)
[thinking and progress]: regret about yourself

秒云助力中电科32所发布“基于拟态应用集成框架的SaaS云管理平台解决方案”
随机推荐
spaCy第一个例程(中文文本自动标注)
B-tree [concept]
Read and write txt files in C language
Soft test high item notes | typical life cycle model of information system project
[Lane] ultra fast lane detection (1) custom dataset training
我国有哪些完全自研的电脑硬件?
CISP examination resource sharing
The content exported by the rich text editor is PDF or docx
详细理解GaussDB以及怎么做数据迁移【玩转华为云】
Applet - API
MySQL排序与分页
Notes on soft test high items | contents of feasibility study
MySQL - index
接口测试 Mock 实战(二) | 结合 jq 完成批量化的手工 Mock
Future direction of digital shooting range
18730 涂色问题 (快速幂的两种写法)
Deleted items can be recovered even after the outlook Deleted Items folder is empty
目前国产电脑硬件的现状是怎样的?
学习文档。
Esprima ECMAScript parsing architecture