Validating a Test Case

Before you run a test case, you can validate the test cases when you land on the unit testing mode.

If there are any errors in mapping expressions, an error sign pops up on the activity level assertions, or on the mock data. If there are any errors in the mapping expressions, the error sign also pops up on the flow inputs and flow outputs.

To validate a test case:

    Procedure
  1. Click (Open Unit Test) in the Flogo app editor mode at the upper-right corner to switch to the unit testing mode and see if there are any validation errors. Alternatively, in the Explorer View, click <app name>.flogotest.
  2. An error sign is displayed on the assertion level of the activity, flow input, and flow output. An error sign is also displayed on the test case level of the particular activity that has the errors.
  3. Fix the validation errors.