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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
Defines the default timeout running a test. -
Constructor Summary
ConstructorsConstructorDescriptionExecutionConfig
(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
Modifier and TypeMethodDescriptionfinal boolean
Expands the test configuration parameters by using the current build environment variables.static int
int
final int
hashCode()
boolean
boolean
boolean
static ExecutionConfig
Instantiates a newExecutionConfig
with default values.static int
Parses a string-based parameter to integer.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
DEFAULT_TIMEOUT
protected static final int DEFAULT_TIMEOUTDefines the default timeout running a test.- See Also:
-
-
Constructor Details
-
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 Details
-
parse
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
Instantiates a newExecutionConfig
with default values.- Returns:
- the default
ExecutionConfig
-
getParsedTimeout
public int getParsedTimeout() -
getTimeout
-
isStopOnError
public boolean isStopOnError() -
isCheckTestFile
public boolean isCheckTestFile() -
isRecordWarnings
public boolean isRecordWarnings() -
expand
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
-
equals
-
hashCode
public final int hashCode()
-