Hi
I am facing a wierd issue related to SwfTreeView Object. QTP suddenly not identifying this object and taking it as just SwfObject.
For other objects like SwfListView and SwfTable and other objects they identified by QTP properly.
Due to this issue all my scripts are failing. Please can anybody help.
QTP Version : 11.0
Infragistics: Test Advantage 10.2
Addin Used: .Net, Web, VisualBasic, ActiveX, Java, WPF
I tried with and without ActiveX addin as well as just .Net and Web addin. QTP fails to identify SwfTreeView Object.
Strangely it was working till last week and QTP was identifying the object.
Let me know if you need more information.
Thank you
-Subhash
Subhash,
I am not sure what would have caused the issue with the SwfConfig.xml file. The file could have been edited by another program or even viewed in notepad and saved with an extra character that would make it invalid. If I saw the file as it was when the issue happened I might be able to read it and determine what was wrong with the file.
As far as installing TestAdvantage, you should not need to edit the file. It is recommended to use the version utility to set the version to disable before running the installer for another version of TestAdvantage and the installer will merge mappings for the version of TestAdvantage that you are installing into the SwfConfig.xml file and when the install finishes that will be the version that is configured to use.
If you wanted to change the version that is being used after you have two versions installed, you can use the version utility to do so. Typically this is used rather than manually merging the mappings. In the other forum post I recommended doing it manually because if the file is invalid the version utility doesn't work. Once the file is valid you can use the tooling to do it and shouldn't need to do it manually.
Let me know if you have any questions with this matter.
Thank you a million Alan !!!!
It worked now. I updated the swfConfig.xml file and restarted the QTP. Now QTP is identifying the SwfTreeView Object.
I want to know why i needed to update the config.xml file, it was working perfectly fine till last week. It is working now, just to know what went wrong and why swfconfig.xml file didn't updated.
One more question comes into mind that if i now install TA11.2 on my machine, do i need to again update swfConfig.xml file manually ??
Thank you for your help and Time.
It is likely that the configuration of the swfConfig.xml file isn't correct. The following post has details on correcting this:
https://es.infragistics.com/community/forums/f/test-automation-for-micro-focus-uft-windows-forms/39883/unable-to-invoke-version-control-utility-on-win7-64-machine/232844#232844
Note that if you reinstalled QTP, QTP should be run at least once before installing TestAdvantage as QTP does some initialization on the first run. If this wasn't done you should uninstall TestAdvantage and reinstall it. Before uninstalling TestAdvantage you should use the version utility to disable TestAdvantage or manually clear out the swfConfig.xml file like was done in the post that I linked to.
Hi AlanThank you for your quick replyi am having windows xp so sample scripts were store at below locationC:\Documents and Settings\All Users\Documents\Infragistics\TestAdvantage for Windows Forms (HP) 2010.2\Samples\ScriptsI execute sample script viz. WinTree Cell Editing Demo and it object doesn't support property or method 'SwfWindow(..).SwfTreeView(...).SetFocusI am not able to execute the sample script also.I don't think i have changed anything... I now uninstalled everything and installed TA10.2 and have QTP11.0
Do all of the sample scripts that were installed with TestAdvantage still playback without issue? The samples are located in the following location:
C:\Users\Public\Documents\Infragistics\TestAdvantage for Windows Forms (HP) 2010.2\Samples\Scripts
Do you know what changed between last week and this week? Were there changes to the application or the machine that you are using? Did you install any add ins for QTP or patches?
Please also provide the swftypename of the tree view that you are recording/replaying scripts on.