|Re: Timeout for test [message #1216972 is a reply to message #1216002]
||Thu, 28 November 2013 18:15
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
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
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.02442 seconds