Running a Test Case

After creating a test case, it is ready to run.

    Procedure
  1. Go to the activity bar and click the Testing action item .
  2. Ensure the .flogotest file is open.
  3. Click the Run Test icon () next to the test case.

After the test case run is complete, the result is generated.

The test results are displayed on the terminal with the total number of test cases, including the number of passed and failed test cases. It also displays the total number of assertions and the number of passed and failed assertions on activities in the flow, activities in the error handler, and in the flow output. The result for assertions on the flow output is displayed only if the assertion is added to the flow output.

Note: When running a binary, the test suites or test cases are run by default irrespective of whether they are hidden or unhidden.

Tip:
  • Do not close the result terminal to modify your test case. You can minimize the window, make the changes, and retest the case.
  • You can edit, delete, or copy a test case or a test assertion at any point.
  • For an active unit test case, if you change app-level schemas or app properties, close the session and rerun the test case.