Custom Controls

Ask general questions here.
Posts: 1
Joined: Fri Aug 18, 2006 5:38 am

Custom Controls

Post by obaid_malik » Fri Aug 18, 2006 5:40 am

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?

Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Fri Aug 18, 2006 7:57 pm

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.

Jenö Herget
Ranorex Team