HI ,
I am doing a automation POC on .NET application which has used Infragistics controls using UFT 11.50. I am using Infragistics evaluation ADD-in
.Net application which i am working has 'Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea' control which has many buttons. When i click on a toolbar button it will display a floating screen.
My Issue is, UFT is recording or recognising the toolbar buttons. Could you please help me in resolving this issue.
Thanks,
Hello Mike,
With the QTP version, when we initially developed, it was identified as below.
SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu")
But with the UFT 12.53 it is detecting as below.
SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are")
When I try highlight the SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu") , I am able to highlight the same. But I could not be able to run the script and getting the issue.
SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu").PerformToolAction tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"
This is the code that I developed earlier.
But now I am getting issue that PerformToolAction method is not supported for the object.
Hi Ram,
The line you said worked in QTP 11, I could not have ever worked as you have it typed for a number of reasons.
For starters, the ".Object.ToolbarsManager.Tools" is telling QTP to get the underlying control Object, and get the ToolbarsManager property, and it's child property Tools. Which our DockArea's do have those properties. Butit would return the .NET ToolsCollection object. Which you could not interact with directly via QTP. You then followed it with tbmgrToolbar, tbmgrClick, "AppToolbar", "Save" which is the foot print for our QTP\UFT specific method PerformToolAction method, that is intended to run on the root QTP\UFT contexted object such as SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are"). So I can imagine a valid recording interacting with the same Toolbar might be:
SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are").PerformToolAction tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"
That being said, the SwfWindow identifier also changed, which gives me the impression that this script is either not for the same form, or the underlying form was renamed. So the original script would no longer work on this form either. Even something as simple as :SwfWindow("Zorba-WorkStation").Resize 200,200Because it wouldn't be able to identify the Window correctly.
Hello Michael,
I am also facing the similar issue, Where My script was function in QTP 11. Now I am trying to run the same in UFT12.53.
I have installed the Infragestics version 12.1 and the application is also build using 12.1 version only.
Below is the Script developed in QTP 11:
SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu").Object.ToolbarsManager.Tools tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"
Now the Object is detecting as below:
Please advise.
Thanks
Ram
Hello Ramrati,
Thank you for your response.
Unspecified Error could mean just about anything. The first thing to do is to see if the error is caused by the AUT, by UFT, or by TestAdvantage. First, perform the actions that caused the error manually without using UFT or TestAdvantage. If the error does not occur, perform the actions through UFT without TestAdvantage enabled. If the error still does not occur, the issue has something to do with TestAdvantage. In that case, take a screenshot of the error and post it here if possible.
Hi,
Thank you very much for your response.
I have installed TestAutomation plugin. Now i could get display with Infragistics methods. But when i trying to execute am getting 'Unspecified error'.
Please help me to resolve this. Below the line of code for which am getting Unspecified error.
swfWindow("MID Retail").SwfToolbar("_Explorer_Toolbars_Dock_Area_Top").ClickToolbarTool "Explorers", "Allocation Workspace"