Hello,
I have installed two version of Test automation winforms .i.e. 10.2 and 15.2. Recently 15.2 have been installed after that I have ran the version utility by selecting 10.2CLR2.0 but UFT11.53 is identifying the objects (application built with 10.2 infragistics) with incorrect class name (ex: all SwfTab are identifying as SwfObject) and also UFT is not recording any action which we are doing in SwfTable.
I understood that two versions of TestAdvantages can be installed in same machine and we can switch to required version by running Version Utility.
Let me know does machine can have two version of Test automation? After running version utility with required version why UFT is identifying the objects with incorrect class name?
Please let me know if you need any more information from my side?
Thanks,
Guru
Hello Guru,
Yes, you are correct. You may have several version of Infragistics Test Automation (TA) installed at same time on same machine. This should not cause you any issues. However, you should always match the major version of Application Under Test (AUT) with the major version of TA you are using.
As you’ve set the version of TA via Version Utility to 10.2CLR2.0 can you check if the AUT was built whit same major version. To do so you may use Process Explorer as described here.
If AUT and TA are with same major versions please send me SwfConfig file so I can examine it. By default this file is located here {$HPTestingSoftwareInstallDirectory}\dat\SwfConfig.xml.
Looking forward to your reply.
Sorry, forgot to add one more note.
Before installing TestAutomation15.2, UFT is working as expected and we are able to execute the automation script with TA10.2
Hello Awati,
Thank you for your feedback.
It seems that your SwfConfig file is ok. Can you please try to execute one of the samples you received with the installation of Test Automation. You can find them in your Documents folder under <Infragistcs\2010.2\Test Automation for HP\Samples> subfolder.
Please let me know if you were able to record against the sample and to run the sample scripts. This will show if your installation is corrupted or not.
I am able to record the script against the samples, observed that Toolbar & Tab Objects are identifying as SwfObject.
Below is the recorded script for samples.
'---Sample-1-: WinScheduled Appointments SwfWindow("Appointments").SwfToolbar("ToolBar1").Press "Day"SwfWindow("Appointments").SwfToolbar("ToolBar1").Press "Work Week"SwfWindow("Appointments").SwfToolbar("ToolBar1").Press "Week"SwfWindow("Appointments").SwfToolbar("ToolBar1").Press "Month"SwfWindow("Appointments").SwfCheckBox("Highlight Holidays").Set "OFF"SwfWindow("Appointments").SwfButton("Add Appointment").ClickSwfWindow("New Appointment - Appointment").SwfObject("SwfObject").Click 146,11SwfWindow("New Appointment - Appointment").SwfObject("cboLocation").Click 560,13SwfWindow("New Appointment - Appointment").SwfObject("btnShowColorDialog").Click 10,8SwfWindow("New Appointment - Appointment").Dialog("Color").Click 74,39SwfWindow("New Appointment - Appointment").Dialog("Color").WinButton("OK").Click'--Sample-2-WinEditors Within WinGrid---SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SetCellData 1,"Budget","3"SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SetCellData 1,"Ordered","6"SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SelectCell 2,"Budget"'----Sample-3- WinToolbars Basic FeaturesSwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SetCellData 2,"Ordered","4"SwfWindow("Infragistics UltraWinToolbars").SwfComboBox("coStyle").Select "VisualStudio2005"SwfWindow("Infragistics UltraWinToolbars").SwfCheckBox("Destroy tearoffs on close").Set "ON"SwfWindow("Infragistics UltraWinToolbars").SwfCheckBox("Large Menu Icons").Set "ON"SwfWindow("Infragistics UltraWinToolbars").SwfCheckBox("Large Toolbar Icons").Set "ON"SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Top").Click 417,100SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Top").Click 464,104SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 48,40SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 119,42SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 217,45SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 299,48SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 388,50
I have tested our samples on Windows 7x64 with Test Automation (TA) 10.2. In the beginning I was not able to record the same scripts as yours. Then I’ve installed TA 15.2 and have set via Version Utility the active version to 10.2CLR2. Then I tried to record the same and was able to reproduce this behavior. So I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of #223378. So I’ve created a case for you CAS-176101-Z2W5F4 and will update you for the progress of this issue via the mentioned case. You could reach your case following the link below:
https://www.infragistics.com/my-account/support-activity
Thank you for using Infragistics Components.