Forum Discussion

p_vd_berg's avatar
p_vd_berg
Occasional Contributor
14 years ago

Performance of Silverlight testing

When i'm recording a silverlight test, TestsComplete becomes very slow.

If i type text in a textbox, it takes a few seconds before its actually entered.

This is when i'am using the Silverlight Test that comes with the download of TestComplete

(http://www.automatedqa.com/examples/testcomplete/Silverlight/Orders.html).

In this example, there are 8 textboxen that need to be filled in when you create a new order.



In my Silverlight application that I want to test with TestComplete, I need to fill in 28 textboxes. When i'm recorder a test. I have to wait 10 seconds before the text is entered in a textbox.

The Run-Test function is also very slow. I can execute the test faster by hand then with TestComplete.



Is there a reason why there is a lack of performance when testing Silverlight applications? With normal application- or webtesting, the performance of TestComplete is extremly fast.

Is there a workaround to tune up the performance?

4 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Patrick,


    I failed to reproduce the behavior you described. When I record a test for the Silverlight sample application shipped along with TestComplete, everything works fine on my machine.


    So, I have only one suggestion: the situation may be specific to your machine. Is it powerful enough? Also, what browser are you using? Some browsers may also cause performance problems.

  • p_vd_berg's avatar
    p_vd_berg
    Occasional Contributor
    Thanks for your reply.



    The machine i'm using is powerfull enough. Its an Intel I5-2400 CPU @ 3.10 GHZ. 

    Its has 4gb RAM and runs Windows 7. It complies well with the recommended system requirements.

    I'am using Internet Explorer 9.



    If u watch the webinar of testing silverlight in testcomplete (http://www.youtube.com/watch?v=--80-EoVSVg), you will see at 10:23 that there is text entered in the textbox. You see that the Record-window from TestComplete flickers and it takes a few seconds before the text is actually shown in the textbox. In the movie, they "blame" the program that recorded the webinar. I don't use that kind of tools and I have the same problem.

    When i'm recording a load test, the silverlight application is very fast. The problem only accurs when i'm recorden a Keyword test in a silverlight website.

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Patrick,


    The fact is that when you record a load test, TestComplete captures only the sent traffic and received responses. However, when you record a functional test, there is much more metrics captured and saved to the project. The main difference is that when you record a keyword test, TestComplete saves screenshots of the application by default (these images are shown in the Visualizer panel after the recording is over). This process takes some time, and that's why, the recording may slow down a bit.


    So, turning off the Visualizer during the recording should improve the performance. To do this:


      1. Switch to the Project Explorer panel (you can make it visible by selecting View | Project Explorer from TestComplete's main menu).


      2. In the Project Explorer, right-click your project and select Edit | Properties from the context menu. This will open the project properties for editing.


      3. In the project editor, select Visualizer from the tree of property groups. TestComplete will display the settings on the right of the editor.


      4. Clear the Use Test Visualizer during recording check box.


    Does this help?

  • p_vd_berg's avatar
    p_vd_berg
    Occasional Contributor
    It makes a small diffrence with recording a test when the vizualizer is turned off, but it's still to slow in my eyes.

    It makes a huge diffrence when i run a test. It's very fast!

    Thanks for the help