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

limitations with Telerik Testing Framework

2 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rolando
Top achievements
Rank 1
Rolando asked on 06 Dec 2011, 01:57 PM
Hi there,
Reading the post located in http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/silverlight-test-automation/introduction.aspx
I can see some limitations for the framework; for example "The automation only supports the XAP deployment method.". What does mean?

Br,
Rolando

2 Answers, 1 is accepted

Sort by
0
Rolando
Top achievements
Rank 1
answered on 06 Dec 2011, 02:20 PM
Actually the silverlight app wich i want to test is filling its initparams from asp.net controls
see the image http://tinypic.com/r/2lw0q9w/5
0
Accepted
Cody
Telerik team
answered on 06 Dec 2011, 08:26 PM
Hi Rolando,

A standard/simple instantiation of a Silverlight from an ASP.NET page looks like this:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
    width="100%" height="100%">
    <param name="source" value="ClientBin/SilverlightAppTesting.xap" />
    <param name="onError" value="onSilverlightError" />
    <param name="background" value="white" />
    <param name="minRuntimeVersion" value="4.0.50401.0" />
    <param name="autoUpgrade" value="true" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration: none">
        <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
            style="border-style: none" />
    </a>
</object>

What's critical to us is the "source" param. You can see it is pointing to a .xap file. This is what is critical to Test Studio. I can also see from your screen shot you are emitting a "source" param that points to a .xap file. The difference is you are varying the file path/name based on some variables (debug mode, etc.).

This page talks about the various ways you can integrate a Silverlight application into a web page. What matters to us is that ultimately a .XAP file is downloaded from the web server. We detect the .XAP file being downloaded and will hook into it automatically.

All the best,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Rolando
Top achievements
Rank 1
Answers by
Rolando
Top achievements
Rank 1
Cody
Telerik team
Share this question
or