¤ÈäîPerforming Test Runs

See Also

A BPEL process can have many running instances. When the BPEL Service Engine runtime receives a message, it uses correlation to route the incoming message to the appropriate instance of the process. If an instance does not exist yet, a new instance is created.

To test-run a deployed business process, you need to configure test cases to act as remote partner services sending SOAP messages to the BPEL Service Engine runtime. When the BPEL Service Engine runtime receives such a message, it creates an instance of the BPEL process and starts executing the instance.

Before you can test-run a process, make sure that you have done the following:

To test-run a process, do the following:

To create a test case:

  1. In the Projects window, expand the Composite Application project's node.
  2. Right-click the Test node and click Add Test Case.
    The New Test Case wizard appears.
  3. Enter the name for the test case and click Next.
  4. In the list of WSDL files, select the process's WSDL file and click Next.
  5. In the list of operations available in the selected WSDL file, select the operation you want to test and click Finish.
    The new test case node appears under the Test node in the Projects window.

A test case node has the following two messages:

To run one test case:

  1. In the Projects window, expand Composite Application project > Test.
  2. Right-click the test case node you want to run and choose Test.
    Watch the results in the JUnit Test Results window.

To run multiple test cases against one process:

  1. In the Projects window, right-click the Composite Application project and choose Test Project (Alt-F6).
    Watch the results in the JUnit Test Results window.

For failed tests, you can see the reason for a test failure and the name of file containing an actual response from your BPEL application (Actual_date.xml). To navigate to the actual response message, open the Files window, expand the project folder and the Test node, and double-click the Actual_date.xml file with the actual response.

See Also
Starting and Stopping a Server
Building BPEL Module Projects
Adding JBI Modules to Composite Application Projects
Deploying Composite Application Projects

Legal Notices