In this Article I will explain how to add Tests to your Workflow projects.
Everyone is running tests aren't they?
We are going to create a simple WebService Project.
Create a new Decision Project.
Add a new 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"
Right-Click on the Model Test and "Set Model As Invocation Target".
Next Right-Click on the Project and select "New Test".
Give it a Name and choose your Model.
Now fill in the required fields
General
Data
Click on the ellipse and fill in the param(s):
The Params are shown from the Parameters in the Model.
Now fill in your condition to check in the 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.
There will be a new line in under the usual options - "Test"
Click Run
They will then start "Running" or be "Pending".
Then hopefully you should have them all Pass.