使用带有团队项目源代码控制的 TFS 2017 以交互模式运行功能测试
Runningfunctional tests in interactive mode using TFS 2017 with team project source control
我们正在尝试 运行 使用带有团队项目源代码管理的 TFS 2017 在交互模式下进行我们的功能测试。
我们在其他使用 GIT 的团队项目中得到了这个 运行ning。
我们部署测试代理并激活更新它的选项
我们还尝试重用 GIT 团队项目中的测试代理机器,但无济于事。
DTAExecutionHost.exe.txt 给出
I, 8816, 1, 2017/07/18, 12:33:38.397, 44435081265562, DTAExecutionHost.exe, Main.TryReadAndCacheVssCredentials 获取代币信息
I, 8816, 1, 2017/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, 2017/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, 2017/07/18, 12:33:44.749, 44435172160608, DTAExecutionHost.exe, 关闭令牌服务
I, 20572, 1, 2017/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 方法 运行ning: [http://myTfsUrl:8080/tfs/myCollection/_apis/test/Agents/74959/Commands/0] (GET)0[test]
我, 20572, 1, 2017/07/18, 12:33:46.214, 44435193134421, DTAExecutionHost.exe, ********************** *************************************************
我, 20572, 1, 2017/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[test] 57 毫秒
五、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,"name":"myTestMachine:5985"},"capabilities":[],"testRunId":-1}
我假设错误是由 testRunId":-1 引起的,因为来自 GIT 项目的测试执行具有正的 testRunId。
知道为什么吗?
最后是因为团队项目手动迁移到另一个tfs实例,少了几个字段。
我们正在尝试 运行 使用带有团队项目源代码管理的 TFS 2017 在交互模式下进行我们的功能测试。 我们在其他使用 GIT 的团队项目中得到了这个 运行ning。 我们部署测试代理并激活更新它的选项 我们还尝试重用 GIT 团队项目中的测试代理机器,但无济于事。
DTAExecutionHost.exe.txt 给出
I, 8816, 1, 2017/07/18, 12:33:38.397, 44435081265562, DTAExecutionHost.exe, Main.TryReadAndCacheVssCredentials 获取代币信息 I, 8816, 1, 2017/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, 2017/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, 2017/07/18, 12:33:44.749, 44435172160608, DTAExecutionHost.exe, 关闭令牌服务 I, 20572, 1, 2017/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 方法 运行ning: [http://myTfsUrl:8080/tfs/myCollection/_apis/test/Agents/74959/Commands/0] (GET)0[test] 我, 20572, 1, 2017/07/18, 12:33:46.214, 44435193134421, DTAExecutionHost.exe, ********************** ************************************************* 我, 20572, 1, 2017/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[test] 57 毫秒 五、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,"name":"myTestMachine:5985"},"capabilities":[],"testRunId":-1} 我假设错误是由 testRunId":-1 引起的,因为来自 GIT 项目的测试执行具有正的 testRunId。 知道为什么吗?
最后是因为团队项目手动迁移到另一个tfs实例,少了几个字段。