Class ExecutionConfig
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ExecutionConfig>
-
- de.tracetronic.jenkins.plugins.ecutest.test.config.ExecutionConfig
-
- All Implemented Interfaces:
ExpandableConfig
,Describable<ExecutionConfig>
,Serializable
public class ExecutionConfig extends AbstractDescribableImpl<ExecutionConfig> implements Serializable, ExpandableConfig
Class holding the test execution settings.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutionConfig.DescriptorImpl
DescriptorImpl forExecutionConfig
.
-
Field Summary
Fields Modifier and Type Field Description protected static int
DEFAULT_TIMEOUT
Defines the default timeout running a test.
-
Constructor Summary
Constructors Constructor Description ExecutionConfig(int timeout, boolean stopOnError, boolean checkTestFile, boolean recordWarnings)
Instantiates a newExecutionConfig
.ExecutionConfig(String timeout, boolean stopOnError, boolean checkTestFile, boolean recordWarnings)
Instantiates a newExecutionConfig
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
ExecutionConfig
expand(EnvVars envVars)
Expands the test configuration parameters by using the current build environment variables.static int
getDefaultTimeout()
int
getParsedTimeout()
String
getTimeout()
int
hashCode()
boolean
isCheckTestFile()
boolean
isRecordWarnings()
boolean
isStopOnError()
static ExecutionConfig
newInstance()
Instantiates a newExecutionConfig
with default values.static int
parse(String param)
Parses a string-based parameter to integer.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
DEFAULT_TIMEOUT
protected static final int DEFAULT_TIMEOUT
Defines the default timeout running a test.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExecutionConfig
@DataBoundConstructor public ExecutionConfig(String timeout, boolean stopOnError, boolean checkTestFile, boolean recordWarnings)
Instantiates a newExecutionConfig
.- Parameters:
timeout
- the timeout to run the teststopOnError
- specifies whether to stop ecu.test and Tool-Server instances if an error occurredcheckTestFile
- specifies whether to check the test filerecordWarnings
- specifies whether to record returned test file checks as Warnings NG issues
-
ExecutionConfig
public ExecutionConfig(int timeout, boolean stopOnError, boolean checkTestFile, boolean recordWarnings)
Instantiates a newExecutionConfig
.- Parameters:
timeout
- the timeout to run the teststopOnError
- specifies whether to stop ecu.test and Tool-Server instances if an error occurredcheckTestFile
- specifies whether to check the test filerecordWarnings
- specifies whether to record returned test file checks as Warnings NG issues
-
-
Method Detail
-
parse
public static int parse(String param)
Parses a string-based parameter to integer.- Parameters:
param
- the parameter string- Returns:
- the parsed integer value represented by the String parameter, defaults to
DEFAULT_TIMEOUT
if null or invalid value
-
getDefaultTimeout
public static int getDefaultTimeout()
-
newInstance
public static ExecutionConfig newInstance()
Instantiates a newExecutionConfig
with default values.- Returns:
- the default
ExecutionConfig
-
getParsedTimeout
public int getParsedTimeout()
-
getTimeout
public String getTimeout()
-
isStopOnError
public boolean isStopOnError()
-
isCheckTestFile
public boolean isCheckTestFile()
-
isRecordWarnings
public boolean isRecordWarnings()
-
expand
public ExecutionConfig expand(EnvVars envVars)
Description copied from interface:ExpandableConfig
Expands the test configuration parameters by using the current build environment variables.- Specified by:
expand
in interfaceExpandableConfig
- Parameters:
envVars
- the build environment variables- Returns:
- the expanded specific configuration
-
-