Sunday, August 9, 2009

Building Test Suites in a BPEL Process

Test Suites and Test Cases are used for Automated Unit Testing of a BPEL Process whenever there is any modification in the process or the Work flow activity. They operate on the invoke activities falling in between a flow of a test case (The transition or flow which we are testing).
Below are some steps for creating Manual and Automated Test Suites/Cases using JDeveloper as an IDE for BPEL Process


Steps for Creating Test Suite: -

  1. Got to BPEL Process in JDeveloper.
  2. Right Click on Test Suites, and Click "Create Test Suite"
  3. Enter Name and Click OK

Steps for Creating Test Case: -

Automated Test Case: -

  1. Right click on the above created Test Suite and the Create BPEL Test Case
  2. Go To BPEL Console, and then to the instance of the tested BPEL Process
  3. Click "Test", and then get the Tested XML. Save it as baseline XML in "include" folder of Created Test Suite folder in Physical Location
  4. Now, go to created BPEL Test Case and Click on the icon for import baseline XML
  5. Now, Add the above saved xml (step-3)
  6. Right Click on the last Invoke/Reply activity and Add Assertion to the Invoke activity, so as to get the status of success and failure of the activity.
  7. Save the Test Case and Deploy it to the Server.
Manual Test Cases: -

  1. Right click on the above created Test Suite and the Create BPEL Test Case
  2. Go To BPEL Console, and then to the instance of the tested BPEL Process
  3. Get the Output of all the invoke activities occurring in the flow and save it as ".xml" to the message folder of physical location of BPEL Test Case.
  4. Repeat Step#3 for the Receive activity of the tested instance of BPEL Process (Save input message of Recieve activity)
  5. Now, go to created BPEL Test Case and right click on the recieve activity to enter the message manually and select the saved message.
  6. Now, Repeat Step-5 for all the invoke activities occurring in the flow
  7. Right Click on the last Invoke/Reply activity and Add Assertion to the Invoke activity, so as to get the status of success and failure of the activity.
  8. Save the Test Case and Deploy it to the Server
The above steps will create the test cases, and we can execute these by going to the BPEL Process in BPEL Console and the clicking on Test Suite.

B2B Features with OIC

During last couple of months various new features are getting introduced in Oracle Integration Cloud, out of those there is a new feature f...