Forum Discussion

AAN's avatar
AAN
Contributor
14 years ago

Automating WPF and trying to catch weak code.

Hi,



I'm not sure if it is possible to do this but I think it would be a good feature to have in TC.



Can you use Test Complete to catch weaknesses in WPF code.



For example, is there someway to run through using Test complete the entire WPF application or at least the  most commonly used parts and find references in the code that are potential hiccups?



If there is some way or setting I can use to achieve the above whilst recording my automation test runs?





With Kind Regards,

A.

3 Replies

  • Hi Aneez,



    This is a job for a profiler rather than an automated testing tool.



    We actually have a .NET and WPF profiler - AQtime. It integrates with TestComplete, so you can track your WPF application performance, memory usage or other metrics while running automated tests. So, I recommend that you give AQtime a try.
  • AAN's avatar
    AAN
    Contributor
    Hi Helen,



    Thank you for your answer.



    More simply what will Profiling and AQtime help me find, just bottlenecks in performance and not the actual code or do those tools help in pinpointing out those types of problems as well.



    Cheers,

    A.

  • Hi Aneez,



    Profiling tools such as AQtime trace the application execution down to individual function calls and lines of code. So, they can show developers:

    * which function calls and lines take most time to get executed and need performance optimization (performance profiling);

    * on which lines memory is allocated that is not released, thus causing a memory leak (memory leak profiling);

    * which functions and source code lines aren't executed during the application run (coverage profiling);

    * and so on.



    Usually, profilers are used by the developers during the application debugging, rather than by quality assurance engineers. However, it's a good idea to have profiling integrated with automated testing to better track performance, memory and coverage regressions.



    For an example of TestComplete and AQtime integration, check out this video:

    Using AQtime Coverage Analysis in Automated Tests

    It shows how to perform automated testing with coverage analysis of the application's source code.