Creating a Test Case
Before you start unit testing, you must create a test case. Perform the following procedure to create a test case:
- Procedure
- On the Flows page, click the flow that you want to run a unit test on. The flow design page opens.
- On the flow design page, click Unit Test.
- On a pop-up layover, click Unit Tests to create a test case.
-
Provide Test Name and Description for your test case. Click Create.
You can create more test cases by clicking
beside Test Cases.
Exception Handling: Ensure that your flow has proper exception handling. This can be achieved either by configuring an error branch from the activity that can potentially raise an exception or by defining an error handler for the overall flow.
Assertions on Error: Add one or more assertions using the Assert on Error mode in the flow outputs. For more information, see Creating Assertions for the Error Handler.