How to search a textbox within usercontrol more faster : Automation API

How to search a textbox within usercontrol more faster

Class library usage, coding and language questions.

How to search a textbox within usercontrol more faster

Postby jet » Fri Aug 26, 2011 8:01 am

Hi all ,my company is seeking a automation test solution,i found ranorex and download it which version is 3.0.5.We are making a valuation about it now, it was a excellence tool,but there is a limitaion when it was searching the usercontrol,could it be faster,in my test case it spend more than 8 seconds to search a textbox or button etc in the usercontrol,my application is a add-in of visual studio 2010.There are serveral usercontrol in a winform .Any reply would be appriciated.
jet
 
Posts: 7
Joined: Thu Aug 25, 2011 12:02 pm

Re: How to search a textbox within usercontrol more faster

Postby Support Team » Fri Aug 26, 2011 12:35 pm

Hi,

Would it be possible to post us a Ranorex Snapshot of your entire application and the RxPath you use to search for an element? Then is would be much easier to help you with improving the performance for you RxPath.

How to create a Ranorex Snapshot

Thanks in advance.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How to search a textbox within usercontrol more faster

Postby jet » Mon Aug 29, 2011 2:56 am

Thank you for reply.
I had send the snapshot file to support@ranorex.com, and the ranorexpath was "/form[@automationid='VisualStudioMainWindow']/container[@classname='DockRoot']/tabpagelist/tabpage/container[@automationid='D:0:0:{3AE0C910-9CAC-492B-B67D-9032344D6720}|MetadataProject.Metadata\MetadataProject.Metadata.mdproj|c:\users\zhangzh-a.grandsoft\documents\visual studio 2010\Projects\MetadataProject\MetadataProject.Metadata\NewEntity.metadata.entity||{47117862-E59D-478F-8E86-12A13D6B719A}']"
If you could not recieve the mail,please give me a mail address then i would send it again.
Thank you!
jet
 
Posts: 7
Joined: Thu Aug 25, 2011 12:02 pm

Re: How to search a textbox within usercontrol more faster

Postby jet » Mon Aug 29, 2011 3:15 am

Given there were numbers of add-in editors and usercontrols(mainly include usercontrol in editor) , and we will make automated test serveral times every night. So,We hope that search one control about 1 second.If it achieve the goal would be appreciated!
jet
 
Posts: 7
Joined: Thu Aug 25, 2011 12:02 pm

Re: How to search a textbox within usercontrol more faster

Postby Support Team » Mon Aug 29, 2011 12:17 pm

Hi,

I'm sorry but we did not get any snapshot file from you for now.
Please either send it to support@ranorex.com or attach it to your next forum post.

Kind regards,
Tobias
Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How to search a textbox within usercontrol more faster

Postby jet » Tue Aug 30, 2011 2:26 am

:)
Attachments
VS-ADDIN-EDITOR.rxsnp
(792.17 KiB) Downloaded 11 times
jet
 
Posts: 7
Joined: Thu Aug 25, 2011 12:02 pm

Re: How to search a textbox within usercontrol more faster

Postby Support Team » Tue Aug 30, 2011 10:56 am

Hi,

Thank you for the snapshot. I saw that the AutomationID of the control you are searching for is very long. Therefore it could take longer. Instead of your RxPath please try the following one
/form[@automationid='VisualStudioMainWindow']/container[@classname='DockRoot']/tabpagelist/tabpage/container[@name='Entity: NewEntity*']


I would also suggest you to read following blog
http://www.ranorex.com/blog/ranorexpath-tips-and-tricks

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How to search a textbox within usercontrol more faster

Postby jet » Wed Aug 31, 2011 11:28 am

Thank you for replay.
I'm not sure wether the issue was cause by the ranorexxmlpath,the path i posted was captured by spy tool, but in my test case the path as brief as you suggest.
It was fantasy that i download version3.1.0 and reinstall it ,i found the search speed of control had improved obviously.It was faster,which expensed 2 seconds to search a cotrol!


With best gards
jet
 
Posts: 7
Joined: Thu Aug 25, 2011 12:02 pm


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests