Unit Test Overview

A unit test is a piece of code used to test pieces of code. Oracle BPM Provides a framework for testing individual BPM Components or an entire Process.

The Oracle BPM unit tests are based on the JUnit unit test framework. See http://www.junit.org for more information.

Oracle BPM provides two types of unit test suites:
Unit Test Type Description
CUnit Test Allows you to create unit tests for individual BPM Objects. New CUnit test suites are created with a default method. You can add other methods as necessary.
PUnit Test Allows you to create a test framework for an entire Process. New PUnit test suites are created with a default, setUp, and tearDown method.

Within Oracle BPM, unit tests behave like other BPM Objects. They can contain Attributes, Groups, Presentations, and Methods.

Example Project

An example project is included which shows usage of PUnit and CUnit test cases. It is located at <ORABPM_HOME>/samples/advanced/BPMUnitTestExample.exp.