Task 2: Customizing column headings
You give meaningful names to column headings.
About this task
In the BOM, the names of the constructor arguments are set by default to arg1,
arg2, arg3, arg4, and arg5. The
column headings in the Excel scenario file template correspond to the BOM object that you want to
test. The required column headings are defined by the constructor arguments.
In this task, you give meaningful names to the constructor arguments so that they reflect the BOM object being tested. Then, you generate the Excel scenario file template to see the results.
Step 1: Modifying the names of the constructor parameters
You modify the names of the constructor parameters.
Procedure
Step 2: Adding a virtual attribute
You check the project again, and decide to add a virtual attribute for an intermediate value.
Procedure
Step 3: Generating the Excel scenario file template
To check that you have successfully renamed the column headings, generate the Excel scenario file template.
Procedure
Step 4: Ignoring a column
All attributes that have a setter in the BOM is shown as optional in the generated Excel file. You remove the zip code column.
Procedure
-
In the BOM editor, click the Class tab to open the
Borrowerclass. - In the Members area, double-click zipCode.
- In the General Information part of the editor, select Ignore for testing and simulation.
- Save the changes by using the save button in the Eclipse toolbar.
-
Generate the Excel scenario file template as shown in Step 3.
The zip code column no longer shows in the generated Excel file.
What to do next
In the next task, you add tests that are displayed in the Expected Results sheet.


