Postman 邮递员:Newman collection runner无法通过调用发送正文中的表单url编码参数

Postman 邮递员:Newman collection runner无法通过调用发送正文中的表单url编码参数,postman,Postman,在body部分x-www-form-ulrencoded中,由邮递员向设置登录发送凭据。这绝对行得通 在newman collection runner中导出此脚本后,此操作无效 输出结果如下: ------------------------------------------------------------------------------------------- 401 3361ms Login Call [POST] https://<url>/login -----

在body部分x-www-form-ulrencoded中,由邮递员向设置登录发送凭据。这绝对行得通

在newman collection runner中导出此脚本后,此操作无效

输出结果如下:

-------------------------------------------------------------------------------------------
401 3361ms Login Call [POST] https://<url>/login
------------------------------------------------------------
Request headers:
{
 "content-type": "application/x-www-form-urlencoded",
 "host": "<url>",
 "accept-encoding": "gzip, deflate",
 "content-length": 0
}
Request data:
{
  "userid": "user",
  "password": "pswd"
}
------------------------------------------------------------
Response headers:
{
 "x-frame-options": "SAMEORIGIN",
 "content-type": "application/json",
 "x-content-type-options": "nosniff",
 "date": "...",
 "cache-control": "no-cache",
 "content-length": "120",
 "x-xss-protection": "1; mode=block",
 "connection": "close",
 "accept-ranges": "bytes"
}
Response body:
{"errorCode":"401","errorMessage":"Login failed, please check the credentials","errorDescription":"API Request Failure"}

所以这里的问题是安装的Newman版本。 所以我得到了最新版本:

//to install
npm install -g newman

//needed to use Newman.run instead of Newman.execute
newman run c:\s -e c:\env --reporters cli,json --reporter-json-export c:\out.json -k

//-k was required to bypass ssl security issues.

我发现Newman在发送到服务器之前删除了url编码体中的参数。有什么线索吗?
Postman for Chrome
Version 5.0.2
win / x86-64
Chrome 59.0.3071.115
//to install
npm install -g newman

//needed to use Newman.run instead of Newman.execute
newman run c:\s -e c:\env --reporters cli,json --reporter-json-export c:\out.json -k

//-k was required to bypass ssl security issues.