Interface TestSet

    • Method Detail

      • getSelectedTestCasesOrGroups

        RemoteCollection<ScenarioOrGroup> getSelectedTestCasesOrGroups()
                                                                throws java.rmi.RemoteException
        Get the selected test cases and test case groups without taking the test set condition into account. If a group is contained in the set all descendent scenarios in this group are contained in the set as well. Please note that you cannot remove items from this collection if test set isLocked()
        Returns:
        The raw selected test cases and test case groups.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        isLocked(), getCondition(), isRestrictedToLinkedTestCases()
      • isLocked

        boolean isLocked()
                  throws java.rmi.RemoteException
        A test set can be locked to avoid accidental changes of the set of selected test cases or test case groups. No test cases can be added to or removed from a locked test set.
        Returns:
        false if the scenario selection can be changed true otherwise
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setLocked

        void setLocked​(boolean locked)
                throws java.rmi.RemoteException
        A test set can be locked to avoid accidental changes of the set of selected test cases or test case groups. No test cases can be added to or removed from a locked test set.
        Parameters:
        locked - false to make the scenario selection editable true otherwise
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getCondition

        java.lang.String getCondition()
                               throws java.rmi.RemoteException
        Get the test set condition. If the condition is enabled only test cases that fulfill the condition are considered as part of the test set. Selected test cases that do not fulfill the condition will be suppressed.
        Returns:
        the test set condition
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        isConditionEnabled()
      • setCondition

        void setCondition​(java.lang.String condition)
                   throws java.rmi.RemoteException
        Get the test set condition. If the condition is enabled only test cases that fulfill the condition are considered as part of the test set. Selected test cases that do not fulfill the condition will be suppressed.
        Parameters:
        condition - The condition to set. null will be corrected to an empty string.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        setConditionEnabled(boolean)
      • isConditionEnabled

        boolean isConditionEnabled()
                            throws java.rmi.RemoteException
        Returns whether the test set condition is enabled. The condition will only be evaluated and will only suppress selected test cases iff it is enabled.
        Returns:
        true if the test case condition will suppress selected test cases false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        getCondition()
      • setConditionEnabled

        void setConditionEnabled​(boolean enabled)
                          throws java.rmi.RemoteException
        Set if the test set condition is enabled. The condition will only be evaluated and will only suppress selected test cases iff it is enabled.
        Parameters:
        enabled - true if the test case condition shall suppress selected test cases false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        setCondition(String)
      • getRequirementSet

        RequirementSet getRequirementSet()
                                  throws java.rmi.RemoteException
        Get the requirement set. The requirement set can be used to restrict the selected test cases to test cases that are linked to a requirement of the given requirement set.
        Returns:
        The selected requirement set or null for the implicit requirement set containing all requirements.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        isRestrictedToLinkedTestCases()
      • setRequirementSet

        void setRequirementSet​(RequirementSet requirementSet)
                        throws java.rmi.RemoteException
        Set the requirement set. The requirement set can be used to restrict the selected test cases to test cases that are linked to a requirement of the given requirement set.
        Parameters:
        requirementSet - The requirement set to set or null for the implicit requirement set containing all requirements.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        setRestrictedToLinkedTestCases(boolean)
      • isRestrictedToLinkedTestCases

        boolean isRestrictedToLinkedTestCases()
                                       throws java.rmi.RemoteException
        Returns true iff only test cases linked to a requirement that is part of the selected requirement set are considered as part of the test set. Selected test cases that are not linked to such a requirement are suppressed.
        Returns:
        true if test cases are suppressed based on the selected requirement set false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        getRequirementSet()
      • setRestrictedToLinkedTestCases

        void setRestrictedToLinkedTestCases​(boolean restrict)
                                     throws java.rmi.RemoteException
        Set iff only test cases linked to a requirement that is part of the selected requirement set are considered as part of the test set. Selected test cases that are not linked to such a requirement will be suppressed.
        Parameters:
        restrict - true if test cases shall be suppressed based on the selected requirement set false otherwise.
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        setRequirementSet(RequirementSet)