Mahmood Bagheri
Mahmood Bagheri

Reputation: 163

The application failed to start for UI Test

I have a UIcoded test that works in VS2010.

I want automated it with MTM. But when I associated it with test case and run it I get this error in ViewResult :

Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToLaunchApplicationException: The application failed to start.

I am monitoring it in test agent status and every thing is ok.

how I can pass this test.

Sincerely you M.Bagheri

Upvotes: 1

Views: 1236

Answers (2)

AshRodan
AshRodan

Reputation: 1

Usually you will get a specific error if you cannot interact with the desktop.

I recently received this error. I performed the following tasks which solved the issue for me:

  1. clear the controler temporary files
  2. restart the agent and controller.

Upvotes: 0

Duat Le
Duat Le

Reputation: 3596

If you are running UI Coded test in the build process using TFS Build Service, make sure you run the build service as an interactive process.

The answer here also tells you how to make the interactive build service start when the build machine is started.

See here for how to run the build service as an interactive process.

Upvotes: 2

Related Questions