|
Oracle BPEL Process Manager Client Java API Reference 10g Release 3 (10.1.3.1.0) B28986-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITestService
This service allows remote clients to launch BPEL tests and get the results of the tests.
| Field Summary | |
|---|---|
static java.lang.String |
JSP_MODE_resultsForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_MODE_runForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_MODEForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_NUM_WORKERSForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_PROCESS_NAMEForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_PROCESS_REVISIONForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_RUN_IDForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_RUN_NAMEForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_TEST_SUITEForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
JSP_PARAM_TIMEOUT_IN_SECSForm parameter to use when starting a test run over HTTP. |
static java.lang.String |
LOCAL_SERVICE_NAMEName of the test service. |
static java.lang.String |
SERVICE_NAMEName of the test service. |
| Method Summary | |
|---|---|
ITestRunResultsAccessor |
createTestRunResultsAccessor(IBPELProcessHandle handle)Create a new test run results accessor object. |
java.util.Map |
deployTests(IBPELProcessHandle process, java.io.InputStream is)Deploys test drivers for a particular process. |
byte[] |
generateIntegrationTestDrivers(IInstanceHandle completedInstance) |
java.lang.String |
generateUnitTestDriver(IInstanceHandle completedInstance)Generates a test driver from a completed instance. |
java.lang.String |
getTestRunResults(IBPELProcessHandle handle, java.lang.String runName, java.lang.String runId)Get the results of a past test run. |
java.util.List |
listSuites(IBPELProcessHandle handle)List all of the deployed test suites for a specified process. |
java.util.List |
listSuites(IBPELProcessHandle handle, java.lang.String[] suites)List the deployed test suites for a specified process. |
java.lang.String |
runSuites(IBPELProcessHandle handle, ITestResultsObserver resultsObserver, ITestCallHandler externalCallHandler, java.lang.String runName, java.lang.String runId, java.util.List suites, int numWorkers, long timeout)Runs a subset of tests in one or more suites. |
java.lang.String |
runSuites(IBPELProcessHandle handle, ITestResultsObserver resultsObserver, ITestCallHandler externalCallHandler, java.lang.String runName, java.lang.String runId, java.lang.String[] suites, int numWorkers, long timeout)Runs one or more test suites. |
java.lang.String |
runTest(IBPELProcessHandle handle, ITestCallHandler externalCallHandler, java.lang.String runName, java.lang.String runId, java.lang.String suiteName, java.lang.String testLocation)Runs a single test. |
void |
undeployAllTests(IBPELProcessHandle process)Undeploy all test cases for this process. |
java.util.List |
undeployTests(IBPELProcessHandle process, java.lang.String[][] tests)Undeploy test cases. |
| Methods inherited from interface com.oracle.bpel.client.IService |
|---|
getName |
| Field Detail |
|---|
static final java.lang.String JSP_PARAM_PROCESS_NAME
static final java.lang.String JSP_PARAM_PROCESS_REVISION
static final java.lang.String JSP_PARAM_TEST_SUITE
static final java.lang.String JSP_PARAM_RUN_NAME
static final java.lang.String JSP_PARAM_RUN_ID
static final java.lang.String JSP_PARAM_NUM_WORKERS
static final java.lang.String JSP_PARAM_TIMEOUT_IN_SECS
static final java.lang.String JSP_PARAM_MODE
static final java.lang.String JSP_MODE_run
static final java.lang.String JSP_MODE_results
static final java.lang.String SERVICE_NAME
Locator.lookupService(java.lang.String), Constant Field Valuesstatic final java.lang.String LOCAL_SERVICE_NAME
Locator.lookupService(java.lang.String), Constant Field Values| Method Detail |
|---|
java.lang.String runTest(IBPELProcessHandle handle,
ITestCallHandler externalCallHandler,
java.lang.String runName,
java.lang.String runId,
java.lang.String suiteName,
java.lang.String testLocation)
throws ServerException
handle - The process handle.externalCallHandler - The call handler. This object is invoked when a test requests an external action to take place. One can pass null if the test does not contain any such requests.runName - A descriptor of the run. pass null to use a system generated name.runId - A unique id of the run. pass null to use a system generated GUID.suiteName - The name of the test's suite.testLocation - The name of the test.ServerException
java.lang.String runSuites(IBPELProcessHandle handle,
ITestResultsObserver resultsObserver,
ITestCallHandler externalCallHandler,
java.lang.String runName,
java.lang.String runId,
java.lang.String[] suites,
int numWorkers,
long timeout)
throws ServerException
resultsObserver - An observer object that is notified whenever tests complete. Pass null if intermediate notifications are not required.externalCallHandler - The call handler. This object is invoked when a test requests an external action to take place. One can pass null if the tests does not contain any such requests.runName - A descriptor of the run. pass null to use a system generated name.runId - A unique id of the run. pass null to use a system generated GUID.suites - The name of the test suites to run.numWorkers - The number of workers allocated to run tests. Effectively, this value limits the number of tests that can run concurrently.timeout - The timeout for the test run specified in seconds.ServerException
java.lang.String runSuites(IBPELProcessHandle handle,
ITestResultsObserver resultsObserver,
ITestCallHandler externalCallHandler,
java.lang.String runName,
java.lang.String runId,
java.util.List suites,
int numWorkers,
long timeout)
throws ServerException
resultsObserver - An observer object that is notified whenever tests complete. Pass null if intermediate notifications are not required.externalCallHandler - The call handler. This object is invoked when a test requests an external action to take place. One can pass null if the tests does not contain any such requests.runName - A descriptor of the run. pass null to use a system generated name.runId - A unique id of the run. pass null to use a system generated GUID.suites - A List of TestSuite objects. Only the suite name and test cases need to be set. The description, includes and messages may be left as null.numWorkers - The number of workers allocated to run tests. Effectively, this value limits the number of tests that can run concurrently.timeout - The timeout for the test run specified in seconds.ServerException
java.util.List listSuites(IBPELProcessHandle handle)
throws ServerException
handle - The process.ServerException
java.util.List listSuites(IBPELProcessHandle handle,
java.lang.String[] suites)
throws ServerException
handle - The process.suites - The list of suites to describeServerException
java.lang.String getTestRunResults(IBPELProcessHandle handle,
java.lang.String runName,
java.lang.String runId)
throws ServerException
handle - The process handle.runName - The run name of the past test run.runId - The run id of the past test run.ServerException
ITestRunResultsAccessor createTestRunResultsAccessor(IBPELProcessHandle handle)
throws ServerException
handle - The process handle.ServerException
java.lang.String generateUnitTestDriver(IInstanceHandle completedInstance)
throws ServerException
completedInstance - The completed instance. The audit trail logging level must have been set to "development" when this instance was executed.ServerException
byte[] generateIntegrationTestDrivers(IInstanceHandle completedInstance)
throws ServerException
ServerException
java.util.Map deployTests(IBPELProcessHandle process,
java.io.InputStream is)
throws ServerException
+ suite1 | + includes | | + baseline1.xml | | + baseline2.xml | ... | + messages | | + message1.xml | | + message2.xml | | ... | + test1.xml | + test2.xml | ... + suite2 ...If one suite encounters errors during deployment, this does not prevent other suites without errors from being deployed successfully.
process - The process.is - Stream of compressed (zipped) bytes making up the testsServerException
java.util.List undeployTests(IBPELProcessHandle process,
java.lang.String[][] tests)
throws ServerException
process - The BPEL Process.tests - The test cases. tests[i][0] is the test suite of the ith test case and tests[i][1] is the location (name) of the test case.ServerException - if an error occurs during processing.
void undeployAllTests(IBPELProcessHandle process)
throws ServerException
process - The BPEL Process.ServerException - if an error occurs during processing.
|
Oracle BPEL Process Manager Client Java API Reference 10g Release 3 (10.1.3.1.0) B28986-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||