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,
Abhisek Mohanty
Hi,
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.
Thanks,
Hi Abhisek,
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.
QTP_00699.EXE
QTPNET_00113.EXE
QTPNET_00114.EXE
QTPNET_00116.EXE
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.
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?
Hi Marianne,
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.
Hello Abhisek,
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
Thank you for your response. Your version of TestAdvantage and NetAdvantage match, so that's not the cause of the issue. Have you tried opening the sample scripts that come with TestAdvantage to see if they run without any errors?
It might also be helpful to put a breakpoint in the script and step through to see if the TestAdvantage DLLs get loaded. You can check which DLLs are loaded by a process by using the free Process Explorer from Microsoft. (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)
Once Process Explorer is running, type CTRL+D to display the list of loaded DLLs in a pane on the lower half of the window. Once you select your AUT's process in the upper pane, you will see a list of DLLs in the lower pane. The TestAdvantage DLLs will start with "Infragistics" and include "QTPServer" in the name.
Thank you for your response. I'd like you to install TestAdvantage again, except this time I'd like you to generate a log file as explained in the link below.
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10039
Hello Dave,
Sorry for late response as i was out of my work last week. I freshly installed TestAdvantage in a new Windows 7 system and i am getting exactly the same issue which i am facing in my previous Windows 7 system.
Thank you for your response. It seems as though your TestAdvantage installation got corrupted somehow. I'd like you to completely uninstall TestAdvantage and then re-install it. Let me know if that resolves the issue.
I checked all the folders under "HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\StepInformationManager\TypeInfoFiles" and Yes I see under the folder "C:\Program Files (x86)\Infragistics\TestAdvantage for Windows Forms (HP) 2011.2\TypeInformation" TestAdvantage.QTPServer.TypeInformation.xml file exists.
Thank you for your response. I'd like you to use regedit.exe and look in "HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\StepInformationManager\TypeInfoFiles" for any entries relating to TestAdvantage. Open up any folders listed there that are related to TestAdvantage and make sure a file called "TestAdvantage.QTPServer.TypeInformation.xml" exists in the folders.