Command line 什么会导致“a”;。json在这个时候是出乎意料的;使用newman从命令行运行邮递员集合时出错

Command line 什么会导致“a”;。json在这个时候是出乎意料的;使用newman从命令行运行邮递员集合时出错,command-line,postman,newman,Command Line,Postman,Newman,我试图使用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从命令行运行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 [urlforjcollection] --reporters cli,json,html --reporter-json-
export "C:\outputfile.json" --reporter-
html-export "C:\outputfile.html" -e 
"c:\QAEnvironment.json"

我在谷歌上搜索了你的错误,这似乎是命令行的问题,而不是邮递员的问题;具体来说,在指定文件位置时需要使用双引号。试试这个:

newman run [urlforjcollection] --reporters cli,json,html --reporter-json-
export "C:\outputfile.json" --reporter-
html-export "C:\outputfile.html" -e 
"c:\QAEnvironment.json"

你能给我看一下哪个命令有效吗?有效的命令是完全相同的命令,我只是指向了另一个集合。我明白了。。您能显示整个命令吗?newman运行[collection url]——reporters cli,json,html——reporter json导出C:\outputfile.json——reporter html导出C:\outputfile.html——e\Postman_环境\BioPeoplev2.Postman_环境您能显示起作用的命令吗?起作用的命令是完全相同的命令,我只是指了一个不同的收藏,我明白。。您能显示整个命令吗?newman运行[collection url]——reporters cli,json,html——reporter json导出C:\outputfile.json——reporter html导出C:\outputfile.html——e\Postman_Environment\BioPeoplev2.Postman_Environment哇,由于某种原因,我在另一个上没有这个,它工作正常,现在我想知道它出了什么问题,但这两种方法都有效。不使用双引号在某些情况下也有效,但在所有情况下使用双引号是最安全的选择。喝彩:)哇,由于某种原因,我没有在另一个上面加上这个,它起了作用,现在我想知道它有什么问题,但不管怎样,它都起了作用。不使用双引号在某些情况下也起作用,但使用双引号在所有情况下都是最安全的选择。干杯:)