Hello,
I am currently using Test Advantage 2011 V2 along with HP UFT 14 (latest version). I observe that the scripts recorded earlier which worked fine are no longer working now. The Swf objects are not getting recognized during playback and when trying to record, the steps involving the Swf objects are not getting recorded. Please help.
Below is the error message I get when I try to play back the scripts I recorded earlier, which were working absolutely fine till this morning:
Could not load file or assembly 'Infragistics2.Win.v11.2, Version=11.2.20112.9000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified.
Function file: C:\Users\pvemuri\Documents\Unified Functional Testing\OLF_QTP_Trade.qflLine (3): "SwfWindow("TradeExplorer").SwfWindow("Olf.Desktop.Controls.DesktopPl").SwfObject("explorerBar").SelectItem "Trading","New Instrument"".
Thanks.
Hello David,
I'm currently looking into your question. I will get back to you as soon as I have an update.
Thank you,Mihoko Kamiishi
It turned out that this is a known issue of Test Advantage.
Although TestAdvantage refers to build 9000 in the error message, QTP knows to automatically look for the closest build on the machine. This error means it could not find any build matching the major and minor version numbers.To debug this error, you can use ProcessExplorer to verify that the DLLs are not being loaded. If they are not there, please try putting the NetAdvantage assemblies into the GAC or QTP’s bin directory.
Also, please note that HP UFT 14 is supported only for Test Advantage v17.1 or later. If you use HP UFT 14 with Test Advantage v11.2, it may lead to any unexpected results.
Supported Environmentshttps://www.infragistics.com/support/supported-environments
Hi David,
This is not really an issue with IG TestAutomation, but a matter of configuring IG TestAutomation with the version in your application. You are using TA 11.2 CLR 2, but is that the version of Infragistics controls in your application? It is recommended that you either confirm with your developer or use an application like Process Explorer to see the loaded assemblies in your application. For more information about configuring IG TestAutomation you can review the following:
About the SwfConfig Filehttps://www.infragistics.com/community/blogs/b/miketechspeak/posts/about-the-swfconfig-file
Webinar:How to Build Higher Quality Apps Through Testingwww.youtube.com/watch
Let me know if that helps,
Hi Mike,
Thank you for the response. I have gone through the link provided by you about the Swfconfig file. I am still unable to resolve the issues that are listed in the section 3 listed:
Throws an ‘Object doesn’t support this property or method’ or ‘Object doesn’t support this action’ exception. But the method or property exists in the intellisense for the object.
Object doesn't support this action
Please note that the same code passed earlier, but is failing now. I verified the contents of SwfConfig file and it seems all fine, with CLR 4.0 selected. The Dlls for Win Ultra grid also don't seem to point to invalid location(as I understand, but if there is something I need to consider, please let me know) Please help.
Thanks!
Hi Mihoko Kamiishi,
Unfortunately we cant use the latest version of Test Advantage along with UFT 14, because the controls in our application are compatible only with Infragistics Test Advantage version 2011 V2.
Can you please suggest a workaround for us to get things working?
Thanks,
David
As stated in the blog that I linked to earlier in the thread, "Object doesn't support this action exception" that is typically because your swfconfig.xml file is empty, malformed or pointing to a wrong location for the proxy dlls. Normally just running our version utility and selecting the correct version would correct the issue. If the XML is malformed, our version utility may have issues with reading and writing back to it. When in doubt, wipe out the swfconfig.xml to just:<Controls></Controls>
Then re-run the version utility.
I am actually leaning towards malformed or pointing to the wrong dll location, because ActivateCell exists on the UFT's base implementation, meaning that to say Object doesn't support this action exception, means it read enough to tell UFT don't use there base implementation, but couldn't find it defined in ours. Which that action has been implemented and with little change since the inception of IG TestAutomation.
It the above doesn't work, can you send us your swfconfig.xml file, along with the output of a Process Explorer report of your application's loaded dll's at the time of the exception occurring. It is a small freeware application supplied by Microsoft, you can get it from the link below.https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspxYou can use this to verify what assemblies are loaded in your application under test. Start your application, get it to the point where the controls in question are visible. Run Process Explorer, and find your application in the process list. Highlight it, and press Ctrl+D for the lower pane view showing the loaded dll's. You can then click on Name column header to sort by the DLL names. Right Click on one of the column headers to Select Columns, and make sure on the DLL tab you have Version and path selected. You can then find and identify exactly which version of the assemblies are loaded.