This is a migrated thread and some comments may be shown as answers.

Java loading image

5 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 2
John asked on 25 Aug 2011, 03:15 PM

How would I have Telerik pause while the java pop up stating “processing please wait”?  Any thoughts?

 

Thanks,

John

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 25 Aug 2011, 07:41 PM
Hi John,
     are possibly to referring to Javascript? 

Java technologies are usually integrated in a web page in the form of a Java applets:
http://en.wikipedia.org/wiki/Java_applet
Java applets have really gone out of style which leads me to believe you might be working with Javascript instead.

Test Studio does not support testing of Java-based technologies. With applets we can only detect that they're there (screenshot 1) but not actually perform any verification. If you're app has a Java applet-based popup maybe it's possible to record a WaitForElementsExists on it - the way to pause the test while the “processing please wait”
message is there is to simply wait it out. You record a WaitForElementExists (screenshot 2)  which will resume execution only when the element is no longer there and we are thus ready to continue executing.

If you have Javascript loading screen you need to follow the same approach but it will be easier to record the necessary Verifications. It might be trick if the loading screen doesn't appear for long enough to record - then you might need to write the Verification manually in code. Please share some additional details related to this automation challenge so that we may assist you better.

Best wishes,
Stoich
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
John
Top achievements
Rank 2
answered on 25 Aug 2011, 08:27 PM
My script halts when the following appears on the screen to long.  Please see screen shot it appears and when that is loaded then it goes away.

thanks,
John
0
John
Top achievements
Rank 2
answered on 26 Aug 2011, 04:47 PM
Here is a video recording of what I see. You will see where it stops and what the screens are.  I was told the "Processing please wait.." is in java.


thanks,
John
0
Stoich
Telerik team
answered on 26 Aug 2011, 06:09 PM
Hello John,
    that seems to be an AJAX loading animation indication an AJAX postback is occurring.

You'll probably need a coded step in order to wait it out the way you intend to. Check out the following KB article:
http://www.telerik.com/automated-testing-tools/support/kb/how-to-wait-for-an-ajax-postback-to-complete.aspx

All the best,
Stoich
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
John
Top achievements
Rank 2
answered on 29 Aug 2011, 05:49 PM
I think I came up with a simple solution and that is to wait while object is still visible.  In this case while (visible) wait 250. 

I hope this works as well... 

John
Tags
General Discussions
Asked by
John
Top achievements
Rank 2
Answers by
Stoich
Telerik team
John
Top achievements
Rank 2
Share this question
or