Popup not being seen on playback

Ranorex Spy, Recorder, and Studio.
tsyingling
Posts: 20
Joined: Wed Nov 04, 2009 5:18 pm

Popup not being seen on playback

Post by tsyingling » Mon May 24, 2010 6:35 pm

I've been having this problem for awhile. Have a Silverlight app that launches popups. Recorder has no problem validating the popup is visible. If I close the popup and launch again and revalidate popup visible, when I run playback I get an error that the popup is not there, visible-false. As soon as the playback fails, I can go right to the line that failed without touching anything else, hit play selected item and the return is visible-tru. The only way I've been able to get the playback to get visible-true for a popup a second time in a recording is to close and relaunch the app in-between which is not pratical for the tests I'm trying to record. I have tried putting in delays before the 2nd validation, selecting anything else on the page before the 2nd validation, every thing I can think of that might kick the playback in the butt in-between. I could accept the idea that it's an issue with the app code if it weren't for the fact that the line item in the recording returns visible-true post-error, it only fails when I playback the recording and include the close/open of the popup. Is there anything I can do short of creating separate recordings for each time I want to launch a popup and validate?

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

Re: Popup not being seen on playback

Post by Support Team » Mon May 24, 2010 11:26 pm

Could you please post the exact error message you get when the validation fails?
Do you have any warnings in the Ranorex report?
Which Ranorex version do you use?

Please, try to disable caching for the parent folder of the repository item corresponding to the validation action! See following section in the Ranorex User Guide:
http://www.ranorex.com/support/user-gui ... html#c2076

Regards,
Alex
Ranorex Team
.
Image

tsyingling
Posts: 20
Joined: Wed Nov 04, 2009 5:18 pm

Re: Popup not being seen on playback

Post by tsyingling » Tue May 25, 2010 4:06 pm

My version of Ranorex is 2.1.2.6480. I've attached the report from the section of the recording I'm having problems with. As you can see by the report, I launch the popup (form encounter lead-in), validate the popup is visible, validate the items on the popup, hit OK on the popup to validate that another form is launched, cancel back to the main screen, launch the popup again and it fails for not being visible. I'm getting the same failure even if I simply launch, close and then relaunch the popup. Even the screenshot on the report for the error appears to be showing the popup as visible. Normally, when I get the warning message about disable caching (which isn't on this report) I can correct the warning by correcting the way the item itself is pathed in the repository. Even so, I did try disabling the cache anyway and got the same result but I can try that again. As I stated previously, the part that is really confusing to me is that if I simply play the selected item that is failing immediately after the failure without doing anything else, the item succeeds. Thanks for looking at this and if there's anything else I can do on my end, please let me know.
Attachments
RURAide_20100525_104024.rxlog
(8.2 KiB) Downloaded 254 times

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

Re: Popup not being seen on playback

Post by Support Team » Wed May 26, 2010 1:36 pm

Hi,
tsyingling wrote:Thanks for looking at this and if there's anything else I can do on my end, please let me know.
It seems that the pop-up don't get the state visible = true.
What type of pop up you use?
You trigger a Message Box for the pop-up or a form or a primitive silverlight pop-up.
If the test fails have you checked with SPY if the state is false or true?
Would it be possible to send or post us a sample application with this behavior.

Regards,
Peter
Ranorex Support Team
.
Image

tsyingling
Posts: 20
Joined: Wed Nov 04, 2009 5:18 pm

Re: Popup not being seen on playback

Post by tsyingling » Wed May 26, 2010 5:18 pm

If I emailed/attached the recording and the repository cs files and a URL to the app, would that work?

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

Re: Popup not being seen on playback

Post by Support Team » Thu May 27, 2010 8:07 am

Hi,

This would be cool. So it's easier for us to verify you problem. Please send the information to [email protected].

Regards,
Peter
Ranorex Support Team
.
Image

tsyingling
Posts: 20
Joined: Wed Nov 04, 2009 5:18 pm

Re: Popup not being seen on playback

Post by tsyingling » Thu May 27, 2010 9:52 pm

We're going to apply the build of the app I'm using to the site that you'll be logging into and I'll set up the scenario so you'll just need to run the part of the recording that's failing. I should have this all in place by the middle of next week (losing resources to Memorial Day weekend). I'll email the details to the [email protected] address once we're ready to go here, hopefully by Wednesday. Thanks again for helping me with this.