I've been using TestComplete to automate some tests and have ran into an issue trying to click on tools on a toolbar. My current method involves getting the X/Y of the tool and positioning the mouse over it to click it. I've done some searching on the net and found some references to a ClickToolbarTool method, but that doesn't seem to exist in version 8.2. So is there any way to do this through already existing methods, or do we have to create a method in the code to do it?
Aaron,
ClickToolbarTool is a TestAdvantage method. TestAdvantage is a an add-in to HP QuickTest Pro that allaows the tester to interact with infragistics control in more readable and maintainable way that Click(x, Y)
Infragistics provide two TestAdvantage product. One that is compatible with HP QuickTest Pro and the other for IBM Rational Functional Tester. Yo can get more infor about TestAdvantage here (http://www.infragistics.com/dotnet/testadvantage.aspx#Overview)
Unfortunatly there is nothing for TestComplete. I am not familiar with TestComplete so I don’t think I can be of much help but if you can access object property and fire off event then you want to get the ToolbarsManager property of the DockArea (when the toolbar is displayed) and fore off “ToolClick” event with the right Tool.
In c# you can do the same. Get the ToolbarsManager component and Fire the “ToolClick” event.
I hope this was helpful.
Ammar
Ah ok. Didn't realize that was for a different testing product.
I've tried to implement the ToolbarsManager_ToolClick event but keep getting hung up on trying to pass eventargs to it. Works fine in the application, but in TestComplete it doesn't seem to like me creating the EventArgs for it. I guess I can just create a method to allow me to click a button by key name through my app.
Thanks,
Aaron Foley