我使用Newman来执行一个邮递员集合,但是我总是有一个错误"connect“。只用邮递员就行了,但对纽曼就不行了。测试非常简单,在服务器https://jsonblob.com/api上创建一个内容
我正在学习http://blog.getpostman.com/2014/04/17/how-to-write-automated-tests-for-apis-with-postman-part-2/教程
提前谢谢你。我把收藏和环境文件放在下面。
:{ "id":"a6a6b2fe-db11-4c57-9144-6b3324174f18","name":"Newman","value":[{ "key":"url",“value”:"https://jsonblob.com","enabled":true,"type":"text“},{ "key":"deviceMapping",“值”:"{\n \“内容\:\”我的第一篇博客文章:\n}“,"enabled":true,"type":"text”},{ "key":"blogLink",“https://jsonblob.com/api/jsonBlob/b7f2ce87-4c8e-11e8-917b-9137e61d314b”:"https://jsonblob.com/api/jsonBlob/b7f2ce87-4c8e-11e8-917b-9137e61d314b",“https://jsonblob.com/api/jsonBlob/b7f2ce87-4c8e-11e8-917b-9137e61d314b”:true,"type":"text“},"_postman_variable_scope":“环境”,"_postman_exported_at":"2018-04-30T16:13:07.630Z","_postman_exported_using":“邮递员/6.0.10”}
这是环境文件:{ "id":"a6a6b2fe-db11-4c57-9144-6b3324174f18","name":"Newman","value":[{ "key":"url",“https://jsonblob.com”:"https://jsonblob.com",“https://jsonblob.com”,"enabled":true,"type":"text“} },{ "key":"deviceMapping",“值”:"{\n \“内容\:\”我的第一篇博客文章:\n}“,"enabled":true,"type":"text”},{ "key":"blogLink",“https://jsonblob.com/api/jsonBlob/b7f2ce87-4c8e-11e8-917b-9137e61d314b”:"https://jsonblob.com/api/jsonBlob/b7f2ce87-4c8e-11e8-917b-9137e61d314b",“https://jsonblob.com/api/jsonBlob/b7f2ce87-4c8e-11e8-917b-9137e61d314b”:true,"type":"text“},"_postman_variable_scope":“环境”,"_postman_exported_at":"2018-04-30T16:13:07.630Z","_postman_exported_using":“邮递员/6.0.10”}
发布于 2018-05-09 07:46:36
修正:这是一个代理问题。我在cmd控制台中编写了这两个命令:
set HTTPS_proxy=myuser:mypassword@ipoftheproxy:portoftheproxy
set HTTP_proxy=myuser:mypassword@ipoftheproxy:portoftheproxy发布于 2020-08-28 15:03:03
对我来说,这是一个代理问题,我在邮递员设置中添加了我的组织特定的代理,它起了作用。
发布于 2022-04-25 09:42:43
通过更改代理协议来修正
适用于Mac用户

另一种方式是:
如果你发现任何问题,请告诉我

https://stackoverflow.com/questions/50101768
复制相似问题