首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Test Agent部署自动登录

使用Test Agent部署自动登录
EN

Stack Overflow用户
提问于 2016-11-19 03:41:41
回答 1查看 446关注 0票数 1

我正在尝试将测试代理部署到工作中的虚拟机,以便运行一些编码的UI测试。我使用的是Visual Studio 2015企业版,可以让整个过程一直工作到在虚拟机上配置测试代理的步骤。此时,它会在重新启动并尝试自动登录时“超时”。下面是日志的最后一部分,以便您可以亲自查看。有什么想法吗?

代码语言:javascript
复制
2016-11-18T03:44:07.9990891Z ##[debug]DistributedTests: PERF: DeployTestAgent: took 7654.5045 ms
2016-11-18T03:44:07.9990891Z ##[debug]DistributedTests: PERF WARNING: DeployTestAgent: took 7654.5045 ms
2016-11-18T03:44:07.9990891Z ##[debug]DistributedTests: configuring testagent process to run with AI-ENGSVCS\Michael.Jenkins
2016-11-18T03:44:07.9990891Z ##[debug]DistributedTests: ConfigureTestAgent powershell script location : C:\TFS\tasks\DeployVisualStudioTestAgent\1.0.25\TestAgentConfiguration.ps1
2016-11-18T03:44:08.0302919Z ##[debug]DistributedTests: Configuring test agent on test machines.
2016-11-18T03:44:08.0458933Z ##[debug]DistributedTests: Total machines where task ConfigureTestAgent needs to be run : 1
2016-11-18T03:44:08.0458933Z DistributedTests: Task 'ConfigureTestAgent' on machine 'ACTS-DATADEV:5985' is being run
2016-11-18T03:45:08.0644791Z DistributedTests: Task 'ConfigureTestAgent' on machine 'ACTS-DATADEV:5985' is taking time. Please Wait
2016-11-18T03:46:08.0830649Z DistributedTests: Task 'ConfigureTestAgent' on machine 'ACTS-DATADEV:5985' is taking time. Please Wait
2016-11-18T03:47:08.1012298Z DistributedTests: Task 'ConfigureTestAgent' on machine 'ACTS-DATADEV:5985' is taking time. Please Wait
2016-11-18T03:48:08.1186615Z DistributedTests: Task 'ConfigureTestAgent' on machine 'ACTS-DATADEV:5985' is taking time. Please Wait
2016-11-18T03:49:08.1360932Z DistributedTests: Task 'ConfigureTestAgent' on machine 'ACTS-DATADEV:5985' is taking time. Please Wait
EN

回答 1

Stack Overflow用户

发布于 2017-08-08 22:57:58

如果这仍然是相关的:我只是在同一个问题上花了两个小时,我刚刚重命名了昨天工作正常的VM的计算机名称。我正确地配置了一切,甚至在Test-Machines下添加了一个新的机器组,但VM在到达"ConfigureTestAgent“步骤时一直在重启。

最后,我发现在"Visual Studio测试代理部署“步骤中,我忘记了调整”代理配置“的”用户名“。它是'TEST-AGENT03\Tester',但在重命名机器后,我没有相应地将其更改为'NEWCOMPUTERNAME\Tester‘。我遗漏了这一部分,因为它被设置为一个单独的环境变量,所以它的变量名(在我的例子中是$(ADMIN_USERNAME) )在浏览时似乎设置正确。

将变量调整为新的计算机名称后,一切工作正常。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40684846

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档