I'm running tests using the testing framework under with Cruise Control.NET, Specflow, and Nunit. I build the project under CCNet and run it under IIS express. Then I run the specflow tests which are using the Telerik framework. CCNet is being run as a service, so it's running in the background, and yes, I've set it up so that it's interactive (when I run 'sc interrogate ccservice', It returns 110).
If I run Nunit under my account against the website running in the background all is well, and all the tests pass. But if I have CCNet run the nunit tests, it fails. All of the tests return the following
System.NullReferenceException : Object reference not set to an instance of an object. TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
Any ideas as to why? I Get a null reference exception when ever it tries to launch a new browser. Why isn't it able to do so?
If I run Nunit under my account against the website running in the background all is well, and all the tests pass. But if I have CCNet run the nunit tests, it fails. All of the tests return the following
System.NullReferenceException : Object reference not set to an instance of an object. TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Core.Manager.SetupDialogMonitoring() at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle) at TechTalk.SpecFlow.Bindings.MethodBinding.InvokeAction(Object[] arguments, ITestTracer testTracer, TimeSpan& duration) at TechTalk.SpecFlow.TestRunner.FireEvents(BindingEvent bindingEvent, IEnumerable`1 tags) at MyWebGrocer.Uma.Integration.Stories.Recipes.OptionalRecipeDetailsFeature._2ViewRecipeDetailsForRecipeContainingCookTime2() --TearDown at MyWebGrocer.Uma.Integration.Stories.TelerikTest.TelStepDefinitions.MyTestCleanUp() at TechTalk.SpecFlow.Bindings.MethodBinding.InvokeAction(Object[] arguments, ITestTracer testTracer, TimeSpan& duration) at TechTalk.SpecFlow.TestRunner.FireEvents(BindingEvent bindingEvent, IEnumerable`1 tags) at TechTalk.SpecFlow.TestRunner.OnScenarioEnd()
Any ideas as to why? I Get a null reference exception when ever it tries to launch a new browser. Why isn't it able to do so?