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.
Hello Ramji,
Could you please try to install all products again using the order below (if you are using the same machine, please uninstall all products- TestAdvantage, QTP pathches and restart your machine)
1. Install your QTP
2. Run the QTP - to initialize the registry
3. Install QTP patches - only these required for your environment
4. Install your TestAdvanatge
5. Using the default samples that your received with installation of TestAdvantage, try to record and replay small QTP script and let me know what is the result. Are you able to record and replay correct scripts or not.
If you have any questions, feel free to write me
Thanks Georgi.
I performed the steps as suggested above. I opened the sample WPF application provided by Infragistics and recorded. but the objects are identified as window objects.
Window("MainWindow").Click 290,89Window("MainWindow").Click 213,127Window("MainWindow").Type "Test"Window("MainWindow").Type micTab
Can you please help?
I create a private case for you with Reference number : CAS-119813-X4S8K3 . Please take a look at my answer in the case.
Thanks Georgi. But before can you please clarify this point?
In what order do I need to do the installation? Is the order mentioned below is correct?
1. .NET Framework 4.0
2. QTP 11.0
3. Add-ins (1. Testadvantage Winforms, 2. Test advantage WPF)
4. QTP patches (1. QTPNET00699 2. QTPNET00709 3. QTPNET 00113 4. QTPNET 00114 5. QTPNET00116)
Please clarify. Thanks
Here are the steps:
1. .NetFramework 4.0 and appropriate Service Pack of OS
2. Install QTP 11.0
3. You should run your QTP to initialize the registry !
4. Close the QTP
5. Install TA and QTP`s patches (the order for these two steps is not important)
6. Run "VersionUtility" tool and choose desired version of TA
7. Run QTP.
Let me know if you have any questions.