Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Timeout for test(SWTBot)
Timeout for test [message #1216002] Thu, 28 November 2013 09:29 Go to next message
mary win is currently offline mary winFriend
Messages: 1
Registered: November 2013
Junior Member
Hi All,
I am new in SWTbot I write a simple test to my application, but it sometimes stuck in the middle.
Is there a way to make the test fails after for example 5 minutes?

Thanks,
Mary
Re: Timeout for test [message #1216972 is a reply to message #1216002] Thu, 28 November 2013 18:15 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 11/28/2013 03:40 PM, mary win wrote:
> Hi All,
> I am new in SWTbot I write a simple test to my application, but it
> sometimes stuck in the middle.
> Is there a way to make the test fails after for example 5 minutes?


When you run tests with SWTBot, there are actually 2 timeouts:
* One provided by the test engine (JUnit, PDE, Tycho,...) which sets a
timeout for the whole TestSuite and will fail after some time,
independently of what's happening. The way to customize this timeout
depends on the way you're running your tests and you should ask the
question to the media dedicated to your "test engine" to learn more.
* SWTBot timeout is used in order to find widgets (as UI is
asynchronous, finders are waiting for widget to appear). You can
customize it as explained at
http://wiki.eclipse.org/SWTBot/FAQ#Can_I_change_the_timeout_for_execution_of_SWTBot_tests.3F

HTH
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:log4j warning message after reading FAQ
Next Topic:Warning shell
Goto Forum:
  


Current Time: Tue Mar 19 10:21:49 GMT 2024

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

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

Back to the top