纽曼 运行 1 个文件夹和其余 collection

Newman run 1 folder and rest of the collection

我在 Postman 中有 Test.Collection,其中有 2 个文件夹和一些 collection 级别的请求(它们不在文件夹中)。

我 运行 这个 collection 和 Newman 在 CLI 中是这样的:

newman run *path_to_collection* -f *folder_name_in_the_collection*

此命令 运行 仅针对 collection 中的文件夹,而不针对 collection 级别的请求。

有没有办法 运行 1 个文件夹和 collection 中的其余请求?

谢谢

如果集合顶层的请求具有唯一名称,您可以运行这样做:

newman run collection.json --folder "Request_1" --folder "Request_2" --folder "Folder_1"