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:
On the decision level diagram you will see a button with nine dots
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
When you click the gear symbol the rules will be executed and the results will appear to the right.
How to check the results automatically
- add a property to your input data for the expected result. for example
- 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:
Something along these lines will work: