我在 Postman 中有 Test.Collection,其中有 2 个文件夹和一些收集级别的请求(它们不在文件夹中)。
我在 CLI 中使用 Newman 运行这个集合,如下所示:
newman run *path_to_collection* -f *folder_name_in_the_collection*
此命令仅运行集合中的文件夹,而不运行集合级别的请求。
有没有办法运行 1 个文件夹和集合中的其余请求?
谢谢
答案 0 :(得分:1)
如果集合顶层的请求具有唯一名称,您可以运行此:
newman run collection.json --folder "Request_1" --folder "Request_2" --folder "Folder_1"