Azure devops 从Azure DevOps运行时,Postman测试挂起

Azure devops 从Azure DevOps运行时,Postman测试挂起,azure-devops,postman-collection-runner,Azure Devops,Postman Collection Runner,从Azure DevOps运行postman/newman测试集合时,测试挂起。结果显示: [debug]INPUT_SCRIPT: 'newman run CVueAPITests.postman_collection.json -k -e QME.postman_environment.json -d CVUEAPIAliveData_1.csv --reporters junit --reporter-junit-export Results\junitReport.xml' [debug

从Azure DevOps运行postman/newman测试集合时,测试挂起。结果显示:

[debug]INPUT_SCRIPT: 'newman run CVueAPITests.postman_collection.json -k -e QME.postman_environment.json -d CVUEAPIAliveData_1.csv --reporters junit --reporter-junit-export Results\junitReport.xml'
[debug]INPUT_WORKINGDIRECTORY: 'D:\DEV_agent\_work\7\s\Postman\CVue'
[debug]Asserting container path exists: 'D:\DEV_agent\_work\7\s\Postman\CVue'
Generating script.
Script contents:
newman run CVueAPITests.postman_collection.json -k -e QME.postman_environment.json -d CVUEAPIAliveData_1.csv --reporters junit --reporter-junit-export Results\junitReport.xml
[debug]AGENT_VERSION: '2.149.2'
[debug]AGENT_TEMPDIRECTORY: 'D:\DEV_agent\_work\_temp'
[debug]Asserting container path exists: 'D:\DEV_agent\_work\_temp'
[debug]Asserting leaf path exists: 'C:\Windows\system32\cmd.exe'
========================== Starting Command Output ===========================
[debug]Entering Invoke-VstsTool.
[debug] Arguments: '/D /E:ON /V:OFF /S /C "CALL "D:\DEV_agent\_work\_temp\1c3a85e8-d01b-4df3-b6b0-322239c48093.cmd""'
[debug] FileName: 'C:\Windows\system32\cmd.exe'
[debug] WorkingDirectory: 'D:\DEV_agent\_work\7\s\Postman\CVue'
[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\DEV_agent\_work\_temp\1c3a85e8-d01b-4df3-b6b0-322239c48093.cmd""
在生成服务器上本地执行完全相同的命令时,运行测试集合没有问题:

newman run CVueAPITests.postman_collection.json -k -e QME.postman_environment.json -d CVUEAPIAliveData_1.csv --reporters junit --reporter-junit-export Results\junitReport.xml

我根据这个测试了它,最后我可以成功地得到测试结果。你可以参考它来了解详细的指南

在这里我给出了一个详细的配置,你可以看到它与你的不同之处。希望能对你有所帮助


我最初也关注同一个博客,但仍然没有成功。我已尝试将cli添加/删除到-reporters标志,但似乎没有启动测试,因为没有向运行API测试生成步骤控制台日志报告任何内容。您使用私有代理。您可以转到本地s文件夹下的Results文件夹,查看是否生成了junitReport.xml文件。您好,您的问题进展如何?如果您有任何问题,请随时提问。