I\'m attempting to automate Coded UI tests.
My test controller launches the tests on a remote test server, which I normally access via a Remote Desktop connection.
From MSDN:
The computer that is running an agent on which you want to run coded UI tests cannot be locked or have an active screen saver.
If you are running your CodedUi Tests
through Visual Studio (means that tests are executed under your account), I believe that you must be connected via remote desktop to the remote test server.
However, you can use Microsoft Test Manager
to run your tests: