I am trying to record steps in Telerik Test Studio for a .NET application. A dialog with an OK button is created like so:
DialogMessage dialog = new GalaSoft.MvvmLight.Messaging.DialogMessage("Successfully Saved", p => { });
dialog.Caption = "My Object Save Results";
dialog.Button = MessageBoxButton.OK;
dialog.Icon = MessageBoxImage.Information;
Messenger.Default.Send(dialog);
I can record myself clicking OK. But when the test runs again, it fails to handle the dialog properly, even if I try different things like hitting Enter, clicking the Close button, modifying the wait time values did not work either. Is this type of dialog not supported? I can't do an image compare test either because the dialog will not highlight as part of the DOM.
Timed out waiting '5000' msec. for any dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
DialogMessage dialog = new GalaSoft.MvvmLight.Messaging.DialogMessage("Successfully Saved", p => { });
dialog.Caption = "My Object Save Results";
dialog.Button = MessageBoxButton.OK;
dialog.Icon = MessageBoxImage.Information;
Messenger.Default.Send(dialog);
I can record myself clicking OK. But when the test runs again, it fails to handle the dialog properly, even if I try different things like hitting Enter, clicking the Close button, modifying the wait time values did not work either. Is this type of dialog not supported? I can't do an image compare test either because the dialog will not highlight as part of the DOM.
Timed out waiting '5000' msec. for any dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)