Inconsistent playback of scripts

Ask general questions here.
Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Inconsistent playback of scripts

Post by Mayra » Sat May 03, 2014 4:02 am

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Inconsistent playback of scripts

Post by krstcs » Mon May 05, 2014 2:59 pm

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. :D

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

Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Re: Inconsistent playback of scripts

Post by Mayra » Tue May 06, 2014 2:16 am

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Inconsistent playback of scripts

Post by krstcs » Tue May 06, 2014 2:18 pm

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. :D


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

Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Re: Inconsistent playback of scripts

Post by Mayra » Wed May 07, 2014 12:37 am

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.

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

Re: Inconsistent playback of scripts

Post by Support Team » Fri May 09, 2014 1:37 pm

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