Hi, I have a script where i am selecting an item in a dotnet application using SwfWindow("...").SwfObject("...").SelectItem "...","..." This was working fine, but when i transfer my script to other sysetm and execute it getting an error "object doesn't support this method" and in some other machine its giving "general run error". I have installed TestAdvantage also as this application have infrgistics controls, but still facing the issue in few particular machines. Please let me know if any one have any solutions for this.
Thanks In Advance,
I am getting the error "object doesn't support this method" in Windows 7 machine. It works fine in other XP machines.
Looking for an urgent response on this.
Sorry for the delay in getting back to you.
You will need to have the QTP patches installed on both machines. You didn’t mention if they were installed on the 2nd machine.
Also, you will need to have the same version of TestAdvantage installed as the NetAdvantage product version. If the application was developed using 2013.1 controls, then you will need to have TestAdvantage for WPF 2013.1 installed.
Be sure that you have used our Version Utility to set the QTP WPF add in version before you open QTP.
Please let me know if you have any questions.
Thanks for your response.
My application uses Infragistics4 control and uses dot net 4. Objects are recognized as SwfWindow and SwfObject. Script works fine in an XP machine with below details:
In windows 7 machine its not working although objects are identified SwfWindow and SwfObject, while highlighting from object repository object gets highlighted, but while spying i see the properties of the object are not similar to that present in the OR or not similar to the properties spyed in XP. While spying properties are not getting displayed properly, but while adding to OR it gets added properly similar to XP. So SwfObject methods are not getting identified at runtime. Below details of the machine:
QTP_00699 for HP QuickTest Professional 11.00 QFE QTPWEB_00063 for HP QuickTest Professional 11.00 QFE QTP_00709 for HP QuickTest Professional 11.00 QFE QTPNET_00062 for HP QuickTest Professional 11.00 QFE QTPNET_00066 for HP QuickTest Professional 11.00 QFE QTPNET_00073 for HP QuickTest Professional 11.00 QFE QTPNET_00076 for HP QuickTest Professional 11.00 QFE QTPWEB_00073 for HP QuickTest Professional 11.00 QFE QTPNET_00082 for HP QuickTest Professional 11.00 QFE QTPNET_00085 for HP QuickTest Professional 11.00 QFE QTPNET_00087 for HP QuickTest Professional 11.00 QFE QTPNET_00092 for HP QuickTest Professional 11.00 QFE QTPNET_00096 for HP QuickTest Professional 11.00 QFE QTPNET_00113 for HP QuickTest Professional 11.00 QTPNET_00116 for HP QuickTest Professional 11.00
Kindly let me know if you require any other information.
The application that you are testing must be using NetAdvantage for WPF 2011.2 since you have TestAdvantage 2011.2 installed on the XP and QTP 11 seems to be working properly there.
It looks like you don't have the QTPNET_00114.exe patch installed on the Windows 7 machine. This is a description of that patch that I took off of the HP site.
"Patch required for Windows 7 SP1, issue it resolves is QTP either fails to inject TA.dlls into the AUT or takes up to 5 minutes. It also fixes a bug caused by QTP_00699, which breaks CLR4 testing for WinForms"
Install that patch and then rerun the test on the Windows 7 processor and let me know if that resolves the issue.
I dont see that patch QTPNET_00114 when i try to see the list from QTP Help->About QuickTest Professional and Click to generate product information. But when i go to control panel view installed updates i see all other patches in a different section and QTPNET_00114 under a different section. I tried uninstalling and reinstalling it, but its still not visible when i try to view the patch list from QTP. And that issue with SelectItem method still exists.
I just realized you are probably working with TestAdvantage for Windows Forms from your reference to "SwfObject". You posted to the TestAdvantage for WPF site so I assumed your question was related to WPF.
Could you please verify which version of TestAdvantage you are using, what NetAdvantage controls you are working with?
Sorry for posting it to the wrong forum.
Yes i am working with Windows Form, not with WPF. I am using TestAdvantage for Windows Form (HP) 2011.2 version 11.2CLR4.0. My application uses Infragistics 4 controls.
I see that you mentioned the version of TestAdvantage you are using, but you didn't mention the version of NetAdvantage your AUT is using. If you're not sure which version it is, you can right-click on one of the Infragistics DLLs, select Properties, and switch to the Details tab.
Hello Dave,When i go to one of the infragistics dll and right click and go to properties and goes to the Details tab, version is mentioned as 11.2.20112.1000. Let me know if this what you required.Thanks,Abhisek Mohanty