Interface Scenario

    • Method Detail

      • getLinkedRequirements

        RemoteCollection<Requirement> getLinkedRequirements()
                                                     throws java.rmi.RemoteException
        Get all requirements currently linked to this scenario. The content of the collection is only a snapshot of the current state but removing items from this list will remove the link in TPT anyway even if the link was created after receiving this collection.
        Returns:
        The currently linked requirements.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getTestDataDirectory

        java.io.File getTestDataDirectory​(ExecutionConfigurationItem execConfigItem)
                                   throws java.rmi.RemoteException,
                                          ApiException
        Returns the test data directory of scenario for a given execution configuration item. Since ${tpt.date} and ${tpt.time} placeholders are only valid during runtime they cannot be used in the test data path and an ApiException will be thrown.
        Parameters:
        execConfigItem - The execution configuration item to calculate the test data directory.
        Returns:
        The test data directory as an absolute file
        Throws:
        ApiException - If the execution configuration does not belong to the model of the scenario, the execution configuration has no platform configuration set or the test data path of the execution configuration has unresolvable placeholder variables.
        java.rmi.RemoteException - remote communication problem
      • getCompileError

        java.lang.String getCompileError()
                                  throws java.rmi.RemoteException,
                                         ApiException
        Returns null if scenario can be compiled without errors, the compile error message otherwise.
        Returns:
        The compile error message or null
        Throws:
        ApiException - If scenario is not part of a project anymore or compiler is inactive for the project.
        java.rmi.RemoteException - remote communication problem
      • getCurrentStatus

        Status getCurrentStatus()
                         throws java.rmi.RemoteException
        Returns the current review status of the scenario.
        Returns:
        The current status or null if status is "new".
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getStatusHistory

        RemoteList<Status> getStatusHistory()
                                     throws java.rmi.RemoteException
        Returns a list of all status history entries of the scenario, the newest comes first.
        Returns:
        A list of all Statuses.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • checkForNewRevision

        boolean checkForNewRevision()
                             throws java.rmi.RemoteException
        Returns true if this scenario has been modified since the last status history entry or if its status is "new" and marks it red in 'Status' view. Otherwise, returns false.
        Returns:
        • true if it is modified or new
        • false if it is up-to-date
        Throws:
        java.rmi.RemoteException - remote communication problem
      • isStatusOutdated

        boolean isStatusOutdated()
                          throws java.rmi.RemoteException
        Returns true if this scenario is marked as "modified"(=outdated) or if its status is "new" (marked red in 'Status' view). Otherwise, returns false.
        Returns:
        • true if it is outdated or new
        • false if it is up-to-date
        Throws:
        java.rmi.RemoteException - remote communication problem