Quantcast
Channel: Symantec Connect - Endpoint Management - Articles
Viewing all articles
Browse latest Browse all 706

Workflow - Tests

$
0
0

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

InputParam
OutputSuccess

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


Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>