Page 1 of 1

DevExpress WPF Grid Controls

Posted: Thu Mar 13, 2014 10:43 am
by rajashekar.raja
Hi,

We are facing the below issue while automating our Application using Ranorex,
Application developed with WPF Controls,
Third party WPF Controls used: DevExpress WPF Controls

1. Developers use ‘DevExpress.Xpf.Grid.GridControl’ to populate search result in the application, we are not able to get any individual object in the grid
Ex. This grid has different columns, we are not able to get the value of any individual column.

2. There are checkboxes inside ‘DevExpress.Xpf.Grid.GridControl’ which has the below hierarchy
<dxg:GridColumn.CellTemplate> <DataTemplate> < CheckBox /> </DataTemplate> </dxg:GridColumn.CellTemplate>
These check boxes are not identified.

3. Inside this grid there is an expansion grid developed with ‘DevExpress.Xpf.Grid.GridControl.DetailDescriptor’ which we are not able to identify using Ranorex.

4. Inside this Detain Descriptor we have <dxg:ContentDetailDescriptor> And then it has <dxg:ContentDetailDescriptor.ContentTemplate> and it has <DataTemplate> which contains another DevExpress.Xpf.Grid.GridControl, This internal Grid itself is not getting identified by Ranorex.

We tried to parse these unknown elements to checkboxes, but we did not get it to work, we got an error ‘Object reference not set to instance of an object’
We tried to assign a role to these unknown elements as ‘Checkboxes’, then the objects were not even getting identified.
- Can you please help us one how to overcome the issue with ‘unknown’ element.

Re: DevExpress WPF Grid Controls

Posted: Mon Mar 17, 2014 1:57 pm
by Support Team
Hi,

Ranorex uses UIAutomation in order to identify WPF elements and it seems that DevExpress missed to implement the UIAutomation part for these controls.
I am afraid that Ranorex has currently no chance to identify these custom controls when UIAutomation is not properly implemented.
Here is a link to a similar topic which may be of help: post1.
If you have further questions please fell free to ask.

Regards,
Markus

Re: DevExpress WPF Grid Controls

Posted: Mon Mar 17, 2014 7:37 pm
by rajashekar.raja
Dear Team, Thank you for the reply,
If i understand you correctly, you mean to say that i need to contact the Development team and ask them to check - if "the UIAutomation is properly implemented for this application", Correct?
Or is there any way i can overcome this? like i implementing it myself.

And also, my next question is,

There are many frameworks that i can use with ranorex for automating AUT, but is there any credible Automation framework to Automate .NET application developed with MVVM Frameworks ?
I searched a lot on the internet and also in the forums, but could not get any useful links or answers.

I do not have any Development background, if you could help me on the above 2 question, i will be really greatful

Re: DevExpress WPF Grid Controls

Posted: Wed Mar 19, 2014 3:59 pm
by Support Team
Hi,

Yes, I would suggest to ask your development team.

If I got this correctly the MVVM (Model-View-ViewModel) is also just a framework which is based on a specific technology which is supported by Ranorex. But in order to be sure if Ranorex fits all your needs I would suggest to just give it a try and to test with the Ranorex Spy tool if Ranorex is able to identify those elements.

Regards,
Markus