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
Run tests faster
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run tests faster
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
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
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run tests faster
Usually, search times should be much lower, especially for Flash/Flex applications, unless the application is extremely large and complex.asirobaba wrote:Is it ok that it takes 3-10 seconds to find the element first time?
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