Hello Support,
I'm running into this situation (System.NullReferenceException:
Object reference not set to an instance of an object
) couple
of times every day.
We have more than 50 different scripts; every
other test has coded steps. All the scripts are working as expected.
But, while
running scripts for some reason (say after 20 scripts) we closed browser forcefully it throws below exception. Now,
we are using QA SP2; but I see same issue since long time. I’m expecting to
see Failed -15 Passed Out of Total 20
executed.
Finally, we
are ending up with Failed - 0 passed out
of Total 0 executed.
Screenshot
attached.
Is there any
way to solve this issue?
Your help is
really appreciated.
Thanks,
Madhu.
------------------------------------------------------------
'7/12/2011 5:11:35 PM' - Starting execution....
'7/12/2011 5:11:39 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
'7/12/2011 5:12:03 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'7/12/2011 5:12:03 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.CanRunAgainstBrowser(Browser activeBrowser, AutomationStep step, TestResult activeResult)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance, Boolean& stopExecution)
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, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'7/12/2011 5:12:03 PM' - Test completed!