Visual Studio Team Services-尝试测试运行后,运行功能测试生成任务中止 [英] Visual Studio Team Services - Run Functional Tests build task aborting after attempting test run

查看:120
本文介绍了Visual Studio Team Services-尝试测试运行后,运行功能测试生成任务中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在成功执行Visual Studio测试代理部署任务后尝试使用运行功能测试"任务时,测试运行在一段时间后中止,没有报告可操作的错误.

When I attempt to use the Run Functional Tests task after successfully executing the Visual Studio Test Agent Deployment task, the test run is aborting after a period of time with no actionable error reported.

2017-09-18T18:30:56.0416875Z ## [section]开始:运行功能测试 2017-09-18T18:30:56.0436877Z ======================================== ===================================== 2017-09-18T18:30:56.0436877Z任务:运行功能测试
2017-09-18T18:30:56.0436877Z说明:在一组计算机上运行编码的UI/Selenium/功能测试(使用测试代理)
2017-09-18T18:30:56.0446878Z版本:1.0.53
2017-09-18T18:30:56.0446878Z作者:Microsoft Corporation
2017-09-18T18:30:56.0446878Z帮助:[更多信息]
( https ://go.microsoft.com/fwlink/?LinkId = 624389 ) 2017-09-18T18:30:56.0446878Z ========================================= ==================================
2017-09-18T18:30:56.0486882Z正在准备任务执行处理程序.
2017-09-18T18:30:56.2957129Z正在执行Powershell脚本:
C:\ agent_work_tasks \ RunVisualStudioTestsusingTestAgent_d353d6a2-e361-4a8f-8d8c-123bebb71028 \ 1.0.53 \ RunDistributedTests.ps1
2017-09-18T18:30:58.2319065Z DistributedTests:环境WinRm协议HTTP.
2017-09-18T18:30:58.2419075Z DistributedTests:使用以下参数为选定的测试程序集创建运行
2017-09-18T18:30:58.2419075Z DistributedTests:SourceFilter:*** test * .dll TestCaseFilter:
2017-09-18T18:30:58.2419075Z DistributedTests:运行标题:TestRun_TEST-Agile-ASP.NET(PREVIEW)-CI_20170918.17
2017-09-18T18:30:58.2429076Z DistributedTests:自动化:True
2017-09-18T18:30:58.2429076Z DistributedTests:构建位置:E:\ Websites \ BuildTest \
2017-09-18T18:30:58.2429076Z DistributedTests:内部版本ID:147
2017-09-18T18:30:58.2429076Z DistributedTests:测试配置映射:
2017-09-18T18:30:59.1269960Z DistributedTests:使用ID 4463排队的测试运行
2017-09-18T18:30:59.3450178Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:31:09.6130445Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:31:19.8980729Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:31:30.1380968Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:31:40.4581287Z DistributedTests:测试运行'4463'处于'正在进行中'状态.
2017-09-18T18:31:50.6271455Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:32:00.8831710Z DistributedTests:测试运行'4463'处于'进行中'状态.
2017-09-18T18:32:11.0691895Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:32:21.3022127Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:32:31.6102434Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:32:41.8402663Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:32:52.4743296Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:33:02.7353556Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:33:13.0463866Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:33:23.4314250Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:33:33.6404458Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:33:44.0194836Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:33:54.6215437Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:34:04.9425757Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:34:15.1385952Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:34:26.2367049Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:34:36.1997011Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:34:46.4097220Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:34:56.6257435Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:35:06.9417750Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:35:17.7388546Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:35:27.4378244Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:35:37.6538459Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:35:47.8708675Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:35:58.1668970Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:36:08.3655493Z DistributedTests:测试运行'4463'处于'InProgress'状态.
2017-09-18T18:36:18.5925493Z DistributedTests:测试运行'4463'处于'正在进行'状态.
2017-09-18T18:36:28.8865493Z DistributedTests:测试运行'4463'处于'Aborted'状态.
2017-09-18T18:36:38.8945493Z ## [warning] DistributedTests:测试运行已中止.记录运行日志的详细信息.
2017-09-18T18:36:39.1035493Z ## [warning] DistributedTests:创建了新的测试运行.
2017-09-18T18:36:39.1045493Z测试运行已排队等待Project Collection Build Service
2017-09-18T18:36:39.1045493Z
2017-09-18T18:36:39.1055493Z ## [warning] DistributedTests:测试发现已开始.
2017-09-18T18:36:39.1065493Z ## [warning] DistributedTests:测试运行发现异常终止.测试运行ID:4463
2017-09-18T18:36:39.1085493Z ## [warning] DistributedTests:测试执行期间发生意外错误.再试一次.
2017-09-18T18:36:39.1095493Z ## [warning] DistributedTests:错误:NUnit VS适配器2.1.1.0发现测试已完成
2017-09-18T18:36:39.1095493Z
2017-09-18T18:36:39.1105493Z ## [warning] DistributedTests:测试运行已中止.测试运行ID:4463
2017-09-18T18:36:39.1195493Z ## [error] System.Exception:测试运行已中止,任务失败.
2017-09-18T18:36:39.1715493Z ## [error] PowerShell脚本已完成,出现1个错误.
2017-09-18T18:36:39.1715493Z ## [section]完成:运行功能测试

2017-09-18T18:30:56.0416875Z ##[section]Starting: Run Functional Tests 2017-09-18T18:30:56.0436877Z ============================================================================== 2017-09-18T18:30:56.0436877Z Task : Run Functional Tests
2017-09-18T18:30:56.0436877Z Description : Run Coded UI/Selenium/Functional tests on a set of machines (using Test Agent)
2017-09-18T18:30:56.0446878Z Version : 1.0.53
2017-09-18T18:30:56.0446878Z Author : Microsoft Corporation
2017-09-18T18:30:56.0446878Z Help : [More Information]
(https://go.microsoft.com/fwlink/?LinkId=624389) 2017-09-18T18:30:56.0446878Z ===========================================================================
2017-09-18T18:30:56.0486882Z Preparing task execution handler.
2017-09-18T18:30:56.2957129Z Executing the powershell script:
C:\agent_work_tasks\RunVisualStudioTestsusingTestAgent_d353d6a2-e361-4a8f-8d8c-123bebb71028\1.0.53\RunDistributedTests.ps1
2017-09-18T18:30:58.2319065Z DistributedTests: Environment WinRm Protocol HTTP.
2017-09-18T18:30:58.2419075Z DistributedTests: Creating run for selected test assemblies with following parameters
2017-09-18T18:30:58.2419075Z DistributedTests: SourceFilter: ***test*.dll TestCaseFilter:
2017-09-18T18:30:58.2419075Z DistributedTests: Run title: TestRun_TEST - Agile-ASP.NET (PREVIEW)-CI_20170918.17
2017-09-18T18:30:58.2429076Z DistributedTests: is automated: True
2017-09-18T18:30:58.2429076Z DistributedTests: build location: E:\Websites\BuildTest\
2017-09-18T18:30:58.2429076Z DistributedTests: build id: 147
2017-09-18T18:30:58.2429076Z DistributedTests: test configuration mapping:
2017-09-18T18:30:59.1269960Z DistributedTests: Test Run with Id 4463 Queued
2017-09-18T18:30:59.3450178Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:31:09.6130445Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:31:19.8980729Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:31:30.1380968Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:31:40.4581287Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:31:50.6271455Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:32:00.8831710Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:32:11.0691895Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:32:21.3022127Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:32:31.6102434Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:32:41.8402663Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:32:52.4743296Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:33:02.7353556Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:33:13.0463866Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:33:23.4314250Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:33:33.6404458Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:33:44.0194836Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:33:54.6215437Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:34:04.9425757Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:34:15.1385952Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:34:26.2367049Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:34:36.1997011Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:34:46.4097220Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:34:56.6257435Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:35:06.9417750Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:35:17.7388546Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:35:27.4378244Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:35:37.6538459Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:35:47.8708675Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:35:58.1668970Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:36:08.3655493Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:36:18.5925493Z DistributedTests: Test run '4463' is in 'InProgress' state.
2017-09-18T18:36:28.8865493Z DistributedTests: Test run '4463' is in 'Aborted' state.
2017-09-18T18:36:38.8945493Z ##[warning]DistributedTests: Test run is aborted. Logging details of the run logs.
2017-09-18T18:36:39.1035493Z ##[warning]DistributedTests: New test run created.
2017-09-18T18:36:39.1045493Z Test Run queued for Project Collection Build Service
2017-09-18T18:36:39.1045493Z
2017-09-18T18:36:39.1055493Z ##[warning]DistributedTests: Test discovery started.
2017-09-18T18:36:39.1065493Z ##[warning]DistributedTests: Test Run Discovery Aborted . Test run id : 4463
2017-09-18T18:36:39.1085493Z ##[warning]DistributedTests: UnExpected error occurred during test execution. Try again.
2017-09-18T18:36:39.1095493Z ##[warning]DistributedTests: Error : NUnit VS Adapter 2.1.1.0 discovering test is finished
2017-09-18T18:36:39.1095493Z
2017-09-18T18:36:39.1105493Z ##[warning]DistributedTests: Test run aborted. Test run id: 4463
2017-09-18T18:36:39.1195493Z ##[error]System.Exception: The test run was aborted, failing the task.
2017-09-18T18:36:39.1715493Z ##[error]PowerShell script completed with 1 errors.
2017-09-18T18:36:39.1715493Z ##[section]Finishing: Run Functional Tests



这些是来自部署测试代理的日志,在这里我也看不到任何问题,但我将其包括在内以供参考:



These are the logs from deploying the Test Agent, where I can also see no issues, but I am including them for reference:

2017-09-18T18:24:59.2450114Z ## [节]开始:Visual Studio测试代理部署
2017-09-18T18:24:59.2470116Z
===================================== ======================================
2017-09-18T18:24:59.2470116Z任务:Visual Studio测试代理部署
2017-09-18T18:24:59.2470116Z说明:部署和配置测试代理以在一组计算机上运行测试
2017-09-18T18:24:59.2470116Z版本:2.1.20
2017-09-18T18:24:59.2470116Z作者:Microsoft Corporation
2017-09-18T18:24:59.2470116Z帮助:更多信息
2017-09-18T18:24:59.2480117Z
===================================== ======================================
2017-09-18T18:25:01.7892658Z
***************************************** ***************************
2017-09-18T18:25:01.7892658Z任务输入信息

2017-09-18T18:25:01.7902659Z ---------------------------------------- ------------------------
2017-09-18T18:25:01.7932662Z winRmProtocal = Http
2017-09-18T18:25:01.7932662Z testCertificate = true
2017-09-18T18:25:01.7952664Z runAsProcess = true
2017-09-18T18:25:01.7962665Z登录自动= true
2017-09-18T18:25:01.7962665Z disableScreenSaver = true
2017-09-18T18:25:01.7972666Z isDataCollectionOnly =假
2017-09-18T18:25:01.7982667Z testPlatform = 15.0
2017-09-18T18:25:01.7992668Z agentLocation = \ TestAgent \ TestAgent.zip
2017-09-18T18:25:01.8002669Z updateTestAgent =假
2017-09-18T18:25:01.8072676Z
***************************************** ***************************
2017-09-18T18:25:02.4813350Z开始在测试计算机上部署和配置测试代理.
2017-09-18T18:25:02.4813350Z提供的输入为:
2017-09-18T18:25:02.4813350Z使用HTTP端口:True
2017-09-18T18:25:02.4813350Z禁用屏幕保护程序:True
2017-09-18T18:25:02.4823351Z自动登录:True
2017-09-18T18:25:02.4823351Z作为进程运行:True
2017-09-18T18:25:02.4823351Z代理程序位置:\ TestAgent \ TestAgent.zip
2017-09-18T18:25:02.4823351Z更新测试代理:False
2017-09-18T18:25:02.4823351Z仅将测试代理作为DataCollection运行:False
2017-09-18T18:25:02.5973466Z正在运行计算机上的任务'VerifyTestAgentInstalled'
2017-09-18T18:25:07.8168685Z在目标计算机上开始部署...
2017-09-18T18:25:07.8168685Z
2017-09-18T18:25:07.8168685Z对Testplat的查询来自版本:15.0
2017-09-18T18:25:07.8168685Z
2017-09-18T18:25:07.8168685Z测试容器:'REGISTRY :: HKEY_CLASSES_ROOT \ CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}'
2017-09-18T18:25:07.8168685Z
2017-09-18T18:25:07.8168685Z存在.
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z获取Visual Studio安装实例.
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z找到1个实例.
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z描述:支持远程运行自动化测试和负载测试
2017-09-18T18:25:07.8188687Z DisplayName:Visual Studio测试代理2017
2017-09-18T18:25:07.8188687Z ID:c7ded16e
2017-09-18T18:25:07.8188687Z InstallDate:System.Runtime.InteropServices.ComTypes.FILETIME
2017-09-18T18:25:07.8188687Z名称:VisualStudio/15.3.4 + 26730.15
2017-09-18T18:25:07.8188687Z路径:C:\ TestAgent2017
2017-09-18T18:25:07.8188687Z版本:15.3.26730.15
2017-09-18T18:25:07.8198688Z VersionString:15.3.26730.15
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z测试代理已经存在
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z版本:15.3.26730.15
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z DTAAgentExecutionService在机器上不存在
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z DTAExecutionHost未运行
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z RemoteDeployerSource详细信息:2:[RemoteDeployer]
[18:Sep:17:15:25:5:1565; 7084,4]创建用于通信的公钥
2017-09-18T18:25:07.8218690Z RemoteDeployer源信息:12:
[RemoteDeployer] [18:Sep:17:15:25:5:1565; 7084,4]部署服务-VisualStudioRemoteDeployerc612dfc5-c424-4fda-ae9a-cd2f906bce94正在运行...
2017-09-18T18:25:07.8228691Z RemoteDeployerSource详细信息:4:[RemoteDeployer] [18:Sep:17:15:25:6:1861; 7084,6]找到输入文件
2017-09-18T18:25:07.8228691Z RemoteDeployerSource详细信息:5:[RemoteDeployer] [18:Sep:17:15:25:6:1861; 7084,6]读取输入参数
2017-09-18T18:25:07.8238692Z RemoteDeployerSource详细信息:6:[RemoteDeployer]
[18:Sep:17:15:25:6:2017; 7084,6]完成读取输入参数 2017-09-18T18:25:07.8238692Z
2017-09-18T18:25:07.8238692Z机器上的任务'VerifyTestAgentInstalled'已完成.
2017-09-18T18:25:08.8289697Z正在运行计算机上的任务'CopyFilesToTestAgent'
2017-09-18T18:25:09.7900658Z
2017-09-18T18:25:09.7900658Z \已成功删除.
2017-09-18T18:25:09.7900658Z
2017-09-18T18:25:09.7900658Z从C:\ agent_work_tasks \ DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6 \ 2.1.20 \ TestExecution.zip递归复制到计算机上的C:\ TestAgent成功.
2017-09-18T18:25:09.7910659Z
2017-09-18T18:25:09.7910659Z \已成功删除.
2017-09-18T18:25:09.7910659Z
2017-09-18T18:25:09.7910659Z
2017-09-18T18:25:09.7910659Z计算机上的任务'CopyFilesToTestAgent'已完成.
2017-09-18T18:25:09.7950663Z正在运行计算机上的任务'SetupTestMachineForUiTests'
2017-09-18T18:26:09.7980660Z机器上的任务'SetupTestMachineForUiTests'需要时间.请稍候
2017-09-18T18:27:09.7860642Z机器上的任务'SetupTestMachineForUiTests'需要时间.请稍候
2017-09-18T18:28:09.7890639Z计算机上的任务'SetupTestMachineForUiTests'需要时间.请稍候
2017-09-18T18:29:09.7920636Z机器上的任务'SetupTestMachineForUiTests'需要时间.请稍候
2017-09-18T18:29:59.6180457Z在目标计算机上开始部署...
2017-09-18T18:29:59.6200459Z
2017-09-18T18:29:59.6200459Z测试用户
2017-09-18T18:29:59.6200459Z 2017-09-18T18:29:59.6210460Z测试UserDomain
2017-09-18T18:29:59.6230462Z 2017-09-18T18:29:59.6240463Z执行命令:powercfg.exe/Change monitor-timeout-ac 0; powercfg.exe/更改监视器超时DC 0
2017-09-18T18:29:59.6260465Z
2017-09-18T18:29:59.6260465Z错误:
2017-09-18T18:29:59.6270466Z
2017-09-18T18:29:59.6280467Z输出:
2017-09-18T18:29:59.6280467Z
2017-09-18T18:29:59.6280467Z将计算机重新启动计数更新为:1
2017-09-18T18:29:59.6280467Z
2017-09-18T18:29:59.6290468Z当前测试用户尚未登录.重新启动计算机.
2017-09-18T18:29:59.6290468Z
2017-09-18T18:29:59.6290468Z启用自动登录
2017-09-18T18:29:59.6290468Z
2017-09-18T18:29:59.6290468Z 2017-09-18T18:29:59.6310470Z在目标计算机上开始部署...
2017-09-18T18:29:59.6310470Z 2017-09-18T18:29:59.6310470Z测试用户
2017-09-18T18:29:59.6310470Z
2017-09-18T18:29:59.6310470Z测试UserDomain
2017-09-18T18:29:59.6320471Z 2017-09-18T18:29:59.6320471Z执行命令:powercfg.exe/Change monitor-timeout-ac 0; powercfg.exe/更改监视器超时DC 0
2017-09-18T18:29:59.6320471Z
2017-09-18T18:29:59.6320471Z错误:
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6330472Z输出:
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6330472Z用于UI测试的配置已完成
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6340473Z 5:11:9740; 428,4]创建用于通信的公钥
2017-09-18T18:29:59.6340473Z RemoteDeployer源信息:12:[RemoteDeployer] [18:Sep:17:15:25:11:9896; 428,4]部署服务-VisualStudioRemoteDeployerd61e768d-1f6c-4de3-912b-ba961a2bb337正在运行...
2017-09-18T18:29:59.6350474Z RemoteDeployerSource详细信息:4:[RemoteDeployer] [18:Sep:17:15:25:13:0036; 428,6]找到输入文件
2017-09-18T18:29:59.6360475Z RemoteDeployerSource详细信息:5:[RemoteDeployer] [18:Sep:17:15:25:13:0036; 428、6]读取输入参数
2017-09-18T18:29:59.6360475Z RemoteDeployerSource详细信息:6:[RemoteDeployer] [18:Sep:17:15:25:13:0192; 428、6]完成读取输入参数
2017-09-18T18:29:59.6370476Z
2017-09-18T18:29:59.6370476Z计算机上的任务'SetupTestMachineForUiTests'已完成.
2017-09-18T18:29:59.6390478Z正在运行计算机上的任务'TestAgentConfiguration'
2017-09-18T18:30:44.9905825Z在目标计算机上开始部署...
2017-09-18T18:30:44.9905825Z
2017-09-18T18:30:44.9915826Z测试用户
2017-09-18T18:30:44.9915826Z 2017-09-18T18:30:44.9915826Z测试UserDomain
2017-09-18T18:30:44.9915826Z 2017-09-18T18:30:44.9925827Z测试容器:'REGISTRY :: HKEY_CLASSES_ROOT \ CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}'
2017-09-18T18:30:44.9925827Z
2017-09-18T18:30:44.9925827Z存在.
2017-09-18T18:30:44.9935828Z
2017-09-18T18:30:44.9935828Z获取Visual Studio设置实例.
2017-09-18T18:30:44.9935828Z
2017-09-18T18:30:44.9935828Z找到1个实例.
2017-09-18T18:30:44.9945829Z
2017-09-18T18:30:44.9945829Z
2017-09-18T18:30:44.9945829Z
2017-09-18T18:30:44.9945829Z说明:支持远程运行自动化测试和负载测试
2017-09-18T18:30:44.9955830Z DisplayName:Visual Studio测试代理2017
2017-09-18T18:30:44.9955830Z ID:c7ded16e
2017-09-18T18:30:44.9965831Z InstallDate:System.Runtime.InteropServices.ComTypes.FILETIME
2017-09-18T18:30:44.9965831Z名称:VisualStudio/15.3.4 + 26730.15
2017-09-18T18:30:44.9975832Z路径:C:\ TestAgent2017
2017-09-18T18:30:44.9975832Z版本:15.3.26730.15
2017-09-18T18:30:44.9985833Z VersionString:15.3.26730.15
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9995834Z VS路径C:\ TestAgent2017 \ Common7 \ IDE;测试窗口路径C:\ TestAgent2017 \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TestWindow
2017-09-18T18:30:44.9995834Z
2017-09-18T18:30:45.0025837Z路径:
C:\ TestAgent \ TfsAssemblies \ Newtonsoft.Json.dll
2017-09-18T18:30:45.0025837Z
2017-09-18T18:30:45.0035838Z从路径
'C:\ TestAgent \ TfsAssemblies \ Newtonsoft.Json.dll'中加载模块.
2017-09-18T18:30:45.0035838Z
2017-09-18T18:30:45.0045839Z从路径
'C:\ TestAgent \ TfsAssemblies \ System.Net.Http.Formatting.dll'中加载模块.
2017-09-18T18:30:45.0045839Z
2017-09-18T18:30:45.0075842Z从路径
'C:\ TestAgent \ TfsAssemblies \ Microsoft.TeamFoundation.DistributedTask.Task.TestExecution.dll'中加载模块.
2017-09-18T18:30:45.0085843Z
2017-09-18T18:30:45.0095844Z从路径
'C:\ TestAgent \ TfsAssemblies \ Microsoft.TeamFoundation.Common.dll'中加载模块.
2017-09-18T18:30:45.0105845Z
2017-09-18T18:30:45.0105845Z从路径
'C:\ TestAgent \ TfsAssemblies \ Microsoft.TeamFoundation.Test.WebApi.dll'中加载模块.
2017-09-18T18:30:45.0115846Z
2017-09-18T18:30:45.0135848Z从路径
'C:\ TestAgent \ TfsAssemblies \ Microsoft.VisualStudio.Services.Common.dll'中加载模块.
2017-09-18T18:30:45.0135848Z
2017-09-18T18:30:45.0145849Z从路径
'C:\ TestAgent \ TfsAssemblies \ Microsoft.VisualStudio.Services.WebApi.dll'中加载模块.
2017-09-18T18:30:45.0145849Z
2017-09-18T18:30:45.0155850Z从路径
'C:\ TestAgent \ PrivateAssemblies \ MS.VS.TestService.Client.Utility.dll'中加载模块.
2017-09-18T18:30:45.0165851Z
2017-09-18T18:30:45.0165851Z
************************************* ***************************
2017-09-18T18:30:45.0165851Z
2017-09-18T18:30:45.0165851Z配置测试代理

2017-09-18T18:30:45.0165851Z
2017-09-18T18:30:45.0175852Z ---------------------------------------- ------------------------
2017-09-18T18:30:45.0175852Z
2017-09-18T18:30:45.0175852Z SetupPath:(C:\ TestAgent)
2017-09-18T18:30:45.0175852Z
2017-09-18T18:30:45.0175852Z
2017-09-18T18:30:45.0185853Z AsServiceOrProcess:(Process)
2017-09-18T18:30:45.0185853Z
2017-09-18T18:30:45.0185853Z EnvironmentUrl:(dta://env/39a888b4-a200-42b4-8866-eaedb1da410a/_apis//201709181525023083)
2017-09-18T18:30:45.0185853Z
2017-09-18T18:30:45.0185853Z 2017-09-18T18:30:45.0185853Z功能:()
2017-09-18T18:30:45.0185853Z
2017-09-18T18:30:45.0195854Z TestAgentVersion:(15.0)
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z
************************************* ***************************
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z将代理注册为ID:14
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z在Windows 7上启动计划的任务.
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0205855Z RemoteDeployerSource详细信息:2:[RemoteDeployer]
[18:Sep:17:15:30:3:6202; 3168,4]创建用于通信的公钥
2017-09-18T18:30:45.0205855Z RemoteDeployer源信息:12:[RemoteDeployer] [18:Sep:17:15:30:3:6202; 3168,4]部署服务-VisualStudioRemoteDeployerc5e37723-02f4-42db-93b4-2eead65fe9cd正在运行...
2017-09-18T18:30:45.0205855Z RemoteDeployerSource详细信息:4:[RemoteDeployer] [18:Sep:17:15:30:4:6489; 3168,6]找到输入文件
2017-09-18T18:30:45.0215856Z RemoteDeployerSource详细信息:5:[RemoteDeployer] [18:Sep:17:15:30:4:6489; 3168,6]读取输入参数
2017-09-18T18:30:45.0215856Z RemoteDeployerSource详细信息:6:[RemoteDeployer] [18:Sep:17:15:30:4:6801; 3168,6]完成读取输入参数 2017-09-18T18:30:45.0215856Z
2017-09-18T18:30:45.0215856Z机器上的任务'TestAgentConfiguration'已完成.
2017-09-18T18:30:45.0775912Z ## [section]完成:Visual Studio测试代理部署

2017-09-18T18:24:59.2450114Z ##[section]Starting: Visual Studio Test Agent Deployment
2017-09-18T18:24:59.2470116Z
==============================================================================
2017-09-18T18:24:59.2470116Z Task : Visual Studio Test Agent Deployment
2017-09-18T18:24:59.2470116Z Description : Deploy and configure Test Agent to run tests on a set of machines
2017-09-18T18:24:59.2470116Z Version : 2.1.20
2017-09-18T18:24:59.2470116Z Author : Microsoft Corporation
2017-09-18T18:24:59.2470116Z Help : More Information
2017-09-18T18:24:59.2480117Z
==============================================================================
2017-09-18T18:25:01.7892658Z
****************************************************************
2017-09-18T18:25:01.7892658Z Task Input Information

2017-09-18T18:25:01.7902659Z ----------------------------------------------------------------
2017-09-18T18:25:01.7932662Z winRmProtocal = Http
2017-09-18T18:25:01.7932662Z testCertificate = true
2017-09-18T18:25:01.7952664Z runAsProcess = true
2017-09-18T18:25:01.7962665Z logonAutomatically = true
2017-09-18T18:25:01.7962665Z disableScreenSaver = true
2017-09-18T18:25:01.7972666Z isDataCollectionOnly = false
2017-09-18T18:25:01.7982667Z testPlatform = 15.0
2017-09-18T18:25:01.7992668Z agentLocation = \TestAgent\TestAgent.zip
2017-09-18T18:25:01.8002669Z updateTestAgent = false
2017-09-18T18:25:01.8072676Z
****************************************************************
2017-09-18T18:25:02.4813350Z Starting to deploy and configure test agent on test machines.
2017-09-18T18:25:02.4813350Z Inputs provided are:
2017-09-18T18:25:02.4813350Z Use HTTP Port: True
2017-09-18T18:25:02.4813350Z Disable Screen saver: True
2017-09-18T18:25:02.4823351Z Login Automatically: True
2017-09-18T18:25:02.4823351Z Run as process: True
2017-09-18T18:25:02.4823351Z Agent location: \TestAgent\TestAgent.zip
2017-09-18T18:25:02.4823351Z Update test agent: False
2017-09-18T18:25:02.4823351Z Run test agent as DataCollection only : False
2017-09-18T18:25:02.5973466Z Task 'VerifyTestAgentInstalled' on machine is being run
2017-09-18T18:25:07.8168685Z Deployment started on target machine...
2017-09-18T18:25:07.8168685Z
2017-09-18T18:25:07.8168685Z Query for Testplatfrom version: 15.0
2017-09-18T18:25:07.8168685Z
2017-09-18T18:25:07.8168685Z Testing container: 'REGISTRY::HKEY_CLASSES_ROOT\CLSID{177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}'
2017-09-18T18:25:07.8168685Z
2017-09-18T18:25:07.8168685Z Exists.
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z Getting Visual Studio setup instances.
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z Found 1 instances.
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z
2017-09-18T18:25:07.8178686Z Description : Supports running automated tests and load tests remotely
2017-09-18T18:25:07.8188687Z DisplayName : Visual Studio Test Agent 2017
2017-09-18T18:25:07.8188687Z Id : c7ded16e
2017-09-18T18:25:07.8188687Z InstallDate : System.Runtime.InteropServices.ComTypes.FILETIME
2017-09-18T18:25:07.8188687Z Name : VisualStudio/15.3.4+26730.15
2017-09-18T18:25:07.8188687Z Path : C:\TestAgent2017
2017-09-18T18:25:07.8188687Z Version : 15.3.26730.15
2017-09-18T18:25:07.8198688Z VersionString : 15.3.26730.15
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z Test Agent already exists
2017-09-18T18:25:07.8198688Z
2017-09-18T18:25:07.8198688Z Version: 15.3.26730.15
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z DTAAgentExecutionService is not present on the machine
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z DTAExecutionHost is not running
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z
2017-09-18T18:25:07.8208689Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]
[18:Sep:17:15:25:5:1565; 7084, 4] Created public key for communication
2017-09-18T18:25:07.8218690Z RemoteDeployerSource Information: 12 :
[RemoteDeployer][18:Sep:17:15:25:5:1565; 7084, 4] Deployment service - VisualStudioRemoteDeployerc612dfc5-c424-4fda-ae9a-cd2f906bce94 is running...
2017-09-18T18:25:07.8228691Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer][18:Sep:17:15:25:6:1861; 7084, 6] Input file found
2017-09-18T18:25:07.8228691Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer][18:Sep:17:15:25:6:1861; 7084, 6] Reading input parameters
2017-09-18T18:25:07.8238692Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer]
[18:Sep:17:15:25:6:2017; 7084, 6] Finished reading input parameters 2017-09-18T18:25:07.8238692Z
2017-09-18T18:25:07.8238692Z Task 'VerifyTestAgentInstalled' on machine completed.
2017-09-18T18:25:08.8289697Z Task 'CopyFilesToTestAgent' on machine is being run
2017-09-18T18:25:09.7900658Z
2017-09-18T18:25:09.7900658Z \ was deleted successfully.
2017-09-18T18:25:09.7900658Z
2017-09-18T18:25:09.7900658Z Copying recursively from C:\agent_work_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\2.1.20\TestExecution.zip to C:\TestAgent on machine succeeded.
2017-09-18T18:25:09.7910659Z
2017-09-18T18:25:09.7910659Z \ was deleted successfully.
2017-09-18T18:25:09.7910659Z
2017-09-18T18:25:09.7910659Z
2017-09-18T18:25:09.7910659Z Task 'CopyFilesToTestAgent' on machine completed.
2017-09-18T18:25:09.7950663Z Task 'SetupTestMachineForUiTests' on machine is being run
2017-09-18T18:26:09.7980660Z Task 'SetupTestMachineForUiTests' on machine is taking time. Please Wait
2017-09-18T18:27:09.7860642Z Task 'SetupTestMachineForUiTests' on machine is taking time. Please Wait
2017-09-18T18:28:09.7890639Z Task 'SetupTestMachineForUiTests' on machine is taking time. Please Wait
2017-09-18T18:29:09.7920636Z Task 'SetupTestMachineForUiTests' on machine is taking time. Please Wait
2017-09-18T18:29:59.6180457Z Deployment started on target machine...
2017-09-18T18:29:59.6200459Z
2017-09-18T18:29:59.6200459Z Test User
2017-09-18T18:29:59.6200459Z 2017-09-18T18:29:59.6210460Z Test UserDomain
2017-09-18T18:29:59.6230462Z 2017-09-18T18:29:59.6240463Z Executing command : powercfg.exe /Change monitor-timeout-ac 0 ; powercfg.exe /Change monitor-timeout-dc 0
2017-09-18T18:29:59.6260465Z
2017-09-18T18:29:59.6260465Z Error :
2017-09-18T18:29:59.6270466Z
2017-09-18T18:29:59.6280467Z Output :
2017-09-18T18:29:59.6280467Z
2017-09-18T18:29:59.6280467Z Updating machine reboot count to : 1
2017-09-18T18:29:59.6280467Z
2017-09-18T18:29:59.6290468Z Currently test user is not logged in. Rebooting machine.
2017-09-18T18:29:59.6290468Z
2017-09-18T18:29:59.6290468Z Enabling auto logon
2017-09-18T18:29:59.6290468Z
2017-09-18T18:29:59.6290468Z 2017-09-18T18:29:59.6310470Z Deployment started on target machine...
2017-09-18T18:29:59.6310470Z 2017-09-18T18:29:59.6310470Z Test User
2017-09-18T18:29:59.6310470Z
2017-09-18T18:29:59.6310470Z Test UserDomain
2017-09-18T18:29:59.6320471Z 2017-09-18T18:29:59.6320471Z Executing command : powercfg.exe /Change monitor-timeout-ac 0 ; powercfg.exe /Change monitor-timeout-dc 0
2017-09-18T18:29:59.6320471Z
2017-09-18T18:29:59.6320471Z Error :
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6330472Z Output :
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6330472Z Configuration for UI testing is completed
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6330472Z
2017-09-18T18:29:59.6340473Z 5:11:9740; 428, 4] Created public key for communication
2017-09-18T18:29:59.6340473Z RemoteDeployerSource Information: 12 : [RemoteDeployer][18:Sep:17:15:25:11:9896; 428, 4] Deployment service - VisualStudioRemoteDeployerd61e768d-1f6c-4de3-912b-ba961a2bb337 is running...
2017-09-18T18:29:59.6350474Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer][18:Sep:17:15:25:13:0036; 428, 6] Input file found
2017-09-18T18:29:59.6360475Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer][18:Sep:17:15:25:13:0036; 428, 6] Reading input parameters
2017-09-18T18:29:59.6360475Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer][18:Sep:17:15:25:13:0192; 428, 6] Finished reading input parameters
2017-09-18T18:29:59.6370476Z
2017-09-18T18:29:59.6370476Z Task 'SetupTestMachineForUiTests' on machine completed.
2017-09-18T18:29:59.6390478Z Task 'TestAgentConfiguration' on machine is being run
2017-09-18T18:30:44.9905825Z Deployment started on target machine...
2017-09-18T18:30:44.9905825Z
2017-09-18T18:30:44.9915826Z Test User
2017-09-18T18:30:44.9915826Z 2017-09-18T18:30:44.9915826Z Test UserDomain
2017-09-18T18:30:44.9915826Z 2017-09-18T18:30:44.9925827Z Testing container: 'REGISTRY::HKEY_CLASSES_ROOT\CLSID{177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}'
2017-09-18T18:30:44.9925827Z
2017-09-18T18:30:44.9925827Z Exists.
2017-09-18T18:30:44.9935828Z
2017-09-18T18:30:44.9935828Z Getting Visual Studio setup instances.
2017-09-18T18:30:44.9935828Z
2017-09-18T18:30:44.9935828Z Found 1 instances.
2017-09-18T18:30:44.9945829Z
2017-09-18T18:30:44.9945829Z
2017-09-18T18:30:44.9945829Z
2017-09-18T18:30:44.9945829Z Description : Supports running automated tests and load tests remotely
2017-09-18T18:30:44.9955830Z DisplayName : Visual Studio Test Agent 2017
2017-09-18T18:30:44.9955830Z Id : c7ded16e
2017-09-18T18:30:44.9965831Z InstallDate : System.Runtime.InteropServices.ComTypes.FILETIME
2017-09-18T18:30:44.9965831Z Name : VisualStudio/15.3.4+26730.15
2017-09-18T18:30:44.9975832Z Path : C:\TestAgent2017
2017-09-18T18:30:44.9975832Z Version : 15.3.26730.15
2017-09-18T18:30:44.9985833Z VersionString : 15.3.26730.15
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9985833Z
2017-09-18T18:30:44.9995834Z VS path C:\TestAgent2017\Common7\IDE; Test window path C:\TestAgent2017\Common7\IDE\CommonExtensions\Microsoft\TestWindow
2017-09-18T18:30:44.9995834Z
2017-09-18T18:30:45.0025837Z Path:
C:\TestAgent\TfsAssemblies\Newtonsoft.Json.dll
2017-09-18T18:30:45.0025837Z
2017-09-18T18:30:45.0035838Z Loading module from path
'C:\TestAgent\TfsAssemblies\Newtonsoft.Json.dll'.
2017-09-18T18:30:45.0035838Z
2017-09-18T18:30:45.0045839Z Loading module from path
'C:\TestAgent\TfsAssemblies\System.Net.Http.Formatting.dll'.
2017-09-18T18:30:45.0045839Z
2017-09-18T18:30:45.0075842Z Loading module from path
'C:\TestAgent\TfsAssemblies\Microsoft.TeamFoundation.DistributedTask.Task.TestExecution.dll'.
2017-09-18T18:30:45.0085843Z
2017-09-18T18:30:45.0095844Z Loading module from path
'C:\TestAgent\TfsAssemblies\Microsoft.TeamFoundation.Common.dll'.
2017-09-18T18:30:45.0105845Z
2017-09-18T18:30:45.0105845Z Loading module from path
'C:\TestAgent\TfsAssemblies\Microsoft.TeamFoundation.Test.WebApi.dll'.
2017-09-18T18:30:45.0115846Z
2017-09-18T18:30:45.0135848Z Loading module from path
'C:\TestAgent\TfsAssemblies\Microsoft.VisualStudio.Services.Common.dll'.
2017-09-18T18:30:45.0135848Z
2017-09-18T18:30:45.0145849Z Loading module from path
'C:\TestAgent\TfsAssemblies\Microsoft.VisualStudio.Services.WebApi.dll'.
2017-09-18T18:30:45.0145849Z
2017-09-18T18:30:45.0155850Z Loading module from path
'C:\TestAgent\PrivateAssemblies\MS.VS.TestService.Client.Utility.dll'.
2017-09-18T18:30:45.0165851Z
2017-09-18T18:30:45.0165851Z
****************************************************************
2017-09-18T18:30:45.0165851Z
2017-09-18T18:30:45.0165851Z Configure Test Agent

