I am using Ranorex 5 and my application is based on Sencha Ext JS, highcharts.
I notice my scripts are not playing back in a reliable way. Elements are not clicked, like I can see the mouse hovering over by the element but the click does not take effect, for example I can see the mouse over the checkbox that I want to click but the item is never shown as checked. Also, items that are visible are not found, etc. Delays are not doing this behavior any better.
When using Chrome a lot of the elements are just not found, it is kind of better in Firefox although I see the execution getting slower at times.
Any pointers on what can be happening? I am relatively new user of Ranorex, and I would like to continue using the tool since the company already paid for the licenses, but with this inconsistent behavior is going to be hard to have reliable automation.
I am using a VM and I do have the setting "Use asynchronous dispatching..." unchecked , is there other setting that I should change?
Thanks.
Inconsistent playback of scripts
Re: Inconsistent playback of scripts
When testing web pages, timing is the largest problem that is going to be faced with Ranorex. Even if you think you have all of the timing issues fixed, there are sometimes really small things that can cause big issues. Go over it with a fine-toothed comb. 
I would ask if you have made sure that the Ranorex plugin/extension is enabled in both Chrome and Firefox?
What versions of Chrome and Firefox are you using?
Does the test work (more reliably at least) in IE?

I would ask if you have made sure that the Ranorex plugin/extension is enabled in both Chrome and Firefox?
What versions of Chrome and Firefox are you using?
Does the test work (more reliably at least) in IE?
Shortcuts usually aren't...
Re: Inconsistent playback of scripts
I have been doing GUI automation for a long time and you pointed out timing issues are a big thing in Web GUI automation. This time is really beyond what I have experienced before. I do not know if it is a combination of the Sencha Controls and also the tool. I can set a loop to find an item in a page and it randomly fails, bring the spy up, the item is found but not really working at runtime at different times.
I am using Chrome version 34. and Firefox version 26. Firefox, a little better than Chrome but neither of them totally reliable. I wish there was a way that I could not log the test result if something fails, and have a chance to execute the test a second time before really calling it a failure, not a real solution, but at least, if the problem is consistent then it could be a defect.
I am using Chrome version 34. and Firefox version 26. Firefox, a little better than Chrome but neither of them totally reliable. I wish there was a way that I could not log the test result if something fails, and have a chance to execute the test a second time before really calling it a failure, not a real solution, but at least, if the problem is consistent then it could be a defect.
Re: Inconsistent playback of scripts
I meant no offense by what I said, I didn't know how long you have been doing this type of thing, so I started off with basics. Also, replied in the other thread as well, not having read this response yet. 
1. Have you made sure that the XPath is correct? Sometimes the XPath creation algorithm uses attributes that are going to be more volatile than it thinks they are. You may need to go through each part of the XPath and validate each element. Also, if your path is more than one element, you may want to split them up into separate rooted folders. This may allow you to find the element that is the issue.
2. Have you tried adding a Validate.Exists() right before your operation on the object? Sometimes Ranorex thinks it found the object, but it didn't or the object isn't done loading, etc., and tries to perform the action on it before the object is ready. The Validate will make Ranorex find the object first and perhaps give it time to finish loading fully.
Would you be able to post a snapshot of the items in question and perhaps a small test script that demonstrates the issue? This might help one of us find something you may be missing.
Hope this helps!

1. Have you made sure that the XPath is correct? Sometimes the XPath creation algorithm uses attributes that are going to be more volatile than it thinks they are. You may need to go through each part of the XPath and validate each element. Also, if your path is more than one element, you may want to split them up into separate rooted folders. This may allow you to find the element that is the issue.
2. Have you tried adding a Validate.Exists() right before your operation on the object? Sometimes Ranorex thinks it found the object, but it didn't or the object isn't done loading, etc., and tries to perform the action on it before the object is ready. The Validate will make Ranorex find the object first and perhaps give it time to finish loading fully.
Would you be able to post a snapshot of the items in question and perhaps a small test script that demonstrates the issue? This might help one of us find something you may be missing.
Hope this helps!
Shortcuts usually aren't...
Re: Inconsistent playback of scripts
I will upload a snapshot and a script. Maybe there is something in there that can be seen.
I know the paths work as I use the spy and I can find what I am looking for. This was also validated by the rep. Since the id's change constantly I use other attributes to find the elements.
As I mentioned before, a rep is working with me, however we are on week number 2 without a date from the developer to see at what is going on. I cant rely on automation at this point, since there are so many false negatives. Also, the performance degradation is becoming a pain point.
Thanks.
I know the paths work as I use the spy and I can find what I am looking for. This was also validated by the rep. Since the id's change constantly I use other attributes to find the elements.
As I mentioned before, a rep is working with me, however we are on week number 2 without a date from the developer to see at what is going on. I cant rely on automation at this point, since there are so many false negatives. Also, the performance degradation is becoming a pain point.
Thanks.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Inconsistent playback of scripts
Hello Mayra,
I suggest to have a remote session in order to analyze the issues on your machine. I have already sent an email to you in order to to arrange an appointment.
Please let me know if this is possible.
You can also post a snapshot and an example solution in order to explain your issue in more detail here in our forum.
Regards,
Bernhard
I suggest to have a remote session in order to analyze the issues on your machine. I have already sent an email to you in order to to arrange an appointment.
Please let me know if this is possible.
You can also post a snapshot and an example solution in order to explain your issue in more detail here in our forum.
Regards,
Bernhard