Running Activity Assertions

To run activity assertions in TIBCO BusinessWorks™ Container Edition, follow these steps:

Procedure

  1. Right-click on the activity from the subprocess and select Add Test > Add Assertion.
    This will add the Test tab to the activity.
  2. On the Tests tab, navigate to the Assertion Mode drop down.

The Assertion Mode drop down has two modes:

  • Primitive: In this mode, only the primitive types of elements are tested.
  • Activity: In this mode, the complete activity outputs are tested.

  1. Select the Activity option from Assertion Mode drop down. The complete activity output schema gets loaded with editable value field Under Assert Type node. Map the activity variable from datasource section (In Image you can see it's Mapper) to activityTestInput field.
  2. Provide the gold input to all the elements of activity schema which is under the assert node.
    Note: You don't have to save the process after adding test inputs and assertions. Also If the schema having the fields with data type decimal, double, float then add the value in the decimal format, for example1.2 or 4.3234.