我们正在尝试使用团队项目源代码控制的TFS 2017以交互模式运行我们的功能测试。 我们在其他使用GIT的团队项目中运行了这个。 我们部署测试代理,并选择激活更新它 我们还尝试重用GIT团队项目中的测试代理机器,但无济于事。
DTAExecutionHost.exe.txt提供
I,8816,1,207 / 07 / 18,12:33:38.397,44435081265562,DTAExecutionHost.exe,Main.TryReadAndCacheVssCredentials获取令牌信息 I,8816,1,207 / 07 / 18,12:33:38.485,44435082478968,DTAExecutionHost.exe,与令牌服务进行通信http://myTfsUrl:8080/tfs/myCollection W,8816,1,2017 / 07 / 18,12:33:39.528,44435097416029,DTAExecutionHost.exe,服务任务失败。重试尝试10。 I,20572,1,207 / 07 / 18,12:33:42.835,44435144796158,DTAExecutionHost.exe,Main.TryReadAndCacheVssCredentials获取令牌信息 I,20572,1,2017 / 07 / 18,12:33:42.928,44435146081842,DTAExecutionHost.exe,与令牌服务通信http://myTfsUrl:8080/tfs/myCollection I,20572,1,207 / 07 / 18,12:33:44.749,44435172160608,DTAExecutionHost.exe,关闭令牌服务 I,20572,1,207 / 07 / 18,12:33:46.151,myTestMachine \ DTAExecutionHost,ExecutionTaskStateModel.GetExecutionAdapter:初始化VstestAdapter。 I,20572,1,2017 / 07 / 18,12:33:46.152,myTestMachine \ DTAExecutionHost,ExecutionTaskStateModel.Start:开始监控任务 V,20572,1,2017 / 07 / 18,12:33:46.157,myTestMachine \ DTAExecutionHost,TestExecutionServiceCommandQueueListener.DispatchAsync:获取测试代理的命令Microsoft.TeamFoundation.Test.WebApi.TestAgent Web方法运行:[http://myTfsUrl:8080/tfs/myCollection/_apis/test/Agents/74959/Commands/0](GET)0 [测试] I,20572,1,207 / 07 / 18,12:33:46.214,44435193134421,DTAExecutionHost.exe,************************** ****************************************** I,20572,1,207 / 07 / 18,12:33:46.214,44435193135389,DTAExecutionHost.exe,Main.InitializeAndStartExecutionHost。 ExecutionHost已经启动 Web方法响应:[http://myTfsUrl:8080/tfs/myCollection/_apis/test/Agents/74959/Commands/0](GET)0 [测试] 57毫秒 V,20572,7,2017 / 07 / 18,12:33:46.606,myTestMachine \ DTAExecutionHost,TestExecutionServiceCommandQueueListener:DispatchAsync W,20572,7,2017 / 07 / 18,12:33:46.609,myTestMachine \ DTAExecutionHost,TestExecutionServiceCommandQueueListener.DispatchAsync:TestExecutionCommand收到时为None。重试它。 W,20572,7,2017 / 07 / 18,12:33:46.610,myTestMachine \ DTAExecutionHost,TestExecutionServiceCommandQueueListener.DispatchAsync:未找到队列。延迟3000毫秒。 V,20572,4,2017 / 07 / 18,12:33:49.620,myTestMachine \ DTAExecutionHost,TestExecutionServiceCommandQueueListener.DispatchAsync:获取测试代理的命令Microsoft.TeamFoundation.Test.WebApi.TestAgent
在http://myTfsUrl:8080/tfs/myCollection/_apis/test/Agents/74959调用API 给出结果{“id”:74957,“name”:“myTestMachine”,“dtlEnvironment”:{“id”:0,“url”:“dta:// env / myProject / _apis / 82470/201707181206420966”}, “dtlMachine”:{ “ID”:0, “名称”: “myTestMachine:5985”}, “能力”:[], “testRunId”: - 1} 我假设错误是由testRunId“: - 1引起的,因为来自GIT项目的测试执行具有正testRunId。 知道为什么吗?
答案 0 :(得分:0)
最后这是由于团队项目手动迁移到另一个 tfs 实例,缺少一些字段。