views:

239

answers:

3

Hi,

While trying to run all the unit tests in my solution(Visual Studio 2010) I am getting a 'Failed to queue test run xxxx@MACHINENAME 2010-06-23 14:01:36': Unable to start the agent process' error. Does anyone know what causes this particular error to occur and how to resolve it so that I can run my unit tests?

Thanks

A: 

This is possibly because you have previously run your tests and stopped them before they completed (possibly because you were debugging and you hit a breakpoint) leaving the test agent process still running, you are then unable to start a second instance. The name of the process escapes me at the moment but if find the process in task manager and kill it off, this will hopefully solve your problem.

s1mm0t
Thanks for the response. The agent is QTAgent32.exe. But it doesn't seem to be running. Killing all the processes pertaining to Visual Studio 2010 and restarting the IDE doesn't seem to solve the issue.
sc_ray
+1  A: 

I don't know if this is still the case for Visual Studio 2010, but you could have this same scenario in Visual Studio 2008. When breaking off a unit test run (i.e. when detecting erroneous code while debugging a unit test) it would leave a process running.

The process that is hindering execution for Visual Studio 2008 and has to be killed to be able to unit test again is VSPerfMon.exe. Might be wort a look for VS2010.

Anton
Thanks for all the responses. I took the worst case measure and had to wipe out my VM that had the MSTS running.
sc_ray
A: 

I had similar problem in VS 2008. I solved it only after disabling second network adapter (or all adapters except one). Try, it might help for VS 2010 too.

zenonych