DevExpress WPF Grid Controls

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
rajashekar.raja
Posts: 2
Joined: Thu Mar 13, 2014 9:37 am

DevExpress WPF Grid Controls

Post by rajashekar.raja » Thu Mar 13, 2014 10:43 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: DevExpress WPF Grid Controls

Post by Support Team » Mon Mar 17, 2014 1:57 pm

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
.
Image

rajashekar.raja
Posts: 2
Joined: Thu Mar 13, 2014 9:37 am

Re: DevExpress WPF Grid Controls

Post by rajashekar.raja » Mon Mar 17, 2014 7:37 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: DevExpress WPF Grid Controls

Post by Support Team » Wed Mar 19, 2014 3:59 pm

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
.
Image