Class InputParameterModel


  • public final class InputParameterModel
    extends Object
    An representation of a input parameter testModel for combinatorial testing. Consists of a testing strength, readable name for identification, parameter, and exclusion and error constraints. This testModel defines all important aspects of one combinatorial test.
    • Method Detail

      • getPositiveTestingStrength

        public int getPositiveTestingStrength()
        Returns:
        the positive testing strength
      • getNegativeTestingStrength

        public int getNegativeTestingStrength()
        Returns:
        the negative testing strength
      • getName

        public String getName()
        Returns:
        the descriptive name of the testModel
      • getParameters

        public List<Parameter> getParameters()
        Returns:
        a copy of the list of all parameters of this testModel
      • getExclusionConstraints

        public List<Constraint> getExclusionConstraints()
        Returns:
        a copy of the list of all exclusion constraints. Test inputs may never violate those constraints as they define combinations which are not possible testable (like testing safari on windows is not possible)
      • getErrorConstraints

        public List<Constraint> getErrorConstraints()
        Returns:
        a copy of the list of all error constraints. Test inputs may violate these constraints but they define inputs on which the system under test should react in a destructive way like raising exception (like trying to parse "asfd" as a number)
      • getPositiveSeeds

        public List<Seed> getPositiveSeeds()
        Returns:
        a copy of the list of all (partial) seed test cases. A test suite for this model should always include the seed test cases at least once
      • getNegativeSeeds

        public Map<String,​List<Seed>> getNegativeSeeds()
        Returns:
        a copy of the map of error constraint names to all (partial) seed tests cases for that constraint. A test suite for this model must always include the seed test cases at least once
      • getPositiveMixedStrengthGroups

        public List<StrengthGroup> getPositiveMixedStrengthGroups()
        Returns:
        a list of all parameter strength groups which must be included in the final positive combinatorial test suite
      • size

        public int size()
        Returns:
        the number of parameters
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object