How to improve performance of Ranorex on DevExpress DataGrid

Ask general questions here.
vengaishiva
Posts: 62
Joined: Wed Mar 09, 2011 4:40 pm

How to improve performance of Ranorex on DevExpress DataGrid

Post by vengaishiva » Tue Jul 19, 2011 6:49 am

Hi,
I am using Dev Express Grid in my application. It contains around 10000 rows. I need only the filter row in the data grid. I took the rx path of filter row in my c# code. But it took around 2 minutes to identify the row. Is there any way to get only the filter row without allowing ranorex to enumerate through all rows? I am providing you my code here.

Table t = "rx path of grid";
Row r = t.FindSingle<Row>("container[@accessiblename='Data Panel']/row[@accessiblename='Filter Row and @visible='True']"); //This line takes around 2 minutes and am able to get the row after 2 minutes.

As you can see the code here, i need only the filter row here. If the data grid contains only few rows, the above statement took only few seconds. But for 10000 rows its taking long time.

Even if i use cache context, the first access will take long time and i dont want that. Please help me out.

Regards,
Siva R S

vengaishiva
Posts: 62
Joined: Wed Mar 09, 2011 4:40 pm

Re: How to improve performance of Ranorex on DevExpress DataGrid

Post by vengaishiva » Wed Jul 20, 2011 10:32 am

Hi Support team,
Any update on my question? Am waiting for your reply :oops:

Regards,
Siva R S

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

Re: How to improve performance of Ranorex on DevExpress DataGrid

Post by Support Team » Wed Jul 20, 2011 11:27 am

Hi,
vengaishiva wrote:Any update on my question? Am waiting for your reply :oops:
If you have 10000 rows inside your grid, Ranorex needs time to get your specific row, because this is not the smallest table. :)
Could you please verify, how long Spy searches for this element? Would it be maybe possible to post us a Ranorex Snapshot to check if the RxPath you use is the fastest?

Thanks in advance.

Regards,
Peter
Ranorex Team
.
Image

vengaishiva
Posts: 62
Joined: Wed Mar 09, 2011 4:40 pm

Re: How to improve performance of Ranorex on DevExpress DataGrid

Post by vengaishiva » Wed Jul 20, 2011 11:46 am

Hi
vengaishiva wrote:Could you please verify, how long Spy searches for this element?
The spy is taking almost 2 minutes to track and construct the tree of rows.
Would it be maybe possible to post us a Ranorex Snapshot to check if the RxPath you use is the fastest?


Unfortunately, i cant provide you the snapshot of application as it is in a secured location. However i can provide you the rxpaths

rx path of table : /form[@controlname='MainForm']/element/container/container/container/container/container/element/table[@accessiblename='Error message']

rx path of filter row :

container[@accessiblename='Data Panel']/row[@accessiblename='Filter Row']

Please note that the rx path of filter row above is the relative path (since am calling t.FindSingle<Row> in my code in the original post)

The filter row is the first row in the container 'data panel'. I need only this row. So why there is a need of ranorex going through all 10000 rows before giving me the required row, in the code.
i.e FindSingle method should stop whenever it identifies the correct row. It should not loop through all rows.
This way, since the filter row is the first row, find single method will return me the required row immediately.

Regards,
Siva R S

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

Re: How to improve performance of Ranorex on DevExpress DataGrid

Post by Support Team » Thu Jul 21, 2011 10:06 am

Hi,

Please take a look to following answer of Alex. The same is valid for you datagird
http://www.ranorex.com/forum/performanc ... html#p2508

Regards,
Peter
Ranorex Team
.
Image