Running Activity Assertions

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

    Procedure
  1. Right-click on the activity from the process or subprocess and select Add Test > Add Assertion.
    It adds the Test tab to the activity.
  2. On the Tests tab, navigate to the Assertion Mode dropdown.
  3. The Assertion Mode dropdown 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.

  4. Select the Activity option from the Assertion Mode dropdown. The complete activity output schema gets loaded with an editable value field under the Assert Type node. Map the activity variable from the datasource section (in Image you can see it is Mapper) to activityTestInput field.

  5. Provide the gold input to all the elements of an activity schema that is under the assert node.

    Note: You do not 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 example, 1.2 or 4.3234.