【问题标题】:How to download excel (.xls) file from API in postman for suite run?如何从邮递员中的 API 下载 excel (.xls) 文件以进行套件运行?
【发布时间】:2019-07-05 01:52:15
【问题描述】:

对于单个请求,我可以通过选择“发送和下载”选项以 excel 格式下载响应输出。谁能帮我在邮递员中使用集合运行器下载相同的内容。

【问题讨论】:

    标签: postman-collection-runner


    【解决方案1】:

    此功能在 Postman Collection Runner 中尚不可用!但是,如果您想在 Newman 中执行此操作,则有一种解决方法。

    由于 Newman 是基于 Node.js 构建的,您可以在 Node.js 代码中对其进行扩展,如下例所示。

    https://github.com/postmanlabs/newman/issues/413#issuecomment-316116450

    运行上面的脚本基本上与newman run ... 做同样的事情,并且还将响应保存到文件中

    【讨论】:

      猜你喜欢
      • 2016-12-22
      • 2019-11-12
      • 2021-09-22
      • 1970-01-01
      • 2021-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多