【问题标题】:I'm getting 2 errors while running my postman script on a docker in GitLab. The same script is running fine through Postman and Newman [closed]在 GitLab 的 docker 上运行邮递员脚本时出现 2 个错误。相同的脚本通过 Postman 和 Newman 运行良好 [关闭]
【发布时间】:2019-03-21 06:24:18
【问题描述】:

尝试在 GitLab 的 docker 上运行我的邮递员脚本 (collection.json) 时,我遇到了两个错误,如随附的屏幕截图所示。以下是有关我的系统设置的详细信息:

1. Newman Version: 4.1.0
2. OS details: Windows 7, 64 bit
3. Expected behaviour: I should get the Status code as 200 and my assertion should pass.
4. Command/script used to run Newman: newman run Generate_Access_Token.postman_collection.json --reporters cli, html --reporter-html-export report.html
I'm getting two errors as shown in the attached screenshot while trying to run my postman script (collection.json) on a docker in GitLab

【问题讨论】:

  • 您需要重新编辑此问题,以便任何人提供任何类型的答案。使用以 github 为中心的问题模板不是您在这个平台上提问的方式。
  • 看起来像是证书问题,您是否在本地使用 Newman 运行该集合,而不使用 Docker 映像?
  • 我的意思是,您面前的错误是关于问题所在 - 您从中获取令牌的 API 存在证书问题。不太确定还能说什么。

标签: gitlab postman newman


【解决方案1】:

在我的运行语句末尾添加 --insecure 对我有用。新语句如下所示:

  • newman run Generate_Access_Token.postman_collection.json --reporters cli, html --reporter-html-export report.html --insecure

【讨论】:

    猜你喜欢
    • 2019-01-02
    • 1970-01-01
    • 1970-01-01
    • 2011-01-14
    • 1970-01-01
    • 1970-01-01
    • 2021-12-04
    • 2014-01-02
    相关资源
    最近更新 更多