2017-09-18T18:30:45.0165851Z
2017-09-18T18:30:45.0175852Z ----------------------------------------------------------------
2017-09-18T18:30:45.0175852Z
2017-09-18T18:30:45.0175852Z SetupPath : (C:\TestAgent)
2017-09-18T18:30:45.0175852Z
2017-09-18T18:30:45.0175852Z
2017-09-18T18:30:45.0185853Z AsServiceOrProcess : (Process)
2017-09-18T18:30:45.0185853Z
2017-09-18T18:30:45.0185853Z EnvironmentUrl : (dta://env/39a888b4-a200-42b4-8866-eaedb1da410a/_apis//201709181525023083)
2017-09-18T18:30:45.0185853Z
2017-09-18T18:30:45.0185853Z 2017-09-18T18:30:45.0185853Z Capabilities : ()
2017-09-18T18:30:45.0185853Z
2017-09-18T18:30:45.0195854Z TestAgentVersion : (15.0)
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z
****************************************************************
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z Register the Agent with Id: 14
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z Starting scheduled task on Windows 7.
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0195854Z
2017-09-18T18:30:45.0205855Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]
[18:Sep:17:15:30:3:6202; 3168, 4] Created public key for communication
2017-09-18T18:30:45.0205855Z RemoteDeployerSource Information: 12 : [RemoteDeployer][18:Sep:17:15:30:3:6202; 3168, 4] Deployment service - VisualStudioRemoteDeployerc5e37723-02f4-42db-93b4-2eead65fe9cd is running...
2017-09-18T18:30:45.0205855Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer][18:Sep:17:15:30:4:6489; 3168, 6] Input file found
2017-09-18T18:30:45.0215856Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer][18:Sep:17:15:30:4:6489; 3168, 6] Reading input parameters
2017-09-18T18:30:45.0215856Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer][18:Sep:17:15:30:4:6801; 3168, 6] Finished reading input parameters 2017-09-18T18:30:45.0215856Z
2017-09-18T18:30:45.0215856Z Task 'TestAgentConfiguration' on machine completed.
2017-09-18T18:30:45.0775912Z ##[section]Finishing: Visual Studio Test Agent Deployment

