Interface TestSetOrGroup

    • Method Detail

      • getGroup

        TestSetGroup getGroup()
                       throws java.rmi.RemoteException
        Get the parent test set group or null if this object resides on the top level (meaning directly below the Project).
        Returns:
        parent test set group or null
        Throws:
        java.rmi.RemoteException - remote communication problem
      • isGroup

        boolean isGroup()
                 throws java.rmi.RemoteException
        Returns true if this is a TestSetGroup, false otherwise.
        Returns:
        true if this is a TestSetGroup, false otherwise
        Throws:
        java.rmi.RemoteException - remote communication problem
      • move

        void move​(TestSetGroup newParent,
                  int index)
           throws ApiException,
                  java.rmi.RemoteException
        Moves this TestSetOrGroup to a new position in the test set tree.
        Parameters:
        newParent - the new parent TestSetGroup or null to move it to top level.
        index - the new position under the new parent.
        Throws:
        ApiException - If the new parent is invalid.
        java.rmi.RemoteException - remote communication problem
      • copy

        ResultAndLogs<TestSetOrGroup> copy​(TestSetOwner targetGroup,
                                           int targetIndex)
                                    throws ApiException,
                                           java.rmi.RemoteException
        Copies this into the given targetGroup that can be from a different Project that is opened in the same TPT instance. If the targetGroup already contains an element with the same name a new one will be generated.
        Parameters:
        targetGroup - The group to copy this into. Can be from another Project.
        targetIndex - The index where the copy will be inserted. Use Integer.MAX_VALUE to append the copy at the end.
        Returns:
        The copy of this and all log messages that occured during copying.
        Throws:
        ApiException - If targetGroup is null or copying failed.
        java.rmi.RemoteException - remote communication problem