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