We are automating .NET application with QTP 11. The application uses .NET 4.0 framework and infragistics controls.
Previously we used Test advantage addin 2010V3 (TestAdvantage_WinForms_HP_20103) which is same version as the Net advanatage addin used in developer side.
Now the Net advantage in developer side is upgraded to 2012V2 and we installed the same version of Test advantage (TestAdvantage_WinForms_HP_20122). But the scripts which worked fine with previous version is not working now .
Particularly ,the methods supported by QTP for Infragistics controls throw runtime errors.
Ex : The below code throws the runtime error “Object doesn’t support this property or method”.
SwfWindow("XL Analytics Pricing System").SwfWindow("Model Selection Form").SwfList("ultraOptionSet1").SetFocus
Can anyone Help me to resolve this issue as it is a showstopper for us.
Hello Shenbagalakshmi,
Thanks for provided information. The mentioned issue is expected due to many reasons (For example your version 10.3 use CLR 2.0. Meanwhile your version 12.2 using CLR4.0) To solve the issue I need to have more deatails about :
1. Could you please tell us what is your OS. Are you using Win7 or XP. Is it a x32bits or x64 bits machine
2. Do you have any installed service packes at your machine and which one
3. Do you have any installed QTP patches and which exactly
4. Are you able to record and replay correct QTP scripts using our samples that you received with installation of TestAdvantage
Please let me know if you have any questions.
Regards
We are accessiong both QTP and Application form server machine.
1.OS : Windows Server 2003 R2 Standard x64 Edition Service Pack 2
2. Service Pack 2
3.Installed Patches QTP_00699, QTP_00709, QTP_00113
4. I have tested on the application only, and I didn't have any samples
Please let me know, if you need anyother info.
Thanks for provided information. Please note that:
- Windows Server 2003 R2 Standard x64 Edition Service Pack 2 is not supported environment. More details you could find at: http://www.infragistics.com/help/supported-environments/
- QTP patches - Please note that you should have also these patches: QTPNET_00094, QTPNET_00116, QTPNET_00147
- About the samples: You could find the sample at: C:\Documents and Settings\All Users\Documents\Infragistics\TestAdvantage for Windows Forms (HP) 2012.2\Samples\CLR4.0\Bin
Let me know if you have any questions.
If we install the patches you have mentioned, will it work?
Please note that you should upgrade your OS and depending of your enviroment we will use appropriate patches. Here are short list of patches:
For TestAdvantage for WPF: QTPNET_00113.EXE
For TestAdvantage for WPF 64bit you also need: QTPNET_00114.EXE
For 64 bit Testing, it can only be done on Win 7 or Win Server 2008R2: QTP_00699.EXE
For TestAdvantage for Win CLR4 and\or Windows 7 SP1 support: QTPNET_00116.EXE
For Multiversion WinForm support : QTPNET_00126.EXE
QTPNET_00116.EXE - Patch required for Windows 7 SP1. It also fixes a bug caused by QTP_00699, which breaks CLR4 testing for WinForms
QTPNET_00114.EXE - Patch for use with TestAdvantage for WPF It resolves a specific 64 bit issue
QTPNET_00113.EXE - Patch for use with TestAdvantage for WPF It replaces the need for QTPNET_00066, QTPNET_00074, QTPNET_00087, QTPNET_00094, QTPNET_00099, QTPNET_00109
QTPNET_00147 - Patch for TestAdvantage for WinForms. Patch required for Windows XP SP3, x64 bits machine