Forum Discussion

dmath's avatar
dmath
New Contributor
16 years ago

Test Complete 8 WPF issue

Hi



I was having issues with Test Complete 7.52 identifying WPF objects in the AUT. Most objects would start with WindowsForm10.Window.8.app* and for the last object in the tree, scripts would interact with the object using mouse click locations. This matched similar issues with 7.52 on these forums. The advice to others on the forums was either contact support for a patch or upgrade to Test Complete 8. I have upgraded to Test Complete 8 on the assumption it would fix  the problem but it is still occurring.



In 7.52 I was able to work around the problem by adding the class under the MSAA options but unfortunately I cant rememeber what I added. =/



While trying to get WPF to work with Test Complete 8, I noticed the WPF Controls Support Plug-in extension isn't enabled. If I try to install it, it has a conflict "The WPF Controls Support Plug-in (Version: 8.0) plug-in depends on the plug-in(s) with the following identifier(s) {BE28AD43-44A7-42C6-861F-EF07F3255A1E}".



The other extensions that aren't active Xceed controls, ComponentOne controls etc all report the same conflict. This suggests to me a extension is missing from Test Complete? Would this cause the WPF issue I have?



The application was working fine with 7.50. The AUT has been changed  (to use listboxes instead of grids) but  I don't believe this is the cause.



OS is XP SP3

AUT is compiled with .NET 3.5

TestComplete 8 Enterprise version



Thanks


6 Replies

  • Hi,



    Check whether the 'Open Applications Support' and '.NET Open Application Support' plug-ins are installed. If they're not, run the TC installation in Modify mode and enable them.
  • dmath's avatar
    dmath
    New Contributor
    Ok, so I went through the modify install and the .NET and WPF Controls Support plug-ins were not installed. They have now been installed. I am still having the same issue though.



    Should there be a .NET extension under the Install Extensions in TC?



    Thanks
  • Hi,



    OK, if you disable MSAA and UIA, what full names do your objects have?



    As for extensions, the '.NET Open Application Support' plug-in should be enabled under File | Install Extension...
  • dmath's avatar
    dmath
    New Contributor
    The .Net extension is still not in the 'Install Extension' list of extensions.



    I disabled MSAA and UIA (UI Automation Support). Here is the full name of the objects that I can only interact with using mouse clicks.



    Sys.Process("APPNAME").Window("WindowsForms10.Window.8.app.0.378734a", "APPNAME - System - [HOME]", 1).Window("WindowsForms10.Window.8.app.0.378734a", "", 1).Window("WindowsForms10.Window.8.app.0.378734a", "", 1).Window("WindowsForms10.Window.8.app.0.378734a", "elementHost1", 1).Window("HwndWrapper[APPNAME.exe;;b0dece9c-77da-4f27-88b2-396f536d4943]", "elementHost1", 1)



    Sys.Process("APPNAME").Window("WindowsForms10.Window.8.app.0.378734a", "APPNAME- System - [HOME]", 1).Window("WindowsForms10.Window.8.app.0.378734a", "", 2).Window("WindowsForms10.Window.8.app.0.378734a", "", 1).Window("WindowsForms10.Window.8.app.0.378734a", "elementHost1", 1).Window("HwndWrapper[APPNAME.exe;;02535f7d-4695-496e-8ba5-2d112b703c9d]", "elementHost1", 1)
  • Hi,



    The .Net extension is still not in the 'Install Extension' list of extensions


    Run TC's installation in Modify mode and enable .NET Open application support.
  • dmath's avatar
    dmath
    New Contributor
    The modify installation is showing all the extensions as installed.



    TC8 has been installed on a clean image on a different PC and is working as expected with the AUT. Its identifying all the objects and they have a little .NET icon. The .NET extension is also showing in the "install extension" list of extensions.



    This means its an issue with the TC install on the PC that I am using or the PC itself. We are going to try upgrading another PC from TC 7.52 to 8 and see if it encounters the same problem. Then a manual un-install/install on the PC I use.



    Will let you know how I get on.