Enum ExecutionMode

  • All Implemented Interfaces:
    Serializable, Comparable<ExecutionMode>

    public enum ExecutionMode
    extends Enum<ExecutionMode>
    How the combinatorial test cases should be executed.

    In particular, this configures when the initial (non-fault characterizing) test case execution should stop.

    • Enum Constant Detail

      • FAIL_FAST

        public static final ExecutionMode FAIL_FAST
        An execution mode which only has the purpose to produce a failure as fast as possible.

        This means that after the first test case fails in the initial testing phase only the fault characterization is run to find the responsible failure-inducing combination. Consider this mode in regression testing in a pipeline when the priority is to know that the system no longer works as fast as possible.

        When using the fail fast, consider using a TestInputPrioritizer to make sure that the combinatorial test fails as fast as possible. Also, make sure that the used FaultCharacterizationAlgorithm can handle incomplete test results, i.e. the test results of a partial test suite where there may be t-way combinations not covered by any test case.

      • EXECUTE_ALL

        public static final ExecutionMode EXECUTE_ALL
        An execution mode which has the purpose of finding all possible failures in a system.

        This means that every test case in the initial testing phase will be executed regardless of the result. In an extreme case, this mode executes all test cases even if every single one of them fails. Consider this mode when executing a combinatorial test to find all failure modes. For example, you can use FAIL_FAST in the pipeline and then run the test in this mode locally to get further information if the given information from the pipeline is not sufficient.

        In this mode, a TestInputPrioritizer does not make much sense as every test case is executed regardless of any failures.

    • Method Detail

      • values

        public static ExecutionMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ExecutionMode c : ExecutionMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExecutionMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null