我在 GitLab 的 docker 上 运行 我的邮递员脚本时遇到 2 个错误。相同的脚本 运行 通过 Postman 和 Newman 没问题

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

我在 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

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

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