Skip navigation links

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

B28986-01


com.oracle.services.bpel.test
Interface ITestRunResultsAccessor


public interface ITestRunResultsAccessor

This interface represents a wrapper object for test results. It facilitates the extraction of key data from the test run results XML.


Method Summary
 TestResult addTestResult(IInstanceHandle ih, org.w3c.dom.Element elem)
          Add a test result.
 TestResult addTestResult(IInstanceHandle ih, java.lang.String xml)
          Add a test result.
 void cleanUp()
          Clean up resources that are maintaining the test run results.
 int getExecutionCount(java.lang.String nodeId)
          Returns the number of tests that executed a given activity.
 java.util.List getNodeIds()
          Get the node id's defined in the process.
 java.util.List getSubProcessSummary()
          Returns summary (aggregate) information about the sub-processes that were launched as tests.
 TestRunSummary getTestRunSummary()
          Returns summary (aggregate) information about the test run.
 void init(org.w3c.dom.Document xml)
          Initialize the object with test results.
 void init(java.lang.String xml)
          Initialize the object with test results.
 void init(java.lang.String runName, java.lang.String runId)
          Initialize the object with a test run name and id.

 

Method Detail

init

void init(java.lang.String runName,
          java.lang.String runId)
          throws ServerException
Initialize the object with a test run name and id. This form is usually used when adding results to the accessor incrementally.
Parameters:
runName - the test run name.
runId - the test run id.
Throws:
ServerException

init

void init(java.lang.String xml)
          throws ServerException
Initialize the object with test results. This form is usually used when dealing with the results of an already completed test run.
Parameters:
xml - The test run results.
Throws:
ServerException

init

void init(org.w3c.dom.Document xml)
          throws ServerException
Initialize the object with test results. This form is usually used when dealing with the results of an already completed test run.
Parameters:
xml - The test run results.
Throws:
ServerException

addTestResult

TestResult addTestResult(IInstanceHandle ih,
                         org.w3c.dom.Element elem)
                         throws ServerException
Add a test result.
Parameters:
ih - The test instance.
elem - The results.
Returns:
An object representation of the results.
Throws:
ServerException

addTestResult

TestResult addTestResult(IInstanceHandle ih,
                         java.lang.String xml)
                         throws ServerException
Add a test result.
Parameters:
ih - The test instance.
xml - The results.
Returns:
An object representation of the results.
Throws:
ServerException

getNodeIds

java.util.List getNodeIds()
                          throws ServerException
Get the node id's defined in the process.
Returns:
the list of node id's.
Throws:
ServerException

getExecutionCount

int getExecutionCount(java.lang.String nodeId)
                      throws ServerException
Returns the number of tests that executed a given activity.
Parameters:
nodeId - the node id of the activity.
Returns:
the number of tests.
Throws:
ServerException

getTestRunSummary

TestRunSummary getTestRunSummary()
                                 throws ServerException
Returns summary (aggregate) information about the test run.
Returns:
a summary of the test run to date.
Throws:
ServerException

getSubProcessSummary

java.util.List getSubProcessSummary()
                                    throws ServerException
Returns summary (aggregate) information about the sub-processes that were launched as tests.
Returns:
a list of TestRunSummary objects (one per sub-process).
Throws:
ServerException

cleanUp

void cleanUp()
             throws ServerException
Clean up resources that are maintaining the test run results. This method should always be called when the test run results are no longer required.
Throws:
ServerException

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.