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: -
Steps for Creating Test Case: -
Automated Test Case: -
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: -
- Got to BPEL Process in JDeveloper.
- Right Click on Test Suites, and Click "Create Test Suite"
- Enter Name and Click OK
Steps for Creating Test Case: -
Automated Test Case: -
- Right click on the above created Test Suite and the Create BPEL Test Case
- Go To BPEL Console, and then to the instance of the tested BPEL Process
- Click "Test", and then get the Tested XML. Save it as baseline XML in "include" folder of Created Test Suite folder in Physical Location
- Now, go to created BPEL Test Case and Click on the icon for import baseline XML
- Now, Add the above saved xml (step-3)
- 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.
- Save the Test Case and Deploy it to the Server.
- Right click on the above created Test Suite and the Create BPEL Test Case
- Go To BPEL Console, and then to the instance of the tested BPEL Process
- 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.
- Repeat Step#3 for the Receive activity of the tested instance of BPEL Process (Save input message of Recieve activity)
- Now, go to created BPEL Test Case and right click on the recieve activity to enter the message manually and select the saved message.
- Now, Repeat Step-5 for all the invoke activities occurring in the flow
- 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.
- Save the Test Case and Deploy it to the Server