Describes how to import and run a completed version of
the tutorial.
Important: If you have
already imported the loanvalidation-xom and loanvalidation-rules projects
into your workspace, delete them or use a new workspace.
When you run the completed tutorial, you generate
a customized Excel scenario file template.
To import the answer project and generate
an Excel scenario file template:
- Import the answer project:
- Open the Samples Console in the en_US (American English)
locale (see Opening the Samples Console).
- In the Samples and Tutorials view, navigate to
Rule Designer
> Tutorials > Configuring
the BOM for Excel testing > answer,
and then click Import projects.
The
imported projects are displayed in the Rule Explorer:
- The Java project loanvalidation-xom defines
an execution object model (XOM) with new constructors and classes.
- The rule project loanvalidation-rules defines
the business object model (BOM) with the constructors and classes
to generate a customized Excel scenario file.
- Generate the Excel scenario file template:
- In the Rule Explorer, right-click the loanvalidation-rules project
and then click .
The Generate Excel
Scenario File Template wizard opens.
- Make sure that the selected rule project is loanvalidation-rules and
then click Next.
- Select your version of Excel, make sure Default
Excel Format is selected, and then click Next.
- On the Expected Results page, expand the
loan report, select approved and first
message to include these columns in the Expected Results
sheet, and then click Next.
- Click Finish.
By default, the Excel scenario file template
is generated in the loanvalidation-rules project.
Note:
If the Excel scenario file template does
not appear in the project, right-click the project and click Refresh.
- In the Rule Explorer, double-click testsuite.xls to
open it and then check the content:
- The column headings have meaningful names and are easily identified:
- The Scenarios sheet contains columns to
enter data on the borrower's property, including the property
type column, which is edited using domain values selectable
from a list:
- The Expected Results sheet contains a column
to test whether the loan is approved, and a column to test the first
message displayed when testing the rules:
- Close testsuite.xls.