Installed two versions of TestAdvantage but UFT is identifying the objects with incorrect class name

Not Answered This post has 0 verified answers | 7 Replies | 2 Followers Thread's RSS feed.

Awati Guru
Points 70
Replied On: Wed, Aug 10 2016 6:06 AM Reply

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

  • Post Points: 20

All Replies

[Infragistics] Milko
Points 21,370
Infragistics Employee
Replied On: Wed, Aug 10 2016 8:29 AM Reply

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.

Sincerely,
Milko
Associate Software Developer

  • Post Points: 35
Awati Guru
Points 70
Replied On: Wed, Aug 10 2016 8:49 AM Reply

Thank you for your support!!

Version of AUT & TA are same. I have attached the SwfConfig XML file.

  • Post Points: 5
Awati Guru
Points 70
Replied On: Wed, Aug 10 2016 9:04 AM 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

 

  • Post Points: 20
[Infragistics] Milko
Points 21,370
Infragistics Employee
Replied On: Thu, Aug 11 2016 8:08 AM Reply

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.

Looking forward to your reply.

Sincerely,
Milko
Associate Software Developer

  • Post Points: 35
Awati Guru
Points 70
Replied On: Thu, Aug 11 2016 9:10 AM Reply

I did not find any samples in said location.

Can you please help me to find the sample location. FYR I have captured screenshot of TestAdvantage for Windows Forms (HP) 2010.2

  • Post Points: 5
Awati Guru
Points 70
Replied On: Thu, Aug 11 2016 10:12 AM Reply

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").Click
SwfWindow("New Appointment - Appointment").SwfObject("SwfObject").Click 146,11
SwfWindow("New Appointment - Appointment").SwfObject("cboLocation").Click 560,13
SwfWindow("New Appointment - Appointment").SwfObject("btnShowColorDialog").Click 10,8
SwfWindow("New Appointment - Appointment").Dialog("Color").Click 74,39
SwfWindow("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 Features
SwfWindow("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,100
SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Top").Click 464,104
SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 48,40
SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 119,42
SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 217,45
SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 299,48
SwfWindow("Infragistics UltraWinToolbars").SwfObject("_Form1_Toolbars_Dock_Area_Bott").Click 388,50

  • Post Points: 20
[Infragistics] Milko
Points 21,370
Infragistics Employee
Replied On: Fri, Aug 12 2016 7:29 AM Reply

Hello Awati,

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.

Sincerely,
Milko
Associate Software Developer

  • Post Points: 5
Page 1 of 1 (8 items) | RSS