Hi....any help on this is appreciated, thanks!
I've downloaded/installed the trial version on July 15,2008. But during recording, QTP cant recognize the controls. I tried executing the samples in C:\Program Files\Infragistics\TestAdvantage for Windows Forms (HP) 2008 Vol. 2 CLR 2.0\Samples\Scripts but am encountering error "Object doesn't support this property or method: 'SwfWindow(...).SwfToolbar(...).ClickToolbarTool'"
-OS is windows XP version 2002 SP 2
-prior the update we're using Infragistics NetAdvantage for Windows Forms 2007 Volume 3 CLR 2.0
-installed Infragistics NetAdvantage for Windows Forms 2008 Volume 1 CLR 2.0 but obviously this wont work..good thing volume 2 was released on the 14th of July
-our Application is using Infragistics NetAdvantage for Windows Forms 2008 Volume 2 CLR 2.0
-using version utility, TestAdvantage Version is 8.2CLR2.0
-QtPro.exe.config's content is:
<
</
hi ammar,
thanks for the help, its working now : )
Tina,
As I expected, the SwfConfig.xml file is currupted. There is multiple xml document definition and multiple root nodes. Edit the file in note pad and replace all of its content with the following
<?xml version="1.0" encoding="UTF-8"?><Controls></Controls>
The file should only have these 3 lines (Make sure QTP is closed when you do this). Then use the version utility and select the right TestAdvantage version then hit Apply.
That should solve the issue.
Ammar
Opened swfconfig.xml in notepad and here's the content:
<?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>-->
</Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls><?xml version="1.0" encoding="UTF-8"?><Controls> <!--<Control Type="Vendor.WinControl.ControlName" MappedTo="SwfSimilarControl"> <CustomRecord> <Component> <Context>AUT</Context> <DllName>C:\Program Files\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomRecord> <CustomReplay> <Component> <Context>AUT</Context> <DllName>C:\Vendor\MercuryCustomServers\ControlNameSrv.dll</DllName> <TypeName>Vendor.MercuryCustomServers.ControlNameServer</TypeName> </Component> </CustomReplay> <Settings> <Parameter Name="sample name">sample value</Parameter> </Settings> </Control>--> </Controls>
hi ammar, thanks so much for the prompt answer : )
After selecting "Disabled' in version utility, I opened swfconfig.xml and the contents was this:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'file:///C:/Program Files/Mercury Inter...
<Controls> -^
please advise on what to do? thanks.
Hi Tina,
Did you looked at your SwfConfig.xml file (located in QTP\dat folder)? There is a chnace that this file has more than one configuration information. Use the version utility and select "Disabled" then clock apply. Check the SwfConfig.xml file. There should be no configuration information for TestAdvantage. (You can search for "Infragistics" text and there should be none) if there is any clear it. the file should look like this
<?xml version="1.0" encoding="UTF-8"?><Controls>
</Controls>
Then run the version utility again and select 8.2CLR2 then try again.
Hope that will help