Open a B-unit file in the B-unit editor, and select
from the Outline view. To add an extension, right-mouse click on BPEL Unit.
Extensions specify context information required to run a B-unit that are typically defined in a process deployment description. Currently, extensions specify Logical People Groups that are WS-HT Extensions, and can be used within People activities.
You can define the value for a Logical People Group exactly as you define it in the People tab of the Process Deployment Descriptor Editor. For details about static, dynamic and People Query values.
Extension Activities refer to People activities. You can assert what goes into a People activity and also to specify a response from the People activity if it includes a task (and not a notification).
You can define a People activity for a B-unit test as follows:
Select or add an Extension Activity (a People activity). If this activity is within a loop (for example, a For Each), you can specify a Count for the expected number of times to execute the activity.
Add at least one iteration that is the Default iteration. This is the default for how each iteration should run.
For each iteration, add the Response type that is the outcome of a task:
Specify the Output data returned from the task. The data can be Imported or created Inline. By default, the data is set to be imported. You can set a preference for inline, if desired.
If the data is imported, and if desired, you can add your own XSL files to transform the XML data returned from the task. This allows you to reuse the commonality within the data for different iterations while changing only a few elements of the data. See
Tips on Using Parameterized XSL for Input and Assert Data.
If desired, specify the context data; that is, the names of task initiator, actual task owner, and other assignments for the task.
. Select a Fault to return.
. The task reached its expiration date, if the expiration is set.
. The task was skipped, if the Skippable option is selected in the task.
. Specify a Label that is documentation for this Assert, message part and query for the assert, and a pattern to match on. An example might be to match on data returned from one of the B4P custom functions.
s. Specify the data that should match the data returned.
. Asserts the task details (for example, subject, presentation, and escalations).