I have QTP 11 and the WPF add in installed. and the object Spy will not recognise my WPF application.
I have installed the following patches and hotfixes:
QTP_00699 for HP QuickTest Professional 11.00 QFE
QTP_00709 for HP QuickTest Professional 11.00 QFE
QTPNET_00082 for HP QuickTest Professional 11.00 QFE
QTPNET_00099 for HP QuickTest Professional 11.00 QFE
QTPNET_00120 for HP QuickTest Professional 11.00
QTPNET_00138 for HP QuickTest Professional 11.00
QTPNET_00147 for HP QuickTest Professional 11.00
None of them have made any difference at all. I have also tried recording on the application with QTP and again this has done nothing.
I also tried using UFT 11.53 but this will not see my original .Net 4 application or the wpf appplication unless I run it as an administrator which is against the systems policy at my company.
Has anyone got any ideas? HP customer support have not been very helpful.
1) Close QTP and any other application.
2) Open a CMD (command prompt)
3) Navigate the following path on your local file system: <<QuickTest installation folder>>\GlobalAssemblyCache\Net4
4) Execute the following commands:
5) Check if this works, If no then try steps from 6 to 8.
6) 1. Copy from "C:\Program Files (x86)\HP\QuickTest Professional\GlobalAssemblyCache\Net4\Mercury.QTP. Agent.dll" to this directory structure "%windir%\Microsoft.NET\assembly\GAC_32\Mercury.QT P.Agent\v4.0_126.96.36.199__7d38df5e43b1c39a".
7. If QTP_00669 (OR 64bits support patch) is in play, then copy "C:\Program Files (x86)\HP\QuickTest Professional\GlobalAssemblyCache\Net4\Mercury.QTP. Agent.dll" to directory structure "%windir%\Microsoft.NET\assembly\GAC_64\Mercury.QT P.Agent\v4.0_188.8.131.52__7d38df5e43b1c39a".
8. If WPF 4.0 support is related, then copy "C:\Program Files (x86)\HP\QuickTest Professional\GlobalAssemblyCache\Net4\Mercury.QTP. WpfAgent.dll" under "%windir%\Microsoft.NET\assembly\GAC_MSIL\Mercury. QTP.WpfAgent\v4.0_9.5.1000.0__7d38df5e43b1c39a" /y.
If this doesn’t works then try steps from 9 to 12
9. Open the directory c:\windows\assembly\
10. Check that two files called Mercury.QTP.Agent exist. Process Architecture should indicate AMD64 and a blank value
11. If the assembly with the process architecture of AMD64 is missing, drag and drop the file
C:\Program Files (x86)\HP\QuickTest Professional\bin64\Mercury.QTP.Agent.dll
12. If the assembly with the process architecture of blank is missing, drag and drop the file
C:\Program Files (x86)\HP\QuickTest Professional\GlobalAssemblyCache\Mercury.QTP.Agent .dll
What is the class types identified by QTP in your WPF application. If it is "SWF" then your add in is working fine. But if it is "Win" then it is not working fine. If it is "SWF" then you may want to see the version of WPF object types supported by your QTP Version used. If your QTP Version does not support the particular WPF version type then you will have to develop your own custom support set using Extensibility, SDK for this is available with .Net Addin and you will need VS 2008, 2010, 2012(UFT 12.0).