Class ExecutionConfig

    • 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 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 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()
      • 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