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

标签 api collections postman newman runner

我在 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/

相关文章:

python - 在 Python 中合并时间戳列表

node.js - Postman 卡在 "GET"请求,在使用 PostgreSQL 作为后端的 Node JS 中给出 "Could not get response Error: read ECONNRESET"错误

javascript - 通过 JavaScript SDK 进行 API 身份验证

javascript - Angular - 如何获取 JSON 对象的结果?

c# - 在 LINQ 语句中转换对象类型

.net - .NET 中的非通用集合是否已过时?

javascript - Axios 获得与 Postman 不同的 X-CSRF token

asp.net-core - 如何在 IdentityServer ASP.NET Core 中使用 Postman 调用带有 AntiForgeryToken 的 API

api - 在 REST API 中使用 ?参数的问号?

php - 在 Magento 中,扩展 rest/products api 以检索返回列表中产品的标签和属性的性能如何?