注意:我尝试运行的测试是NUnit测试,并且我已经将NUnit软件包和NUnit 3 Test Adapter软件包安装到了正在构建的项目中

Notes: The tests I am attempting to run are NUnit tests, and I have installed the NUnit package and the NUnit 3 Test Adapter package to the project that is being built

推荐答案

作为解决此问题的方法,我使用了VSTS中的批处理脚本任务来执行执行 NUnit的批处理脚本控制台(在此处可用).实现此目的的批处理脚本如下所示:

As a workaround to this issue I have used the Batch Script task in VSTS to execute a batch script that executes NUnit Console (available here). The batch script to achieve this simply looks like:

"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" {Path to your project}\YourProjectName.csproj

为了跟踪VSTS中的测试结果,我只添加了发布测试结果任务,并将其指向NUnit Console生成的 TestResults.xml 文件.

In order to track the results of testing in VSTS, I simply added the Publish Test Results task and pointed it to the TestResults.xml file generated by NUnit Console.

尽管与使用测试代理的运行功能测试任务不同,该方法可以满足我所有的测试需求(头痛更少).

Although different than the Run Functional Tests task that uses a test agent, this method fulfills all of my testing needs (with fewer headaches).

这篇关于Visual Studio Team Services-尝试测试运行后,运行功能测试生成任务中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