0
votes

I made some coded ui tests (browser based), and configured the TFS 2013 to build, deploy and execute them. 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. 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.

It works, for the 1st time. The coded ui tests then the automated tests were executed. But the 2nd time the test agent deploys again, then the coded ui tests starts, and seems to run endlessly. 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. I think this is why the coded ui tests cannot finish.

What should I do? Why it runs for the 1st time, then the 2nd time doesn't? Why it sometimes runs again?

2
Do you use TFS 2013? It seems you are using new build system.Cece Dong - MSFT
It seems you're right. Version 14.102.25423.0, is it TFS 2015?Zoltan Hernyak
Yes, it's TFS 2015 Update 3.Cece Dong - MSFT
Are you running the same coded UI test 2nd time as well? This popup came in my case when I was trying to make connection with tfs for the first time in any agent machine and then If I enter credential, it does not asks me again for the credential.Pankaj Devrani
In the code below it gives me same popup when I am trying to get teamproject -- var tfs = new TfsTeamProjectCollection(new Uri("TfServerUri")); var tcmService = tfs.GetService<ITestManagementService>(); var teamProject = tcmService.GetTeamProject("TeamProject");Pankaj Devrani

2 Answers

0
votes

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.

Check the link below:

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

0
votes

The service user has no right to connect to the TFS. It is odd, as the "normal" automated test cases were running correctly, but the coded ui ones weren't.