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:
  • Field Details

    • DEFAULT_TIMEOUT

      protected static final int DEFAULT_TIMEOUT
      Defines the default timeout running a test.
      See Also:
  • Constructor Details

    • ExecutionConfig

      @DataBoundConstructor public ExecutionConfig(String timeout, boolean stopOnError, boolean checkTestFile, boolean recordWarnings)
      Instantiates a new ExecutionConfig.
      Parameters:
      timeout - the timeout to run the test
      stopOnError - specifies whether to stop ecu.test and Tool-Server instances if an error occurred
      checkTestFile - specifies whether to check the test file
      recordWarnings - 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 new ExecutionConfig.
      Parameters:
      timeout - the timeout to run the test
      stopOnError - specifies whether to stop ecu.test and Tool-Server instances if an error occurred
      checkTestFile - specifies whether to check the test file
      recordWarnings - specifies whether to record returned test file checks as Warnings NG issues
  • Method Details

    • 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 new ExecutionConfig 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 interface ExpandableConfig
      Parameters:
      envVars - the build environment variables
      Returns:
      the expanded specific configuration
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object