Forum Discussion

kennedyv's avatar
kennedyv
Occasional Contributor
15 years ago

Testing WPF Program Causes Crash

I'm trying to use TestComplete 7.52 to test a WPF application.



Whenever I try to select a control inside of the WPF app window, TC sits and thinks for many minutes and I lose control typically of both TestComplete and my application, usually having to force a close on the WPF program.  We had another WPF program that I can test perfectly with TestComplete.



I also tried to run some Tests against Microsoft's Blend, which I understand is written in WPF as well. It worked with blend but I noticed it would only identify click locations and not the actual objects or controls.



Is this also expected behavior? Is there some sort of add-on I'm missing to test WPF applications? What would cause my program to shut down when being accessed by TestComplete?



I appreciate any help with the matter.

  • kennedyv's avatar
    kennedyv
    Occasional Contributor
    I've got the HTML log file. I sent it in but I haven't heard back yet.



    We sort of got it working if we set it in real time, turn off Map object
    names automatically under Name Mapping and then if we wait a few
    seconds before each action they will record and run, albeit it slowly.



    Note-I can't attach an HTML file here so I zipped it.

  • Hi Vince,





    We sort of got it working if we set it in real time, turn off Map object names automatically under Name Mapping and then if we wait a few seconds before each action they will record and run, albeit it slowly.
    This makes me think that your problem can be solved with a sample script from this post which I have referred to already.





    Could you please try using this script and let me know whether it works for you? If you cannot find out how to modify this script so it can be applied to your case, please let me know what scripting language you are using and give me the name of the main form of your application when it is recognized correctly.
  • dpolist's avatar
    dpolist
    New Contributor
    Hi Folks,



    Can I get the TC 7.52 patch? I used to have .NET 4 installed in my machine and my WPF app is not recognized as Open at all, even after uninstalling .NET 4.



    Regards,



    Daniel

  • Hi Daniel,





    Please contact us via the Contact Support form, and we will send you the patch. In your request, please specify which edition of TestComplete you have, whether you need the patch for TestExecute and whether you test 64-bit applications.