Page 1 of 1

Run tests faster

Posted: Mon Apr 09, 2012 5:07 pm
by asirobaba
Hi,

I've just signed up for a free trial and build up a test project for my Flash application.
I noticed that is takes 3-10 seconds to find and click a single button with xPath. This is not acceptable for my application because UI dynamically changes.
Is there any way to make navigation with xPath faster?
There is an example of my element xPath:
body/div/div/flexobject/element[@type='ClientAdapterView']/element/container[2]/container[1]/container[2]/container[1]/container[2]/container[9]/container/container/container[@displayname='card_0']/container[@displayname='no_9']

Thanks in advance

Re: Run tests faster

Posted: Wed Apr 11, 2012 11:29 am
by Support Team
Hi,

Are you using any folders within your repository? If yes there can be troubles with the folder caching because of your dynamic UI elements.
If you are using for instance an application folder and you have enabled the folder caching and your elements are dynamically generated there can be troubles with the caching and it can take longer to find the specific elements, so in this case I would suggest to turn of the caching or to not use the application folder for the dynamic elements.
Did just the first click take 3-10 seconds or each action, because the first action can take longer as Ranorex has to search for each element in the used RxPath?

Kind Regards,
Markus
Ranorex Support Team

Re: Run tests faster

Posted: Wed Apr 11, 2012 4:20 pm
by asirobaba
Hi,

Thank you for quick response.
In My sample script I use each element once, I don't need to re-use the element because of app specific.
Is it ok that it takes 3-10 seconds to find the element first time?

Best regards,
Alexander

Re: Run tests faster

Posted: Wed Apr 11, 2012 9:10 pm
by Support Team
asirobaba wrote:Is it ok that it takes 3-10 seconds to find the element first time?
Usually, search times should be much lower, especially for Flash/Flex applications, unless the application is extremely large and complex.

Could you provide us a Ranorex snapshot (see here how to create it) of the application or better, access to the application itself?

Regards,
Alex
Ranorex Team