Workflow and ServiceDesk Community

 View Only

Workflow - Tests 

Jul 14, 2016 01:02 PM

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

Everyone is running tests aren't they?

Test In Production.jpg

We are going to create a simple WebService Project.

Create a new Decision Only.png Decision Project.

Add a new Model 2.png 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.png 

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

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

RightClick Project.png

Give it a Name and choose your Model.

New Test.png

Now fill in the required fields

General

Test - General.png

Data

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

Test - Data.png

The Params are shown from the Parameters in the Model.

Test Start Data.png

Now fill in your condition to check in the End Data

End Data.png

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.png

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

Test - Debugging Form.png

Click Run

Test - Run Tests.png

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

Test - Run Tests - Running Pending.png

Then hopefully you should have them all Pass.

Test - Run Tests - Passed.png

 

Protirus.png

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.