limitations with Telerik Testing Framework

3 posts, 1 answers
  1. Rolando
    Rolando avatar
    15 posts
    Member since:
    Nov 2011

    Posted 06 Dec 2011 Link to this post

    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. Rolando
    Rolando avatar
    15 posts
    Member since:
    Nov 2011

    Posted 06 Dec 2011 Link to this post

    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
  3. Answer
    Cody
    Admin
    Cody avatar
    3354 posts

    Posted 06 Dec 2011 Link to this post

    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.
Back to Top