【发布时间】:2018-01-11 11:08:36
【问题描述】:
我正在尝试使用 newman 从命令行运行 postman 集合。我之前已经成功了,但是在最近的这个系列中,我遇到了一个错误。我正在使用以下命令
newman run [urlforjcollection] --reporters cli,json,html --reporter-json-
export C:\outputfile.json --reporter-
html-export C:\outputfile.html -e
c:\QAEnvironment.json
这无法运行,我收到错误 .json 在此时是意外的。正如我所说,我在另一个集合上使用了这个确切的命令,它工作得很好。
有谁知道这个问题会发生什么?是我的命令有问题还是邮递员中的某些设置可能导致它?
【问题讨论】:
-
你能显示有效的命令吗?
-
有效的命令是完全相同的命令,我只是指向不同的集合。
-
我明白了.. 能否请您显示整个命令?
-
newman run [collection url] --reporters cli,json,html --reporter-json-export C:\outputfile.json --reporter-html-export C:\outputfile.html -e \Postman_Environment\BioPeoplev2.postman_environment
标签: command-line postman newman