Visual Studio Unit Test failure to start
        Posted  
        
            by swmi
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by swmi
        
        
        
        Published on 2010-02-22T15:20:03Z
        Indexed on 
            2010/03/08
            20:06 UTC
        
        
        Read the original article
        Hit count: 334
        
visual-studio-2008
|unit-testing
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>
© Stack Overflow or respective owner