
|
If you were logged in you would be able to see more operations.
|
|
|
|
We need to provide a way to declaratively specify a default timeout for test case methods. This is similar to JUnit's @Test(timeout=xxx) approach, but done outside of the code
|
|
Description
|
We need to provide a way to declaratively specify a default timeout for test case methods. This is similar to JUnit's @Test(timeout=xxx) approach, but done outside of the code |
Show » |
|
If JUnit's @Test(timeout="xxx") is used, JUnit's declaration takes precedence.
An example:
SimpleDeployTest { groups = "SimpleDeployTest" numCybernodes = 1 numMonitors = 1 numLookups = 1 opstring = 'src/test/resources/simple_opstring.groovy' harvest = true timeout = 10000 }
The SimpleDeployTest will have a default timeout of 10 seconds per test case method.
The timeout is accomplished by using JUnit's FailOnTimeout class