1

我目前正在为客户设置一个自动化的 UI 测试管道。管道本身正在工作(Selenium 测试正在运行并相应地结束),但在 vstest 任务开始时,版本中显示以下错误:

CScript 错误 - JSON 输入意外结束

日志本身只提供更多信息:

2018-11-08T09:01:27.5866296Z VisualStudio version selected for test execution : latest
2018-11-08T09:01:27.7436467Z ========================================================
2018-11-08T09:01:27.7481019Z ======================================================
2018-11-08T09:01:27.7896471Z [command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" @C:\vstsagent\A3\_work\_temp\e063c6c1-e334-11e8-96ca-cb244534022f.txt
2018-11-08T09:01:27.9515408Z ##[error]Unhandled: Unexpected end of JSON input
2018-11-08T09:01:27.9524437Z ##[error]Unhandled: Command failed: cscript.exe //Nologo C:\vstsagent\A3\_work\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.142.12\node_modules\regedit\vbs\regListStream.wsf A

2018-11-08T09:01:28.0079953Z ##[error]Unhandled: Unexpected end of JSON input
2018-11-08T09:01:28.0095401Z ##[error]Unhandled: Command failed: cscript.exe //Nologo C:\vstsagent\A3\_work\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.142.12\node_modules\regedit\vbs\regListStream.wsf A

2018-11-08T09:01:28.1547295Z Microsoft (R) Test Execution Command Line Tool Version 15.8.0
2018-11-08T09:01:28.1550589Z Copyright (c) Microsoft Corporation.  All rights reserved.
2018-11-08T09:01:28.1550786Z 
2018-11-08T09:01:28.1581289Z vstest.console.exe 

发布本身一直显示为“部分成功”,这严重影响了自动通知,因为测试本身成功且没有问题。到目前为止,我还无法在这种情况下找到解决方案。

有谁知道如何解决这个问题?如果需要,我很乐意提供更多信息。

4

1 回答 1

0

我们只是设法通过以旧方式重新添加构建代理(前往 _settings/agentqueues “代理池”并使用“下载代理”)来消除错误。

以前,我们使用部署组配置代理:虽然我仍然不知道为什么,但这显然与问题有关。

于 2018-11-08T14:48:49.790 回答