gpt4 book ai didi

api - 如何在newman中运行来自集合的单个请求

转载 作者:行者123 更新时间:2023-12-03 14:00:27 24 4
gpt4 key购买 nike

我在 postman 中有一个集合,其中包含很多请求, Newman 中是否有任何选项可以运行该集合中的特定请求,而不是为该特定请求创建新文件夹并运行

最佳答案

是的,您可以使用选项--folder在newman CLI中的收集运行器中运行特定请求。
说明文件:

CLI option : --folder "name"

Run requests within a particular folder/folders or specific requests in a collection. Multiple folders or requests can be specified by using --folder multiple times, like so: --folder f1 --folder f2 --folder r1 --folder r2.


例子:
newman run "postman-collection-API" --environment "postman-environment-API" --folder request-name

关于api - 如何在newman中运行来自集合的单个请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60057009/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com