POSTMAN-NEWMAN:403禁止的错误信息

时间:2018-12-14 12:30:48

标签: api jenkins postman http-status-code-403 newman

1)纽曼版本(可以通过纽曼-v找到):version is 4.6

2)操作系统详细信息(类型,版本和体系结构):RHEL 7.4

3)您是将Newman用作库还是通过CLI使用?通过npm下载了纽曼

4)您最近遇到过这个错误,还是这个bug一直存在:我们是通过Jenkins中的newman首次执行邮递员收藏。

5)预期行为:status 200

6)用于运行纽曼的命令/脚本:HTTP_PROXY=http://xx.xx.xx.xx:xx HTTPS_PROXY=http://xx.xx.xx.xx:xx newman run collections.json --reporters junit,html,xml

我们正在尝试使用Jenkins中的Newman自动执行API测试集合。这些集合在邮递员中可以正常执行,但是在詹金斯执行它们时,我们被禁止使用403。我们得到的输出如下:

GET http://xx.xx.xxx.xx:xxxx/api/add-lead/ [403 Forbidden, 2.69KB, 133ms]

There was an error running your collection: tunneling socket couldn't be established, statusCode=403

我们已经安装了Jenkins和必要的功能,以在Jenkins代理中执行邮递员收藏。 Jenkins,代理,GET,PUT命令中提到的IP位于我们银行的内部网络中。

可能是什么原因,因为我们已经扫描了类似的问题,但没有找到满意的答案。

如果您需要其他详细信息,请告诉我。

致谢

0 个答案:

没有答案
相关问题