简体   繁体   English

TFS 2015和编码的UI测试-无法运行

[英]TFS 2015 and Coded UI tests - does not run

I made some coded ui tests (browser based), and configured the TFS 2013 to build, deploy and execute them. 我做了一些编码的ui测试(基于浏览器),并配置了TFS 2013来构建,部署和执行它们。 1st I execute a Test Agent Deploy step with Interactive Process [X], then executes the Run Functional Tests step with selecting the proper test suite - containing the coded ui tests. 首先,我使用Interactive Process [X]执行“测试代理部署”步骤,然后通过选择适当的测试套件(包含编码的u​​i测试)来执行“运行功能测试”步骤。 Then I deploy the test agent again without interactive process [ ] setting, then run functional tests selecting the non coded ui automated tests selecting another tests suite. 然后,我再次部署测试代理而不进行交互式过程[]设置,然后运行功能测试,选择未编码的ui自动化测试,再选择另一个测试套件。

It works, for the 1st time. 它第一次起作用。 The coded ui tests then the automated tests were executed. 编码的ui测试然后执行自动测试。 But the 2nd time the test agent deploys again, then the coded ui tests starts, and seems to run endlessly. 但是,第二次测试代理再次部署后,已编码的ui测试便开始运行,并且似乎无限运行。 When I enter to the test agent with remote desktop - I can see an empty console window "DTAExecutionHost" and a dialog box "Windows Security": Connectiong to TFS please provide credentials user name and password. 当我进入带有远程桌面的测试代理时,我会看到一个空的控制台窗口“ DTAExecutionHost”和一个对话框“ Windows安全性”:与TFS的Connectiong请提供凭据用户名和密码。 I think this is why the coded ui tests cannot finish. 我认为这就是为什么编码的ui测试无法完成的原因。

What should I do? 我该怎么办? Why it runs for the 1st time, then the 2nd time doesn't? 为什么它第一次运行,然后第二次没有运行? Why it sometimes runs again? 为什么有时会再次运行?

Since you want to run Coded UI test, you have to configure the test agent to interact with the Desktop and build agent running as interactive Mode. 由于要运行编码的UI测试,因此必须配置测试代理以与桌面交互并构建以交互模式运行的代理。

Check the link below: 检查以下链接:

https://github.com/Microsoft/vsts-tasks/blob/releases/m109/Tasks/DeployVisualStudioTestAgent/README.md https://github.com/Microsoft/vsts-tasks/blob/releases/m109/Tasks/DeployVisualStudioTestAgent/README.md

The service user has no right to connect to the TFS. 服务用户无权连接到TFS。 It is odd, as the "normal" automated test cases were running correctly, but the coded ui ones weren't. 奇怪的是,“正常”的自动化测试用例运行正常,而经过编码的ui测试用例却没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM