【问题标题】:How to run web based Postman collection with Newman, on HTTPS protocol如何在 HTTPS 协议上使用 Newman 运行基于 Web 的 Postman 集合
【发布时间】:2022-01-18 17:10:26
【问题描述】:

我正在尝试从免费的虚拟主机文本文件中运行一个集合,我可以通过以下方式轻松运行它:

newman run %https://mysite.txt%

现在我试图在本地捕获从 newman run 发送的请求,所以我在 CMD 中添加了这个命令:

set HTTP_PROXY=127.0.0.1:62248

这应该允许我的应用在这样使用它时记录来自 Newman 的请求:

newman run %https://mysite.txt% --env-var HTTP_PROXY --insecure

(它适用于本地托管文件) 但是由于 txt 文件是由 https 协议托管的,所以我收到以下错误:

error: collection could not be loaded
  unable to fetch data from url "https://mysite.txt"
  tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 62248

我可以在本地录制时从安全的 https 网址运行 Newman 集合,还是应该先在本地下载并保存,然后在本地运行?

【问题讨论】:

    标签: https postman postman-collection-runner newman postman-newman


    【解决方案1】:

    我目前的临时(希望我会得到一个更好的)是从存储文件的任何地方下载文件,并使用下载的文件在本地运行 Newman。

    【讨论】:

      猜你喜欢
      • 2018-05-26
      • 1970-01-01
      • 2017-11-03
      • 2019-12-06
      • 2021-08-25
      • 2016-09-24
      • 2016-11-15
      • 2017-08-17
      • 2019-12-14
      相关资源
      最近更新 更多