Page 1 of 1

Handling AUT pop ups.

Posted: Wed Jun 11, 2014 6:06 am
by shruthi
Hi all,

I'm facing problem in identifying expected pop ups. I'm new to Automation and coding so please guide me, how can i validate (identify) pop up which comes above other elements. If i try to spy it(pop up) and add to repository, elements under pop up are focused and added to repository. Even with track option, I'm not able to identify the pop up.

Do i need to write user code for this..?? Please help me.

Re: Handling AUT pop ups.

Posted: Wed Jun 11, 2014 8:45 am
by odklizec
Hi,

I'm not sure I understand your problem. Are you or are you not able to track the popup using Ranorex Spy? In your description, you mention that the tracked popup elements are added to the repository.

So once the popup window elements are in the repository, all you need to do now is to implement PopupWatcher methods in Program.cs. See this post how to do this...
http://www.ranorex.com/support/user-gui ... html#c4678

And this one is one should help you too:
http://www.ranorex.com/forum/popupwatch ... t5936.html

Re: Handling AUT pop ups.

Posted: Thu Jun 12, 2014 2:01 am
by shruthi
hi,


I'm not able to track pop up. Its coming above other elements on the application page. When i try to track, underneath elements gets focused and added to repository not the pop up.. Pop up has become like virtual not identifying and not able to track.


If i get a path of that i can try for user code but now i have no idea what to do.. please help me. In the links what you have sent, accessing repository to work on it...

I know I'm not following steps properly. please guide me in detail in this regard.

Re: Handling AUT pop ups.

Posted: Thu Jun 12, 2014 5:35 am
by odklizec
Hi,

If spy is not able to identify the popup, then I'm afraid, you are in big trouble. There is not much you can do. What kind of application are we talking about? Desktop (win, mfc, flash, java, qt,...)? Mobile (iOS/Android)? Any third party dev controls used? It would be much easier to help you with sample application or at least the snapshot. But the later one might be useless if spy is not able to identify the popup.

Re: Handling AUT pop ups.

Posted: Thu Jun 12, 2014 7:15 am
by shruthi
Hi

Thanks for the constant reply.

We are using Flex and flash technology for development. One more thing i would like to mention here, in our application we get pop up alerts in many different situations. All other alerts are identified by ranorex except the one which I'm talking about.

Scenario1: Clicking on submit button shows, Submission in progress alert with OK button. Here all objects are identified including button, message, X close button etc.

Scenario2: Once the submission is made we will get acknowledgement as pop up alert. It doesn't comes all the time. If submission is valid, Acknowledgement dialog pops up with View, close, Open File buttons inside dialog. Sometimes it shows Dialog as Corrupted with open,close,view buttons inside it. So pop ups depends on many factors and some time pop up may not come as well.

So according to me, in scenario1 pop up comes every time when button is clicked (event triggered) and in sceanrio2 we don't click on any button to receive pop up. just it comes when submission is reached to receiver. (no event to trigger) so this is making a very big difference!!!!!

or we have to speak with developers, how these 2 pop ups are generated and how they differ???

Re: Handling AUT pop ups.

Posted: Thu Jun 12, 2014 7:42 am
by odklizec
Yes, that would be exactly my suggestion to you. Just reach you dev guys and ask them about the difference between these popups. Then ask them to adapt the one which does not work with Ranorex.

Re: Handling AUT pop ups.

Posted: Thu Jun 12, 2014 8:10 am
by shruthi
Thank you. I will get back here once i speak and get suggestions from our development team. :D

Re: Handling AUT pop ups.

Posted: Thu Jun 12, 2014 8:20 am
by odklizec
You are welcome. Good luck with dev guys! ;)