Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » check if object appears
check if object appears [message #1763882] Mon, 22 May 2017 14:01 Go to next message
Zbyszek Kieliszek is currently offline Zbyszek KieliszekFriend
Messages: 12
Registered: April 2017
Junior Member
How can I check, if some object appears on the screen? (for example pop-up)
And how to set timeout for this operation?

I would like to:
1. click button A
2. recursively check if object (pop-up) B or C appeared on the screen (with a timeout of 10 seconds)
3. in case none of this object is found, i would like to get en error.

Re: check if object appears [message #1764227 is a reply to message #1763882] Fri, 26 May 2017 19:34 Go to previous messageGo to next message
Agustin Celentano is currently offline Agustin CelentanoFriend
Messages: 48
Registered: June 2015
Member
Hi there,

I think you could use the try/catch command to performing those instructions using the parameter "times" in 10 and delay in 1000ms. If that does not happen, you can throw an error by putting something which always fails in the catch section.
Basically, it will try to do this 10 times with a delay of 1seg between them. It's pretty much what you are looking for.

Hope it helps.

Agustin Celentano
Re: check if object appears [message #1764641 is a reply to message #1764227] Thu, 01 June 2017 06:39 Go to previous messageGo to next message
Zbyszek Kieliszek is currently offline Zbyszek KieliszekFriend
Messages: 12
Registered: April 2017
Junior Member
That's what I was looking for. Thanks for your help!
Re: check if object appears [message #1764754 is a reply to message #1764641] Fri, 02 June 2017 06:20 Go to previous message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Zbyszek,

Also, in RCPTT 2.2.0 we have added a 'throw-error' command. It makes the case failed with specified message.
https://hudson.eclipse.org/rcptt/job/rcptt-all/ws/releng/doc/target/doc/ecl/index.html#throw-error
Previous Topic:Odd behavior with Maven runner and toolbars under KDE
Next Topic:freezing problem - RCPTT loses connection with AUT
Goto Forum:
  


Current Time: Tue Jun 19 22:24:43 GMT 2018

Powered by FUDForum. Page generated in 0.02142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top