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

Recording does not work on a Silverlight page

1 Answer 143 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Flavia
Top achievements
Rank 1
Flavia asked on 20 Sep 2010, 04:59 PM
Hi,
I tried to create an automation testing project for a Silverlight Web site using 'Telerik - WebUI Test Studio' to have an idea how maintainable is the source code of the test cases, but I encountered a Silverlight connection error that does not allow recording the web page GUI.
[Steps performed]
-          create a new project in 'WebUI Test Studio'
-          add a new Test
-          enable Silverlight automation for this test
-          go to the 'Record' tab and press 'Record' button with 'Launch new recording Browser' option
-          in the new browser, navigate to the required page
-          wait for the Silverlight page to load
[Result]
-          After the web page is loaded by the automation tool, two error dialogs appear:

    1. Application Unhandled exception - Message: Object reference not set to an instance of an object at loading XAP file

    2. Unable to connect to Silverlight application.  Silverlight recording will not function.
even if the Web page seems to be loaded correctly. After this error, 'WebUITest Studio' does not record any actions

[Test environment] - set up for WebUI Test Studio:
-          IE 8 configured for automation (see all steps here:http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=configureIE7)
-          Windows 7 x86 Professional OS with UAC disabled (logged in user is part of administrators group)

[Investigation]
i've tried all proposed solution from http://www.telerik.com/ClientsFiles/185726_silverlight-connection-draft.zip, but the Silverlight recording error is the same
-          Remark: if the page is reloaded in WebUI recording browser several times, IE crashes; debugging IE shows an error at ArtOftest.WebAii.Mime.dll

[Important remarks]
- web site is working correctly when performing manual testing (not using any GUI recording tool).
- 'WebUI Test Studio' recorder is working as expected on other Silverlight website

Are there any other solutions to perform Silverlight GUI recording from WebUI TestStudio? 

Best regards,
Flavia

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 20 Sep 2010, 05:11 PM
Hi Flavia,

The most common problem to the "Unable to connect to Silverlight application" error is the MIME type on the webserver is not correctly configured as documented here. Since you mention you already have gone though our troubleshooting document you may have already checked this, but could you check it one more time for me please?

If that doesn't help, is it possible for us to connect to your website hosting your Silverlight application? You may not want to provide this information in a public forum like this. You can open a Support ticket which is private and post the connection information in there instead.

Greetings,
Cody
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
Tags
General Discussions
Asked by
Flavia
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or