Executing BizVR Decision Models in Test Mode (RGB) - Gnorion/BizVR GitHub Wiki

Executing BizVR Decision Models in Test Mode

BizVR Decision Modeler allows you to test your rules. Suppose you have this decision table:

image

On the decision level diagram you will see a button with nine dots

image

This will take you to the testing environment.

On this screen you can enter the JSON that represents your test data (incidentally you don't have to create that test data by hand - you can write another decision table that will automatically generate all combinations of the possible inputs - see Automated Test Data Generation

image

When you click the gear symbol the rules will be executed and the results will appear to the right.

image

How to check the results automatically

  1. add a property to your input data for the expected result. for example

image

  1. Add a rule to your decision table to compare the actual result with the expected result and if they agree mark the test as PASS. When you run the rules you will see something like this:

image

Something along these lines will work:

image