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
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!
the Telerik team
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
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?
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.
- Record my test, including click the "Print this page" button
- Close the Print dialog by clicking the X in the upper right corner
- I see in my test now 4 steps:
b) Click button
c) Connect to modal
d) Close modal
- We actually should not be recording c and d above.
- Remove these two extra steps
- Add a Generic dialog handler step
a) Click on the Dialogs drop down as shown in the attached screenshot
b) Click on (Generic)
- This adds a Handle Generic dialog test step
- Modify the DialogTitle property of this test step so that it reads "Print" as shown in the other screenshot
- 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.
Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!