当前位置:网站首页>postman拼接替换参数循环调用接口
postman拼接替换参数循环调用接口
2022-06-12 06:41:00 【Willow】
本文主要介绍,使用postman想循环调用一个或一组接口,其中接口的参数需要可变,输入一组入参,可以自动拼接或替换参数,执行请求。
新建集合和请求
首先新建一个collections,再新建接口请求,加入到collections中。


请求中增加占位符
使用{ {}}两个花括号对需要替换的参数进行占位。
新建一个data.json,里面写好每组参数。

开始循环调用
点击run,打开runner,设置指定参数
Iterations:迭代次数
delay:多少ms后执行一次请求
data里选择select file,上传写好的json,在文件类型中选择json,点preview可以预览没组参数
点击run开始执行

查看结果
从结果汇总点击接口名字,可以看到本次请求的信息,从url看已经实现了自动拼接。

边栏推荐
- Apache POI import export excel file
- Redis distributed lock
- LeetCode-1185. Day of the week
- XML special character escape
- 丢掉丑陋的 toast,会动的 toast 更有趣
- A journey of database full SQL analysis and audit system performance optimization
- Leetcode: Sword finger offer 63 Maximum profit of stock [record prefix minimum and or no brain segment tree]
- Vscode Common plug - in
- GET 和 POST 的区别及留言板代码实现
- Matlab 6-DOF manipulator forward and inverse motion
猜你喜欢

Multithreading (2) -- pipeline (4) -- Park and unpark

descheduler 二次调度让 Kubernetes 负载更均衡

leetcode 704. Binary search

SQL injection - blind injection

VSCode常用插件

使用 ms17-010 永恒之蓝漏洞对 win7 进行渗透及建立永久后门

Whether the modification of basic type and reference type is valid

SQL injection read / write file

Multithreading (V) -- Concurrent tools (II) -- j.u.c concurrent contracting (I) -- AQS and reentrantlock principles

Automatic modeling of Interchange
随机推荐
Multithreading (2) -- pipeline (4) -- Park and unpark
Whether the modification of basic type and reference type is valid
It only takes 10 minutes to understand the underlying principle of NiO
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
PHP 开发环境搭建及数据库增删改查
LeetCode-1576. Replace all question marks
库里扛起了勇士对凯尔特人的第四场
LeetCode-884. Unusual words in two sentences
上位机开发(固件下载软件之需求分析)
Leetcode: Sword finger offer 63 Maximum profit of stock [record prefix minimum and or no brain segment tree]
Node. Detailed installation tutorial of CPM and cnpm (including error resolution)
Drawing grid navigation by opencv map reading
Multithreading (IV) -- no lock (IV) -- unsafe
PHP一句话木马深度详细剖析
数据库全量SQL分析与审计系统性能优化之旅
Multithreading (V) -- Concurrent tools (II) -- j.u.c concurrent contracting (I) -- AQS and reentrantlock principles
六月集训 第一日——数组
Upload file (post form submission form data)
descheduler 二次调度让 Kubernetes 负载更均衡
leetcode:剑指 Offer 63. 股票的最大利润【记录前缀最小和 or 无脑线段树】