Hello,
I have downloaded a WPF Test Automation for HP trail version for evaluation purpose. below is my setup
WPF Test Automation for HP 2016.2
UFT 14.0
I can spy the object XamGrid, but when i try to access any of the method i get below error
<Could not load file or assembly 'InfragisticsWPF.Controls.Grids.XamGrid, Version=16.2.20162.9000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified.>
Could you please let me know what is the issue here? is it supported for UFT 14.0?
Regards
Shash
Hello Shash,
By the Infragistics supported environments page (https://www.infragistics.com/supported-environments), it appears that the latest version of HP UFT that is 'officially' supported is version 12.5. I am currently in the process of creating a virtual machine and updating HP UFT to version 14.0 to see if Test Automation 2016.2 works correctly there.
In the meantime, I have a couple of questions about your testing environment and the application under test that may help to narrow down this issue. Depending on your environment and the application under test, it is possible that you could receive this exception.
1. What version of Infragistics for WPF is the application using the XamGrid running against? Being that you are running Test Automation 2016.2, you will need to also be running Infragistics for WPF 2016.2 for Test Automation to work correctly. Do these versions match?
2. Using the supported environments page mentioned above, do you have all of the patches and service packs for your testing environment installed?
3. Is there any other information regarding the error message that you have received that you could please provide?
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Hello Andrew,
Thank you for your response. Our application is using 14.2 version. Does that mean I should be using 14.2 WPF Test Automation? If the answer is yes, where can i download 14.2 version?
If 14.2 needs to be installed then i guess it may not even support recent version of QTP/UFT. Could you please let me know
1. What version of WPF Test Automation is needed
2. What version of QTP/UFT is needed
If your application is using version 14.2 of the Infragistics for WPF controls, then yes, you should be using version 14.2 of Test Automation for WPF for everything to work smoothly. If you are registered to version 14.2 for Test Automation, you can get it from your account on the Infragistics website by signing in and visiting: https://www.infragistics.com/my-account/keys-and-downloads.
If you are not registered, you will need to contact our sales department and obtain a product key for this version, as we only expose trial versions for the current version of the product, which is 16.2 at the moment.
As for the version of QTP/UFT that you would need for this, you can use our supported environments page as mentioned above in order to determine this. It appears that you would need at least QTP 11 or UFT 11.5 with the .NET and WPF Add-Ins, along with the patches listed for your version of UFT/QTP and for the Operating System that your machine is running. For convenience, here is the link to the supported environments page again: https://www.infragistics.com/supported-environments.
Please let me know if you have any other questions or concerns on this matter
Thank you for all the links and information about the required version. I have 2014.2 download and will this work with UFT 12.5? or does it have to be UFT 12.00/01/02?
Any of the versions of UFT or QTP listed on the supported environments page should work correctly with version 2014.2. This includes UFT 12.0, 12.01, and 12.02 as well as UFT 12.5.
I have managed to install UFT 12.02 with TestAutomation_WPF_HP_20142 but I'm still getting the error "". what could be the issue here now? is there any other way to debug this issue. Just for your information, Object Spy does recognise the control as XamGrid.
There are a couple of things that I can think of that could perhaps still be causing this error.
First, I am curious if you have all of the patches for QTP/UFT installed, as per the supported environments page linked above. As you have mentioned that you are using UFT 12.02 against TestAutomation 14.2, it looks like you would need the HP.NET and HP WPF Add-Ins and a minimum of the HP UFT 11.51 service pack (UFT_00001). I am also unsure of which operating system you are on, and so there may be a limitation there as well. Could you please provide some more information regarding the operating system you are running UFT on?
Another thing that could be an issue here is whether or not you are using the version-free assemblies or not. You can identify the difference between the version-free and the versioned assemblies by the names of these assemblies. In the version-free ones, the version that you are using will be excluded. For example, in the versioned assemblies for version 14.2, at the end of those assemblies, you will find a "v14.2." This will be absent in the version-free assemblies. You should be sure that with TestAutomation 2014.2, that you are using the version-free assemblies if your WPF application under test is using version-free assemblies, or use the versioned ones if the application under test uses those. Could you please verify that you are using the same "versioned" or "version-free" assemblies in your case?
Still, the most common cause for this exception is that UFT cannot find any build matching the version numbers of your assemblies. Perhaps an option in this case for you would be to copy your 2014.2 assemblies into the bin folder of UFT, as that would ensure that they are found.
I hope this helps. Please let me know if you have any other questions or concerns on this matter.