This is a migrated thread and some comments may be shown as answers.

Handling file save dialog in WPF

5 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 15 Jan 2016, 06:21 PM
I am attempting to enter a file name and click the save button for a save file dialog in a WPF application with the following 

         SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog( Manager.ActiveApplication, DialogButton.SAVE,  @"C:\Temp\TelerikTestStudioTestDatabase" );
         Manager.DialogMonitor.AddDialog( saveDlg );
         Manager.DialogMonitor.Start();

         //Enter the code that triggers the dialog here...

         saveDlg.WaitUntilHandled( 30000 );
         Manager.DialogMonitor.Stop();
      
When the test executes I get:

'1/15/2016 1:12:18 PM' - 'Fail' : 11. [CodedStep] : CreationDialog
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[CodedStep] : CreationDialog'.
InnerException:
System.TimeoutException: Timed out waiting '30000' 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.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 timeout)
   at TestStudio.CreateNewTestDatabase.CreateNewTestDatabase_CodedStep() in C:\....

5 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 15 Jan 2016, 06:23 PM
I will also mention that the dialog pops up (from the previous test step) and then when I am expecting it to begin typing into the file name textbox, it simply times out.

Thanks
0
Ryan
Top achievements
Rank 1
answered on 15 Jan 2016, 08:21 PM
I have attached sample code demonstrating the issue I am facing.
0
Boyan Boev
Telerik team
answered on 20 Jan 2016, 04:34 PM
Hi Devin,

This is a duplicate of ticket number 1002288.

Let's continue the discussion in the ticket please.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
chris
Top achievements
Rank 1
answered on 01 Mar 2016, 06:40 PM

How does one find the magical ticket 1002288?

@boyan Boev

0
Plamen
Telerik team
answered on 03 Mar 2016, 07:47 AM
Hi Chris,

As I replied to your ticket 1015717, there was a regression with WPF 'SaveFile' dialog handling we recently found and fixed. You can check the public feedback item here. The fix is included in our latest internal build 2015.3.1429.

Please go ahead and give that version a try and let me know if the issue persists. You can download it from your Telerik account.   

Regards,
Plamen
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Boyan Boev
Telerik team
chris
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or