Hi,
I am using RFT8.0 and Visual Studio2008 with TestAdvantage proxy to work with infragistics controls in our application.
Please help for the below issue while working with Menubar/Toolbar control object.
Below code snippet used to click on Menu bar items using its caption, but we are unable to add one more menu item for AtList method. Here we need to click on Driver Status submenu item after List Setup parent menu item.
Dim objTool111 As UltraToolbarsDockAreaTestObject 'Find Tool Bar Items AMS_Globalvariables.tObj = AMS_Globalvariables.objWinForm.Find(AtChild(".class", "Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea", "Name", "_FormBase_Toolbars_Dock_Area_Top")) If AMS_Globalvariables.tObj.Length > 0 Then objTool111 = CType(AMS_Globalvariables.tObj(0), UltraToolbarsDockAreaTestObject) Else LogError("Failed to Find the Tool Bar Object") End If
'Click on Toolbox-->System Administration-->List Setup-->Driver Status... objTool111.Click(AtList(AtText("MainMenuToolbar"), AtName("&Toolbox"), AtName("&System Administration"), AtName("List Setup")))
AtList() method accepting only four parameter itmes(Captions) as mentioned in above code snippet, so how to pass more than four items in AtList method. Let us know how to use the subitems in array format.
Kindly help me in this regard.
Thanks,
Vijay.
Hi Karthiga and welcome to our forums
The easiest way to identify our control is to record some click actions on them and this will add them to the object map and also to the script. you can record all your actions and the script should playback those actions during replay.
Once the menu bar is added to the script via record you can manually write the script. The action to click menu item on toolbars is Click(atPath(...)) the path is usually the list of items in the menu bar to get to that item separated by "->" so if your menubar is called "MainMenue" and you have a file > open > PDF file, for example then to select that item your action should be:
DockAreaTop.Click(AtPath(MainMenu->File->Open->PDF file"))
I hope this will be helpful. Let me know if you have any more questions.
Regards,
Ammar
I figured it out :-)
For click subitem in row - 1 and column - 5
WpfWindow("Test").XamDataGrid("XamDataGrid").ClickSubItem gridCell,"{1}{1}[5]",igMidCenter
-Chetan
Hi Ammar,
I am doing feasiblility of using Testadvantage in one of our project can you please let me how can i click a checkbox or button which is inside a xamdatagrid
suppose i need to check the checkbox at row - 2,column - 2 or need to click a button at row - 5 , column - 6.
And Can you please little early because we need to finalize it in a week whether testadavtage is feasible for automation or not so that we can go ahead.
Hi Vijay,
Performing the test off the window Test object will not be good. You need to perform the test on the same test object that you used when creating the VP. To do this you can use the same technique you are currently using to get the toolbar test object. you just have to dig deeper :)
HI Ammar,
Thanks for your help in providing the required information which is more helpfull for us.
With your suggestion i have tried with the verification points with root popup tool to verify the child tools (and their children if they exist) and its failed while play back the same.
Here i am using the data verification point to verify the whethre sub menus ("New..." and "View..") are existed or not under main menu ("Suspense").
Below is the code snippet used for the above VP.
'Wait till the Parent Policy WinForm is completely loaded AMS_Globalvariables.objWinForm = LoadWinForm("frmBPolParent", AMS_Globalvariables.gintMaxTime) If AMS_Globalvariables.objWinForm Is Nothing Then LogError("unable to find the Parent Policy WinForm") End If
AMS_Globalvariables.objWinForm.PerformTest(_FormBase_Toolbars_Dock_Area_Top11006_itemPropertiesVP())
Here i used the Toplevel window as parent object fop VP, Is it OK or Do we need to use "UltraToolbarsDockArea" object as parent for the VP.
Please find the below attached file for the VP taken.
Kindly Let me know , If you need any further information.
Once again thanks for your suppport in this regard.
Thanks & Regards,
Vijay Jadi.