Interface Parameters

    • Method Detail

      • setTestSuite

        void setTestSuite​(TestSuite ts)
        Set the test suite for which these parameters apply.
        Parameters:
        ts - the test suite for which these parameters apply
        See Also:
        getTestSuite()
      • setWorkDirectory

        void setWorkDirectory​(WorkDirectory wd)
        Set the work directory for which these parameters apply.
        Parameters:
        wd - the work directory for which these parameters apply
        See Also:
        getWorkDirectory()
      • getTests

        java.lang.String[] getTests()
        Get the paths identifying the tests or folders of tests within the test suite to be run.
        Returns:
        an array of paths identifying the tests to be run
        See Also:
        Parameters.TestsParameters.getTests()
      • getTestsParameters

        Parameters.TestsParameters getTestsParameters()
        Get an object which provides access to the paths identifying the tests or folders of tests to be run.
        Returns:
        an object which provides access to the paths identifying tests to be run.
      • getExcludeListParameters

        Parameters.ExcludeListParameters getExcludeListParameters()
        Get an object which provides access to the exclude list which identifies tests or test cases to be excluded from the test run.
        Returns:
        an object which provides access to the exclude list identifying tests or test cases to be excluded from the test run.
      • getKeywords

        Keywords getKeywords()
        Get a keywords object which identifies tests to be run according to their keywords.
        Returns:
        a keywords object which identifies tests to be run according to their keywords.
        See Also:
        Parameters.KeywordsParameters.getKeywords()
      • getKeywordsParameters

        Parameters.KeywordsParameters getKeywordsParameters()
        Get an object which provides access to the keywords object which identifies tests to be run according to their keywords.
        Returns:
        an object which provides access to the keywords object which identifies tests to be run according to their keywords.
      • getPriorStatusValues

        boolean[] getPriorStatusValues()
        Get an array of booleans which identify tests to be run according to their prior execution status. The array can be indexed by the constants Status.PASSED, Status.FAILED, Status.ERROR, and Status.NOT_RUN. For each of those values, if the corresponding boolean in the array is true, a test will be selected if its status matches the index. If the array is null, all tests will be selected.
        Returns:
        an array of booleans which identifying tests to be run according to their prior execution status, or null if no such criteria is required.
        See Also:
        Parameters.PriorStatusParameters.getPriorStatusValues()
      • getPriorStatusParameters

        Parameters.PriorStatusParameters getPriorStatusParameters()
        Get an object which provides access to an array of booleans which identify tests to be run according to their prior execution status.
        Returns:
        an object which provides access to an array of booleans which identify tests to be run according to their prior execution status, or null if no such selection criteria is required.
      • getEnv

        TestEnvironment getEnv()
        Get the environment of test-suite-specific configuration values, to be passed to the script used to run each test.
        Returns:
        an environment to be passed to the script used to run each test.
        See Also:
        Parameters.EnvParameters.getEnv()
      • getEnvParameters

        Parameters.EnvParameters getEnvParameters()
        Get an object which provides access to the environment of test-suite-specific configuration values to be used when each test is run.
        Returns:
        an object which provides access to the environment to be used when each test is run.
      • getConcurrency

        int getConcurrency()
        Get an integer specifying the maximum number of tests that may be run in parallel.
        Returns:
        an integer specifying the maximum number of tests that may be run in parallel
        See Also:
        Parameters.ConcurrencyParameters.getConcurrency()
      • getConcurrencyParameters

        Parameters.ConcurrencyParameters getConcurrencyParameters()
        Get an object which provides access to the integer specifying the maximum number of tests that may be run in parallel.
        Returns:
        an object which provides access to the integer specifying the maximum number of tests that may be run in parallel.
      • getTimeoutFactor

        float getTimeoutFactor()
        Get an integer specifying a scale factor to be applied to the standard timeout for the test.
        Returns:
        an integer specifying a scale factor to be applied to the standard timeout for each test.
        See Also:
        Parameters.TimeoutFactorParameters.getTimeoutFactor()
      • getTimeoutFactorParameters

        Parameters.TimeoutFactorParameters getTimeoutFactorParameters()
        Get an object which provides access to the integer specifying a scale factor to be applied to the standard timeout for the test.
        Returns:
        an object which provides access to the integer specifying a scale factor to be applied to the standard timeout for each test.
      • getExcludeListFilter

        TestFilter getExcludeListFilter()
        Get a filter which will filter tests according to the result of getExcludeList(). If the result of getExcludeList is null or an empty exclude list, the result of this method will also be null.
        Returns:
        a filter which will filter tests according to the result of getExcludeList().
        See Also:
        getExcludeList()
      • getKeywordsFilter

        TestFilter getKeywordsFilter()
        Get a filter which will filter tests according to the result of getKeywords(). If the result of getKeywords is null, the result of this method will also be null.
        Returns:
        a filter which will filter tests according to the result of getKeywords().
        See Also:
        getKeywords()
      • getPriorStatusFilter

        TestFilter getPriorStatusFilter()
        Get a filter which will filter tests according to the result of getPriorStatusValus(). If the result of getPriorStatusValues is null, the result of this method will also be null.
        Returns:
        a filter which will filter tests according to the result of getPriorStatusValues().
        See Also:
        getPriorStatusValues()
      • getRelevantTestFilter

        TestFilter getRelevantTestFilter()
        Get a test-suite specific filter which will filter tests according to test-suite-specific criteria, as perhaps determined by a configuration interview. For example, if the platform being tested does not support some optional feature, the tests for that feature could be automatically filtered out. If no such filter is required, null can be returned.
        Returns:
        a test-suite-specific filter, or null if no such filter is required.
      • isValid

        boolean isValid()
        Determine whether all the configuration values are valid. If so, the result will be true; if not, the result will be false, and getErrorMessage will provide details about at least one of the invalid values.
        Returns:
        true if and only if all the configuration values are valid
        See Also:
        getErrorMessage()
      • getErrorMessage

        java.lang.String getErrorMessage()
        If there is an error in any of the configuration values, as indicated by isValid, this method will provide a detail message about one or more of the invalid values. The result is undefined if isValid is true.
        Returns:
        a detail message about one or more invalid values
        See Also:
        isValid()