Page 1 of 1

How to improve performance of Ranorex on DevExpress DataGrid

Posted: Tue Jul 19, 2011 6:49 am
by vengaishiva
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

Re: How to improve performance of Ranorex on DevExpress DataGrid

Posted: Wed Jul 20, 2011 10:32 am
by vengaishiva
Hi Support team,
Any update on my question? Am waiting for your reply :oops:

Regards,
Siva R S

Re: How to improve performance of Ranorex on DevExpress DataGrid

Posted: Wed Jul 20, 2011 11:27 am
by Support Team
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

Re: How to improve performance of Ranorex on DevExpress DataGrid

Posted: Wed Jul 20, 2011 11:46 am
by vengaishiva
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

Re: How to improve performance of Ranorex on DevExpress DataGrid

Posted: Thu Jul 21, 2011 10:06 am
by Support Team
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