Testing in the Business console
During rule development, you can create and run test suites in change activities or ungoverned branches in a decision service. You can also run test suites in validation activities to test the content of a release before deployment.
- The set of rules that you are testing. The set is identified by the decision operation, which defines a subset of rules within the release or change activity on which the testing is being done (see Identifying a set of rules).
- The scenarios that you are submitting. Each scenario contains all the information that is required to process a transaction. This information can be real or fictitious data. You store this scenario data in a scenario file, which you generate, complete with data, and then upload to Decision Center. You also use this scenario file to store the expected results for each scenario.
- The test suite that you create and run to provide feedback on the performance of a set of rules without changing the rules or the applications on which they act.
Running a test suite compares the results that you expect to the actual results that are obtained from applying rules to your scenarios. The test generates a report that shows the results for each scenario, and the success rate as the percentage of scenarios that generated their expected results.
Scenarios
Scenarios represent real or fictitious use cases that you use to validate the behavior of your rules. Each scenario contains all the information that is required for your rules to run properly.
-
Borrower: Sam Adams
-
Credit Score: 600
-
Yearly Income: 80000
-
Duration: 24 (months)
-
Amount: 100000
-
Yearly Interest Rate: 5 (%)
Test suites
You run test suites to verify that your rules are correctly designed and written. The test suites compare your expected results with the actual results that come from applying your rules against the scenarios that you defined.
You set up the expected results in a separate sheet alongside your Scenarios sheet.
-
Whether the loan is approved.
-
Which message the loan request application generates.
The Expected Results sheet represents these two tests as columns. You specify the expected results for all the scenarios necessary to cover the validation of your rules.
The test suite returns a report that compares your expected results with the actual results of the execution. Each test in a test suite is successful if all the expected results match the actual results.