Tuesday, November 6, 2012

BPEL Test case creation




Steps for creation of Test Suite and Test Cases

a) Open up the BPEL process project in Oracle Jdeveloper.
b) Expand the Integration Content section in the Application Navigator.
c) Right click on the “Test Suites” subsection and click on “Create a new Test Suite” in the context menu.
d) Give a name to the Test Suite, preferably with the same name as your process suffixed with “TestSuite”.
For instance, CreateCustomer process shall have a test suite named CreateCustomerTestSuite.
e) Once the Test Suite has been created, expand the “Test Suites” subsection and right click on the test suite
name to create a new Test Case, by clicking “Create BPEL Test”.
f) Give a name to the Test case, preferably as the Process Name suffixed by “TestCase<index>”, where
<index> is “1” for the first testcase, “2” for the second, and so on. Leave the checkbox “Add as Baseline
Test” unchecked. Press OK to complete the selection.
g) The Test Case graphical view opens up. The next step would be to emulate the receive activity with a static
input file.
h) To obtain a static input file, use any available input files you may have already saved onto the local file
system, or obtain a fresh one from the audit trail of an existing execution of the BPEL process instance.
i) Double click on the receive activity.
j) Switch to the “Emulate” tab and check the radio button “Emulate Message”.
k) Click on the flashlight to select the input XML file from the local file system.
l) Press “OK” to complete the selection.



Now, the test case is ready for deployment.

a) Right click on the “Test Suites” subsection in the “Applications Navigator” and select “BPEL Test deployer’.
b) Select the test suite and the test case(s) to be deployed, and then make your selection of the deployment
environment.
c) Click on “Deploy” to deploy the test suite.


Executing the Test Case from the BPEL Console

a) Navigate to the BPEL Console and click on the Process.
b) Click on the “Test Suites” tab to view the available test suite and test cases.
c) Check the test suite/test case that you wish to execute and click on the “Execute Tests” button to execute
the test.



No comments:

Post a Comment