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.
Hello Abhisek,
Thank you for your response. The information you provided makes it clear that TestAdvantage isn't even being loaded, which is why you're getting the error messages you mentioned previously.
I'd like you to provide me with a copy of the SwfConfig.xml file. You can find this by navigating to "<QTP Installation Folder>\dat\". I would recommend putting it in a ZIP file before attaching it.
Hello Dave,
Please find SwfConfig.xml file in the attached zip file.
Thank you for providing the file. So far, it appears that TestAdvantage is configured correctly.
Have you tried recording a new script against either your AUT or one of the sample AUTs that come with TestAdvantage? When you do so, does QTP recognize the controls as SwfObjects or WinObjects?
Hi Dave,
While recording objects are identified as SwfWindow and SwfObjects. But methods like SelectItem is not getting recorded. As i mentioned previously my script works fine in XP machine. For more details on it you can just have a look at my reply on "Replied On: 07-31-2013 12:59 PM". Sorry for not pasting the same over here again for avoiding confusion.
When i record using sample application i am getting only:
SwfWindow("WinEditors Within WinGrid_2").SwfTable("ultraGrid1").Click 12,195SwfWindow("WinEditors Within WinGrid_2").SwfTable("ultraGrid1").Drag 85,219
Instead of:
SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").ActivateRow "0"SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SelectRow "0"SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").DoubleClickRow "0"SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SelectColumn "0;Item"SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").DoubleClickHeader 0,"Item"
Methods not related to Infragistics are working fine like:
SwfWindow("WinEditors Within WinGrid").MaximizeSwfWindow("WinEditors Within WinGrid").Activate
Thank you for your response. I saw that you mentioned earlier that the machine that is experiencing the issue is using Windows 7. Is this the 32-bit or 64-bit version of Windows 7 and does it have any service packs installed?
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
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.