Silverlight Recording Problems

3 posts, 0 answers
  1. Aaron
    Aaron avatar
    28 posts
    Member since:
    May 2012

    Posted 18 Mar 2013 Link to this post

    We are trying to evaluate our Silverlight Application with Test Studio and having some problems while recording the tests.
    Currently we are using version 2012.2.920 of Test Studio since we had the problem "Unable to connect to Silverlight Application" with the most recent version 2012.2.1420.  Here is what we tryed:
    After reviewing the documented solution we registred the MIME type application/x-silverlight-app to our servers. Afterwards Fiddler showed the correct response headers. Unfortunately the recording didn't work. We checked all other solutions from the documentation but the windowless mode was the only one which was helpful. Adding this parameter to the Silverlight object made the recording possible. But due to performance and compatibility issues we can not use the windowless mode for our application!

    So my first question is: are there any other solutions to try?
    Recording on other Silverlight Applications (like the Telerik Demos) works just fine.


    With version 2012.2.920 we were able to successfully record and run multiple tests (without setting application/x-silverlight-app or enabling windowless mode!) so we decided to keep this version for now. A couple of days ago we wanted to create some new tests but encountered another problem. When navigating to our Silverlight apps the recorder freezes and its process has to be terminated. The strange thing is: in 1 out of 10 recording attempts it works, but >90% of the time it fails! The app is basically the same as before. There were no changes in the visual part of the screen. There is no difference when trying to record a local deployment/execution of the XAP (Visual Studio) and the deployment on the server. Both fail.

    The Test Studio log file gives no information on the cause of the error because it logs just to the point where the recorder freezes. I attached the log to this post. Any suggestions how to find a solution to this problem?
  2. Aaron
    Aaron avatar
    28 posts
    Member since:
    May 2012

    Posted 19 Mar 2013 Link to this post

    We isolated the problem by removing single UIElements from the screens. Since we make heavy use of the Telerik RadControls there was an RadRibbonView element in each screen which caused the recorder to freeze. By removing this control the problem disappeared.
    For the specific project the screens are using version Q3 2011. After updating to the Q3 2012 release the recorder works fine.

    What remains unresolved is the fact that we were able to record tests a couple of days ago - including pressing buttons of the RadRibbonView.

    UPDATE: There was a ticket at Telerik which issued this problem. After enabling the Disable UIA Usage checkbox in the project settings the recorder works. [Source]
  3. Plamen
    Plamen avatar
    8 posts

    Posted 20 Mar 2013 Link to this post

    Hello Aaron,

    I am glad to hear you were able to resolve this on your own. Thanks for the update!

    I am closing this ticket now. If this was a mistake, please feel free to re-open it.

    Kind regards,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top