【问题标题】:Runningfunctional tests in interactive mode using TFS 2017 with team project source control使用 TFS 2017 和团队项目源代码控制以交互模式运行功能测试
【发布时间】:2017-12-23 09:10:08
【问题描述】:

我们正在尝试使用具有团队项目源代码控制的 TFS 2017 以交互模式运行我们的功能测试。 我们在其他使用 GIT 的团队项目中运行了这个。 我们部署测试代理并激活更新选项 我们还尝试重用 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。 一、20572、1、2017/07/18、12:33:42.835、44435144796158、DTAExecutionHost.exe、Main.TryReadAndCacheVssCredentials获取Token信息 I, 20572, 1, 2017/07/18, 12:33:42.928, 44435146081842, DTAExecutionHost.exe, 与令牌服务通信http://myTfsUrl:8080/tfs/myCollection 一、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 方法运行:[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 ms 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 收到无。重试。 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。 知道为什么吗?

【问题讨论】:

  • 你能在这里分享整个日志吗?
  • 你的意思是 DTAExecutionHost.exe 日志吗?
  • 构建日志和 DTAExection 日志。
  • 我会更有信心通过 MS 邮件帐户共享它们。你能提供一个吗?
  • 谢谢,我把日志发给你了。当这个问题解决后,我会更新这篇文章,以便其他人使用它

标签: tfs functional-testing


【解决方案1】:

最终这是由于团队项目已手动迁移到另一个 tfs 实例,并且缺少一些字段。

【讨论】:

    猜你喜欢
    • 2019-05-22
    • 1970-01-01
    • 1970-01-01
    • 2013-05-30
    • 1970-01-01
    • 1970-01-01
    • 2011-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多