【问题标题】:Newman run 1 folder and rest of the collection纽曼运行 1 个文件夹和其余的集合
【发布时间】:2021-09-07 20:08:43
【问题描述】:

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

我在 CLI 中使用 Newman 运行这个集合,如下所示:

newman run *path_to_collection* -f *folder_name_in_the_collection*

此命令仅运行集合中的文件夹,而不运行集合级别的请求。

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

谢谢

【问题讨论】:

    标签: api postman newman


    【解决方案1】:

    如果集合顶层的请求具有唯一名称,则可以运行此命令:

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

    【讨论】:

      猜你喜欢
      • 2020-12-14
      • 2020-11-19
      • 2019-04-08
      • 2019-01-20
      • 1970-01-01
      • 2020-03-18
      • 2019-04-13
      • 2018-09-08
      • 2020-08-17
      相关资源
      最近更新 更多