Interface ExecutionStatus

  • All Superinterfaces:
    java.rmi.Remote, TptRemote

    public interface ExecutionStatus
    extends TptRemote
    This object provides an interface to the current state of the test execution which is the information as provided by the "Build Progress" Dialog.
    Author:
    Copyright (c) 2014-2020 Piketec GmbH - MIT License (MIT) - All rights reserved
    • Method Detail

      • isPending

        boolean isPending()
                   throws java.rmi.RemoteException
        Returns:
        Indicates whether the test execution is interrupted by user interaction, paused or has not started yet.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • isRunning

        boolean isRunning()
                   throws java.rmi.RemoteException
        Returns:
        Indicates whether the test execution is currently running (and not queued, interrupted or finished).
        Throws:
        java.rmi.RemoteException - remote communication problem
      • cancel

        void cancel()
             throws java.rmi.RemoteException
        Cancels the current test execution.

        The outcome of this operation depends on the platform. In the most cases, the execution of the current test case is finished.

        Throws:
        java.rmi.RemoteException - remote communication problem
      • getAllTestCases

        java.util.Collection<TestCaseExecutionStatus> getAllTestCases()
                                                               throws java.rmi.RemoteException
        Returns a list containing the execution state (TestCaseExecutionStatus) for each test case that are part of this test execution.
        Returns:
        A list containing the states of the executed test cases or an empty list, if no test execution have been started so far.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getNumberOfAllTestCases

        int getNumberOfAllTestCases()
                             throws java.rmi.RemoteException
        Returns the number of all test cases of the current test execution. Test cases that are part of the test set in more that one ExecutionConfigurationItem (e.g. in a Back2Back test scenario), will be counted for each ExecutionConfigurationItem separately.
        Returns:
        Number of total test cases executed
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getNumberOfPendingTestCases

        int getNumberOfPendingTestCases()
                                 throws java.rmi.RemoteException
        Returns the number of test cases that are part of the current test execution that are currently not finished (with state TestCaseExecutionStatus.TestCaseStatus.Pending).

        Test cases that are part of the test set in more that one ExecutionConfigurationItem (e.g. in a Back2Back test scenario), will be counted for each ExecutionConfigurationItem separately.

        Returns:
        The number of currently not executed test cases.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getCurrentTestCase

        Scenario getCurrentTestCase()
                             throws java.rmi.RemoteException
        Return the test case that is currently running (with the state TestCaseExecutionStatus.TestCaseStatus.Running).
        Returns:
        The currently executed test case or null if no test case is running.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getTotalExecutionStatus

        TestCaseExecutionStatus.TestCaseStatus getTotalExecutionStatus()
                                                                throws ApiException,
                                                                       java.rmi.RemoteException
        Returns the current (cumulative) execution state of the overall test execution.

        The cumulative execution state of all test cases is derived from the following priority (from high to low): ResultError, ResultFailed, ResultUnknown, ResultSuccess, Running, Pending

        The cumulative state is derived from at highest priority set for at least one of all test cases.
        Returns:
        The test case execution state with the highest priority.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - If there are no test in the executed test set.
      • getExecutionLog

        java.util.List<java.lang.String> getExecutionLog()
                                                  throws java.rmi.RemoteException
        Returns:
        Returns a list of log entries as String
        Throws:
        java.rmi.RemoteException - remote communication problem