Visual Studio Unit Test failure to start
- by swmi
Hi,
I am having an issue when starting the tests under debug mode in Visual Studio 2008 Team Test where it gives the following error:
"Failed to queue test run '{user@machinename}': Object reference not set to an instance of an object."
I googled for the error but no joy. Don't even understand what it means as it is too brief. Has anyone come across this?
Note that I can run tests fine if I am not debugging and I get the same error irrespective of the test I run.
Thank you,
Swati
ETA:
Being new to Visual Studio Team Test, I didn't know there was a better exception log then what I was seeing. Anyhow, here it is:
<Exception>
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage.
ShowToolWindow [T](T& toolWindow, String errorMessage, Boolean show)
at Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage.
OpenTestResultsToolWindow()
at Microsoft.VisualStudio.TestTools.TestCaseManagement.SolutionIntegrationManager.
DebugTarget(DebugInfo debugInfo, Boolean prepareEnvironment)
at Microsoft.VisualStudio.TestTools.TestManagement.DebugProcessLauncher.Launch(
String exeFileName, String args, String workingDir,
EventHandler processExitedHandler, Process& process)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.StartProcess(
TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.RestartProcess(
TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.PrepareProcess(
TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.LocalControllerProxy.
InitializeController(TestRun run)
at Microsoft.VisualStudio.TestTools.TestManagement.ControllerProxy.QueueTestRunWorker(
Object state)
</Exception>