Newman Docker error: unknown option `--url'

Newman Docker error: unknown option `--url'

我发现该选项是通过 运行以下

在 MAC 上为 运行 newman 创建的 docker 图片和 postman 集合
docker pull postman/newman_ubuntu1404

docker run -t postman/newman_ubuntu1404 --url="https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"

当 运行ning newman 在 postman 集合的图像上返回以下错误。

error: unknown option `--url'

Docker 版本是 Docker 版本 18.06.1-ce,构建 e68fc7a

支持吗?

我发现这个 github issue 说用 run 替换 --url=:

docker run -t postman/newman_ubuntu1404 run "https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"

似乎有效...

docker run -t postman/newman_ubuntu1404 run "https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"
newman: Newman v4 deprecates support for the v1 collection format
  Use the Postman Native app to export collections in the v2 format

newman

newmanTest

→ GET with URL Params
  GET http://httpbin.org/get?lol=true [200 OK, 542B, 339ms]
  ✓  Response contains params

→ POST with JSON body
  POST http://httpbin.org/post [200 OK, 704B, 158ms]
  ✓  Check POST param in response

→ DELETE request
  DELETE http://httpbin.org/delete [200 OK, 606B, 184ms]
  ✓  Status code is 200

→ PUT with form data
  PUT http://httpbin.org/put [200 OK, 687B, 159ms]
  ✓  Test form data

┌─────────────────────────┬──────────┬──────────┐
│                         │ executed │   failed │
├─────────────────────────┼──────────┼──────────┤
│              iterations │        1 │        0 │
├─────────────────────────┼──────────┼──────────┤
│                requests │        4 │        0 │
├─────────────────────────┼──────────┼──────────┤
│            test-scripts │        4 │        0 │
├─────────────────────────┼──────────┼──────────┤
│      prerequest-scripts │        0 │        0 │
├─────────────────────────┼──────────┼──────────┤
│              assertions │        4 │        0 │
├─────────────────────────┴──────────┴──────────┤
│ total run duration: 1204ms                    │
├───────────────────────────────────────────────┤
│ total data received: 1.52KB (approx)          │
├───────────────────────────────────────────────┤
│ average response time: 210ms                  │
└───────────────────────────────────────────────┘

问题中使用的 docker 图片现已过时,并且 the new official image 出现了一个不使用“--url”

的工作示例

docker拉postman/newman

docker 运行 -t postman/newman 运行 "https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"