Posted: Fri Aug 18, 2006 6:40 am Post subject: Custom Controls
Can Ranorex be used to automate GUI testing for windows custom controls. Like if someone has made his own version of Windows textbox, can Ranorex identifies it?
Yes, you can use Ranorex to automate custom controls.
Ranorex supports Active Accessibility, so you (or the developer) should set some properties of the user control in Visual Studio.
Here are the most important rules:
You should set a unique control name for every control in your form and for every subcontrol in your user control
You should set a unique AccessibleName for every control and for every item in the control
Use the Form.Find functions to find a control by control name in a form and the Element.FindChild functions to find an element by AccessibleName and AccessibleRole. You should also set the AccessibleRole property for every item.
RanorexSpy shows the accessible properties in the element box.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum