Ranorex

Custom Controls

 
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
obaid_malik



Joined: 18 Aug 2006
Posts: 1

PostPosted: 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?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Fri Aug 18, 2006 8:57 pm    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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