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

Does telerik support testing desktop applications?

4 Answers 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
test
Top achievements
Rank 1
test asked on 08 Oct 2010, 09:51 AM
Hi,
Does telerik support testing desktop applications?
When I was recording the actions done to modal pop-up window, steps are recorded but can't be replayed ,for example , when "Connect to modal pop-up window : Print Preview" ,it always failed .

how to resolve this kind of issue?

4 Answers, 1 is accepted

Sort by
0
Daniel Levy
Telerik team
answered on 08 Oct 2010, 06:10 PM
Hello test team,

WebUI Test Studio has been designed to automate against web based applications that generate HTML to the web browser. In addition, WebUI will automate against Silverlight both in browser as well as out of browser.

During recording, when you encounter dialogs, such as save / file upload / file download, etc.., handler steps are inserted into your test script automatically. If you are experiencing a problem with a handler step that has been inserted for you, you can add your own generic handler which can be inserted via the Record tab's ribbon. When you insert the generic handler, be sure to set the appropriate properties in the properties pane, specifically the Dialog Identification properties.

Hope this helps!

Kind regards,
Daniel Levy
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jim
Top achievements
Rank 1
answered on 23 Nov 2010, 11:53 AM
I'm having a similar problem dealing with the Print dialog and would appreciate any suggestions how to solve it.  (I'm new to Telerik so please be gentle!).

After clicking a particular button on the webpage I am testing, the IE8 Print dilaog is opened.  All I want to do is close the dialog (probably easiest using Alt-F4) and continue with the test.  When I record the test, this is what I see in the Test Steps window

Click 'ContentPlaceHolder1BtnContinueSubmit'
Connect to modal pop-up window: Print Preview
Close modal pop-up window: Print Preview

It doesn't matter what keystrokes or mouse clicks I make while the print dialog is open, nothing is recorded.  When I try to execute the test, the print dialog opens and remains open.  It never closes and the test fails.

How can I solve this?

Thanks, Jim
0
Cody
Telerik team
answered on 23 Nov 2010, 06:59 PM
Hello Jim,

Are you related to a Gary by chance? I just answered this exact same question via a support ticket to him. I am going to paste the same response here for you.

I used this page as a sample to write a test to handle the Print dialog. http://javascript.about.com/library/blprint.htm The steps I took were:

  1. Record my test, including click the "Print this page" button
  2. Close the Print dialog by clicking the X in the upper right corner
  3. I see in my test now 4 steps:
    a) Navigate
    b) Click button
    c) Connect to modal
    d) Close modal
  4. We actually should not be recording c and d above.
  5. Remove these two extra steps
  6. Add a Generic dialog handler step
    a) Click on the Dialogs drop down as shown in the attached screenshot
    b) Click on (Generic)
  7. This adds a Handle Generic dialog test step
  8. Modify the DialogTitle property of this test step so that it reads "Print" as shown in the other screenshot
  9. The rest of the test step properties should be fine at their default settings, which will simply close the dialog for you automatically when it appears

I have also attached a sample test demonstrating this in action.

Let us know if this approach solves your problem for handing your print dialog.

Best wishes,
Cody

the Telerik team
Interested in Agile Testing?

Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
0
Jim
Top achievements
Rank 1
answered on 25 Nov 2010, 11:59 AM
Thanks Cody.  Those instructions solved the problems I was having

:)
Tags
General Discussions
Asked by
test
Top achievements
Rank 1
Answers by
Daniel Levy
Telerik team
Jim
Top achievements
Rank 1
Cody
Telerik team
Share this question
or