Professional Documents
Culture Documents
v
vi
1 Introduction
This document comprises test cases, procedures, and results (Reference DO-330 Sections 10.3.3
and 10.3.4) for the following capability of the Simulink® Code Inspector™ verification tool:
This document is intended for use in the DO-330 tool qualification process for TQL-4 tools.
Requirements-based test cases and procedures have been developed from the “Code Inspector
Report Operational Requirements” section in the following document:
To access the tool operational requirements document, on the MATLAB® command line, type
qualkitdo to open the Artifacts Explorer. The document is in Simulink Code Inspector >
r2015a.
The test cases exercise the code inspection report capability, and reside in the Simulink® test
models and corresponding C code files identified in “Code Inspection Report”.
The test procedure applies each code inspection report capability to a subset of the preceding test
cases, and resides in a MATLAB file and corresponding report generator file identified in “Code
Inspection Report”.
The test cases and test procedures, which test the code inspection report capability, comprise the
Tool Qualification Data (Reference DO-330 Sections 10.3.3 and 10.3.4).
Review the test cases and procedures for applicability to the project under consideration.
Configure the test cases and procedures in a configuration management system.
2-2
3 Traceability Between Operational
Requirements and Test Cases
and Procedures
3.1 Code Inspection Report
The test cases and procedures cover the Tool Operational Requirements for the Simulink® Code
Inspector™ code inspection report, as shown in the traceability matrix at:
matlabroot/toolbox/qualkits/do/slci/r2015a/qualkitdoSlciRunTests
.xlsx
3-2
4 Executing Test Cases and
Procedures
The applicant will execute the test cases and procedures for the Simulink® Code Inspector™
code inspection report capability in the installed environment.
Note:
Before you execute the MATLAB file launching the test procedure, start a new MATLAB®
session.
Before you execute the test procedure, set the Java™ heap size for your MATLAB session
to at least 512 MB. To check the Java heap size, open the MATLAB Preferences dialog
box and select General > Java Heap Memory. If the Java Heap Size value is less than
512 MB, change it to 512 MB, click OK, and restart MATLAB. (If the maximum available
heap size value is less than 512 MB, select the maximum value.) This may help you avoid
java.lang.OutOfMemoryError messages.
To execute the RPT file used by the test procedure, you must have MATLAB ® Report
Generator™ and Simulink® Report Generator™ licenses.
1. Create the report. At the MATLAB® command line, enter the following command:
qualkitdoSlciRunTests
2. After the report generation is complete, review the test report results. For more
information, see “Test Results”.
4-2
5 Test Results
5.1 Code Inspection Report
Executing the following test procedures generates the following test result files. The test result
file provides the Tool Verification Results in a Simulink® Report Generator report.
qualkitdoSlciQualificationReport_Block Connectivity.html
qualkitdoSlciQualificationReport_Local Variables.html
qualkitdoSlciQualificationReport_Traceability.html
qualkitdoSlciQualificationReport_Configuration Parameters.html
5-2
The applicant will:
5-3
5.2 Reviewing Test Results
Each test case contains the test results for a Simulink Code Inspector capability. For each test
case, compare the expected results to the actual results:
1. From the working folder, open a test result HTML file in a web browser. For example, open
outputs/qualkitdoSlciQualificationReport_Block Behavior
Discrete.html.
2. Navigate to the test cases. For each test case, you see:
4. Compare the actual results of the test case with the expected results listed in the test case
summary table. Additionally, compare the actual result details with the expected result
details.
In the expected result details, the listed blocks and code lines represent the minimum
failures that should be listed in the actual results. Additional blocks or code lines might not
pass code inspection due to the inability of Simulink Code Inspector to isolate the failure to
a specific block or line of code.
The test passes if the actual result matches the expected result.
5. Confirm that all the test cases pass. To comply with DO-330, Section 10.3.4, verify that all
the test cases pass.
5-4