Fuego.Test : PUnitSuite

The PUnitSuite component defines a super class for all PUnit (Process Unit Test) components.

All PUnit components inherit from PUnitSuite. This component is not meant to be used directly but as a base for PUnit test cases.

PUnitSuite provides the following set of methods for writing process-level test cases:
  • createSession():To initialize the underlying process session.
  • assert*() and fail*() methods: To compare (and validate) expected vs. actual values on your test cases.
  • wait*() methods: To wait for a specific process instance before continuing execution of the test case.

Use attribute session (of type Fuego.Test.ProcessServiceSession) to exercise the Process under test. This object provides methods to perform several operations on the process, including: creating new process instances, executing activities, aborting instances, adding notes, sending notifications, (un)grabbing instances and (un)selecting instances.

Refer to Oracle BPM Studio Help for details on how to create unit tests and PUnit test cases.

Related reference
Fuego.Test : CUnitSuite
Fuego.Test : ProcessServiceSession
Fuego.Test : TestAssertionFailureException