Workflow - Tests

Published on Thursday, 14 July 2016

In this Article I will explain how to add Tests to your Workflow projects.

Everyone is running tests aren't they?

Test In Production

We are going to create a simple WebService Project.

Create a new Decision Only Decision Project.

Add a new Model 2 Model called Test.

Set an Input and Output

Input Param
Output Success

Add a simple Workflow that tests for a given param word. In this case my Name - "Alex"

POC_DataService_DEC

Right-Click on the Model Test and "Set Model As Invocation Target".

Next Right-Click on the Project and select "New Test".

RightClick Project

Give it a Name and choose your Model.

New Test

Now fill in the required fields

General

Test - General

Data

Click on the ellipse and fill in the param(s):

Test - Data

The Params are shown from the Parameters in the Model.

Test Start Data

Now fill in your condition to check in the End Data

End Data

Repeat for as many tests as you need, I just need the opposite so failed via a param that isn't "Alex".

Click Debug. Debug

There will be a new line in under the usual options - "Test"

Test - Debugging Form

Click Run

Test - Run Tests

They will then start "Running" or be "Pending".

Test - Run Tests - Running Pending

Then hopefully you should have them all Pass.

Test - Run Tests - Passed

Protirus