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 04:29 Go to next message
mary win is currently offline mary win
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 13:15 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 745
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: Fri Aug 29 10:24:39 EDT 2014

Powered by FUDForum. Page generated in 3.24036 seconds