Task 3: Testing and deploying the decision service
In this task, you check Bea's changes and deploy the decision service.
About this task
As Paul, you check Bea's changes to the Miniloan Service decision service. You run a test and a simulation, and then deploy the decision service.
Step 1: Comparing changes to the initial state
In this step, you compare the decision service to a snapshot.
Procedure
-
Log in to the Business console as Paul.
Open the Recent Activities tab.
- Hover over one of the rules, and click main in the rule description to go directly to the main branch of the Miniloan Service decision service.
- Click the Snapshots tab.
-
Click the Initial State snapshot.
You see the original state of the main branch.
-
Click Compare to open the interface for comparing snapshots.
It shows the existing snapshots. Select Initial State and Current State of the Project.
- Click Compare. It shows the repayment and score decision table. Hover over the entry and click the Compare button at the end of the row. The decision table is displayed. You can see what has been changed. Now, close the comparison window.
- Click the version number in the current state column to see the rule. Now, close the rule window.
-
Click Updated to see the updated rules.
You can see the changes to the content and properties.
-
Hover over the row for repayment and score, and click the
Compare button in the row to see the differences between the two versions of
the decision table. You see that 200 is now 300 in the table.
- Close the version comparison.
- Click main in the breadcrumbs to return to the branch.
Step 2: Running a test suite
In this step, you test the behavior of the decision service. The Business console can test sets of rules against usage scenarios in the form of test suites. The tests compare the expected results with the actual results that come from applying rules to your scenarios.
Procedure
- Click the Tests tab. This tab contains the existing test suites, and the reports from running test suites.
- Hover over the Miniloan test suite row, and click the Run this test suite button. A message appears with information about the test suite and progress monitoring.
-
Click OK in the message box. Wait until the status shows a check mark,
and click the name of the report.
The report shows a 100% scenario success rate. The rules ran correctly with the test suite.
- Expand the Rejected loan test, and open the Details dialog for the last test. It shows the tested collection and the items to locate.
- Close the report.
Step 3: Running a simulation
In this step, you run a simulation that uses a database of representative data.
Procedure
- Click main in the breadcrumbs.
-
Click the Simulations tab.
This tab contains subtabs for the different components that are required to build simulations and reports.
- Click the Simulations subtab, which shows the existing simulations.
- Hover over File Simulation, and then click Run. A message opens with information about the simulation and monitoring progress.
-
Click OK in the message. Wait until the status shows a check mark, and
click the name of the report.
The report shows the results of the simulation in a graph that displays the ratio of granted loans by amount.
- Close the report.
Step 4: Deploying the decision service
In this step, you complete the tutorial by deploying the decision service.