Please HELP!!! The test script was ready for execution. I run this script for a several times today and I didn't receive any errors. But the last 5 times when I was trying to execute it I got this error:
------------------------------------------------------------
'2/17/2011 3:33:56 PM' - Starting execution....
'2/17/2011 3:34:49 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'2/17/2011 3:34:49 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHostState(IAutomationHost host)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'2/17/2011 3:34:49 PM' - Test completed!
Note1: the status of the test is "Fail - 0 passed out of total 0 executed" but I could see the progress of this test during execution and all steps were passed.
Note2: I get this error only when I add "Close IE window" step in the end of the test
------------------------------------------------------------
'2/17/2011 3:33:56 PM' - Starting execution....
'2/17/2011 3:34:49 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'2/17/2011 3:34:49 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHostState(IAutomationHost host)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'2/17/2011 3:34:49 PM' - Test completed!
Note1: the status of the test is "Fail - 0 passed out of total 0 executed" but I could see the progress of this test during execution and all steps were passed.
Note2: I get this error only when I add "Close IE window" step in the end of the test