Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


com.oracle.bpel.client
Interface ITestCaseInfo

All Superinterfaces:
IInstanceConstants

public interface ITestCaseInfo
extends IInstanceConstants

Field Summary
static java.lang.String STATUS_failed
          "Failed" test case status.
static java.lang.String STATUS_passed
          "Passed" test case status.
static java.lang.String STATUS_running
          "Running" test case status.

 

Fields inherited from interface com.oracle.bpel.client.IInstanceConstants
PRIORITY_NORMAL, STATE_CLOSED_ABORTED, STATE_CLOSED_CANCELLED, STATE_CLOSED_COMPLETED, STATE_CLOSED_FAULTED, STATE_CLOSED_PENDING_CANCEL, STATE_CLOSED_STALE, STATE_INITIATED, STATE_OPEN_FAULTED, STATE_OPEN_RUNNING, STATE_OPEN_SUSPENDED

 

Method Summary
 boolean complete()
          Retrieves the completion status of the test case.
 java.lang.String getResults()
          Retrieves the test results.
 java.lang.String getStatus()
          Retrieves the status of the test case.
 java.lang.String getSuiteName()
          Retrieves the suite name of the test case.
 IInstanceHandle getTestInstance()
          Retrieves the test instance.
 java.lang.String getTestLocation()
          Retrieves the location of the test case relative to the test suite.
 java.lang.String getTestRunId()
          Retrieves the test run id.
 java.lang.String getTestRunName()
          Retrieves the test run name.
 boolean passed()
          Retrieves the outcome of the test case.

 

Field Detail

STATUS_passed

static final java.lang.String STATUS_passed
"Passed" test case status.
See Also:
getStatus(), Constant Field Values

STATUS_failed

static final java.lang.String STATUS_failed
"Failed" test case status.
See Also:
getStatus(), Constant Field Values

STATUS_running

static final java.lang.String STATUS_running
"Running" test case status.
See Also:
getStatus(), Constant Field Values

Method Detail

getSuiteName

java.lang.String getSuiteName()
                              throws ServerException
Retrieves the suite name of the test case. Test suites are logical groupings of test cases.
Returns:
the name of the test suite
Throws:
ServerException - if there is a problem fetching the information

getTestLocation

java.lang.String getTestLocation()
                                 throws ServerException
Retrieves the location of the test case relative to the test suite. Unless the suite has sub-directories, the return value is the file name of the test driver file.
Returns:
the name of the test driver file.
Throws:
ServerException - if there is a problem fetching the information

getTestRunId

java.lang.String getTestRunId()
                              throws ServerException
Retrieves the test run id. The test run id is an internally assigned identifier assigned to the test case when it runs. A test run represents the execution of one or more test suites, which themselves contain one or more test cases. Thus if the same suite is ran twice, the test cases in each run will have different identifiers.
Returns:
the test run identifier.
Throws:
ServerException - if there is a problem fetching the information

getTestRunName

java.lang.String getTestRunName()
                                throws ServerException
Retrieves the test run name. The test run name is a user provided value that describes the execution of one or more test suites. An example might be "Short Regression".
Returns:
the test run name.
Throws:
ServerException - if there is a problem fetching the information

getResults

java.lang.String getResults()
                            throws ServerException
Retrieves the test results. The test results contain information about the test case, such as assertions that were executed, activities that where executed, etc.
Returns:
a string representation of the XML test results document.
Throws:
ServerException - if there is a problem fetching the information

passed

boolean passed()
               throws ServerException
Retrieves the outcome of the test case. This convenience method is the equivalent of doing getStatus().equals( STATUS_passed )
Returns:
true if the test (and any sub-process tests) passed false if the test (or any sub-process tests) failed or has not completed.
Throws:
ServerException - if there is a problem fetching the information

complete

boolean complete()
                 throws ServerException
Retrieves the completion status of the test case. This convenience method is the equivalent of doing getStatus().equals( [STATUS_passed | STATUS_failed] )
Returns:
true if the test is complete false if the test has not yet completed.
Throws:
ServerException - if there is a problem fetching the information

getStatus

java.lang.String getStatus()
                           throws ServerException
Retrieves the status of the test case. This can be
Returns:
true if the test (and any sub-process tests) passed false if the test (or any sub-process tests) failed.
Throws:
ServerException - if there is a problem fetching the information

getTestInstance

IInstanceHandle getTestInstance()
                                throws ServerException
Retrieves the test instance. Each test case is tied to one particular BPEL process instance.
Returns:
the test instance.
Throws:
ServerException - if there is a problem fetching the information

Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


Copyright © 2006, Oracle. All rights reserved.