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?