Cannot run even simplest test
- Hi,
I would like to use VS 2008 built in unit testing, but cannot run even the simplest test case (e.b. Assert.IsTrue(true)).
That is, I can debug through the code, but after completing the test vstesthost.exe hangs.
It seems that at completing a test (which runs through fine) an error occurs over and over again. The log says:
[E, 4616, 14, 2008/08/12 20:08:27.265] vstesthost.exe: AgentObject: TestMessagePump: Exception while calling IControllerCallback.AgentEvent: Microsoft.VisualStudio.TestTools.Exceptions.EqtException: There is no agent with the name '2217pc04088' registered on the controller.
at Microsoft.VisualStudio.TestTools.Controller.AgentManager.GetAgentMachine(String agentName)
at Microsoft.VisualStudio.TestTools.Controller.ControllerObject.AgentEvent(String agentName, TestMessage message)
at Microsoft.VisualStudio.TestTools.Agent.AgentObject.TestMessagePump()
I run VS 2008 Professional + SP1 no Team System. After reading some posts, I turned on logging.
Could anyone help me please?
Thanks in advance,
Alex
Answers
Alex and I followed up on this. The problem is that Alex hit a known issue that when using VS2008 and computer name is in lower case, test run hangs. The fix for this issue did not get into VS2008 SP1.
The workaround is to change the computer name to uppercase.
- The simplest way is Control Panel->System->Computer Name->Change.
- If you want to make minimal impact on your system, or if you can't can rename the computer using system properties, you can do this:
* start regedit
* go to key
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName, change value "ComputerName" to be upper case.
* go to key
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName, change value ComputerName to be upper case.
* restart the computerThanks,
Michael
- Edited byEd GlasMSFT, ModeratorWednesday, February 11, 2009 1:49 PMcorrected issue description
All Replies
Alex, have you tried the same on different computer? Is there anything special to you computer, such as multiple network cards, computer name not matching DNS name, etc? Please email me full verbose log of vstesthost.exe.
Thank you,
Michael Koltachev, Visual Studio Team Test
- Hi Michael,
I think I have no special computer, no multiple network cards.
Concerning the DNS thing. This week, I realized that my computers host name resolved to the wrong IP adress.
I had that corrected by our network people.
However, if I am working at home, and I am not in my companies network, the above scenario should be not problem, should it?
Thanks
Alex Alex and I followed up on this. The problem is that Alex hit a known issue that when using VS2008 and computer name is in lower case, test run hangs. The fix for this issue did not get into VS2008 SP1.
The workaround is to change the computer name to uppercase.
- The simplest way is Control Panel->System->Computer Name->Change.
- If you want to make minimal impact on your system, or if you can't can rename the computer using system properties, you can do this:
* start regedit
* go to key
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName, change value "ComputerName" to be upper case.
* go to key
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName, change value ComputerName to be upper case.
* restart the computerThanks,
Michael
- Edited byEd GlasMSFT, ModeratorWednesday, February 11, 2009 1:49 PMcorrected issue description

