Run tests faster

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
asirobaba
Posts: 2
Joined: Mon Apr 09, 2012 4:59 pm

Run tests faster

Post by asirobaba » Mon Apr 09, 2012 5:07 pm

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

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

Re: Run tests faster

Post by Support Team » Wed Apr 11, 2012 11:29 am

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

asirobaba
Posts: 2
Joined: Mon Apr 09, 2012 4:59 pm

Re: Run tests faster

Post by asirobaba » Wed Apr 11, 2012 4:20 pm

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

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

Re: Run tests faster

Post by Support Team » Wed Apr 11, 2012 9:10 pm

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