Hello,
In the most recent build 2011.1.502 I seem to be getting this error on our Script Execution machines (Running the Visual Studio Test Agents) whenever a Dialog appears. This is causes the Agent process to stop. I've attached the TRX file that logged the Run.
The DialogMonitor is currently set to (settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;)
Error:
Exception: NullReferenceException
Message: Object reference not set to an instance of an object.
Stack Trace:
at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleUnexpectedDialog(Window dialogWindow)
at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleDialog(Window dialogWindow)
at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.AutomationEvent_OnWindowOpened(Object sender, WindowEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.OnWindowOpened(Window window)
at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.HandleAutomationEvent(Object sender, AutomationEventArgs e)
at MS.Internal.Automation.InvokeHandlers.InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
at MS.Internal.Automation.ClientSideQueueItem.Process()
at MS.Internal.Automation.QueueProcessor.DrainQueue()
at MS.Internal.Automation.QueueProcessor.WaitForWork()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
In the most recent build 2011.1.502 I seem to be getting this error on our Script Execution machines (Running the Visual Studio Test Agents) whenever a Dialog appears. This is causes the Agent process to stop. I've attached the TRX file that logged the Run.
The DialogMonitor is currently set to (settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;)
Error:
Exception: NullReferenceException
Message: Object reference not set to an instance of an object.
Stack Trace:
at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleUnexpectedDialog(Window dialogWindow)
at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleDialog(Window dialogWindow)
at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.AutomationEvent_OnWindowOpened(Object sender, WindowEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.OnWindowOpened(Window window)
at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.HandleAutomationEvent(Object sender, AutomationEventArgs e)
at MS.Internal.Automation.InvokeHandlers.InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
at MS.Internal.Automation.ClientSideQueueItem.Process()
at MS.Internal.Automation.QueueProcessor.DrainQueue()
at MS.Internal.Automation.QueueProcessor.WaitForWork()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()