ActiveVOS Designer User’s Guide

Running a BPEL Unit Test

You can run a b-unit test by using the Run As command from several locations, including right-mouse clicking on a b-unit test or test suite in the Project Explorer and selecting Run As> Bunit.

The BUnit View opens and runs the test. The following examples show a Bunit with a completed test and a failed test.

You can also run one test from a b-unit suite, as described in Creating and Running BPEL Unit Test Suites.

When you run a test the following events occur:

When the test completes, you can click on an event in the BUnit view to go directly to that section of the BUnit test in the BUnit Editor.

In the BUnit view, use the toolbar icons:

Show Failures. Select this to filter the view to show only tests that fail.

Rerun Test. Once you run one test, you can rerun it from the BUnit view.

Rerun All Failures. Rerun failed tests from the BUnit view

History. Remembers the last 15 unit tests run. You can select a test from the list based on the name of the b-unit file.