Testing a JBI Project
See Also
You can enhance a JBI deployment project by adding one or more test cases.
Creating and Running Test Cases
In order to obtain test results you must do the following:
- Add a test case and bind it to a BPEL operation
- Set the test properties
- Customize test input
- Run the Tester
- All steps in this section assume the following:
- You have already created a BPEL, IEP, SQL, or XSLT Module project containing
a WSDL file that codes an operation you want to test.
- You have successfully built your BPEL, IEP, SQL, or XSLT Module project.
- You have added your BPEL, IEP, SQL, or XSLT Module project to a Composite
Application project as a JBI Module.
Looking at Test Case Results
- The first run correctly reports that it failed: The output produced does
not match the (empty) Output.xml file, and the file's null content
is replaced with the output of the first run.
- If you run the test again without changing the input,
second and subsequent runs report success,
since the output matches the contents of Output.xml.
- If you change the value in the Input.xml and re-run the test, then:
- If the feature-status property is set to progress,
then the test indicates success even though a mismatch occurred.
- If the feature-status property is set to done,
then the test indicates failure.
- If you right-click myTestcase1 and click the Diff pop-up menu item,
the window displays the difference between the latest output
and the contents of Output.xml.
To browse the results of past tests, you can choose from the drop-down list of
Actual_yymmddhhmmss.xml files, and then click the Refresh button.
- See Also
- Starting and Stopping a Server
- Building BPEL Module Projects
- Building IEP Module Projects
- Building SQL Module Projects
- Building XSLT Module Projects
- Adding JBI Modules to Composite Application Projects
- Deploying Composite Application Projects
Legal Notices