Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Simulink Test
Test Cases and Procedures
R2015b, September 2015
www.mathworks.com
www.mathworks.com/sales_and_services
User community:
www.mathworks.com/matlabcentral
Technical support:
www.mathworks.com/support/contact_us
Phone:
508-647-7000
Revision History
September 2015
Contents
1
2
3
4
5
vi
1 Introduction
This document comprises test procedures (Reference DO-330 Sections 10.3.3.c) for the
following capabilities of the Simulink Test verification tool:
Comparing simulation results or executable object code test results against expected results
to determine pass/fail simulation or test status.
Generating reports that contain simulation or test results, including pass/fail simulation or
test status, and requirements tracing.
This document is intended for use in the DO-330 tool qualification process for TQL-5 tools.
See also the DO Qualification Kit User's Guide, R2015b.
1-2
2-2
3-2
Review the Tool Operational Requirements for applicability to the project under
consideration and select the relevant test procedures to be run in the installed users
environment (activity 6.2.1.aa of DO-330)
Configure and execute the test procedures in the installed user environment
Evaluate the generated test reports are correct (activities 6.2.1.b and 6.2.1.bb of DO330)
Configure shipped test data and generated test reports in a configuration management
system (activities 7.2.7 of the of DO-330)
Note:
Before you execute the test procedures, start a new MATLAB session (the Report
Generator setup file runs MATLAB code in global workspace and might interfere
with data existing in the global workspace).
To execute the test procedure you must have the following licenses:
o
o
o
o
o
MATLAB
Simulink
Simulink Test
MATLAB Report Generator
Simulink Report Generator
Note: If a report format is not specified, by default, the HTML format will be used.
2.
Select File > Report. Simulink Report Generator creates the summary report
and the model level reports
4-2
After running the tests, Simulink Report Generator compares the generated Simulink
Test reports to the expected results (pre-generated reports that ship with the DO
Qualification Kit) and generates the summary qualification report. The summary
qualification report contains information about test environment, executed test files, and
qualification results.
Note: Automated comparison is supported for HTML and Microsoft Word .docx
report formats, depending on the operational environment. If automated comparison is
not supported for selected formats, manually compare the reports to the expected
results. Automated report evaluation is supported in the following environments:
Platform
Report Format
Linux
HTML
Windows
3.
After Simulink Report Generator has finished running the aggregate test procedure, verify
that there are no warning or error messages in the Simulink Report Generator message list
window. Review the summary qualification report. For more information, see Test Results.
If you do not have a Fixed-Point Designer license, the test file tFP.mldatx, containing
test cases for fixed-point data types, will not run. If you do not need to qualify comparison
of fixed-point data types, you can ignore this warning message.
4.
Using Simulink Test Manager GUI, create a baseline test case for the Simulink
model mTIR010.slx, stored in the sltest/outputs/ folder.
b.
Using the Simulink Test Manager GUI, capture the outputs of the model and store
it as a MAT-file.
c.
Set the captured MAT-file as a baseline criteria with 0 absolute and relative
tolerances.
d.
4-3
5 Test Results
Executing the aggregate test procedure file qualkitdo_sltest_rs.rpt generates and
stores the following data in /sltest/outputs/:
Simulink Test reports in the specified format. The list of reports will be included in
summary qualification report.
Check that the information regarding test environment is correct and the list of
generated test reports includes all selected formats.
In the Qualification Test Results section of the report, check that the
qualification status is evaluated as PASS.
Note 1: If the qualification status is evaluated as FAIL, manually review the
content of the differing test reports to assess the impact of the mismatch with
respect to the software life cycle activities performed using the tool.
Note 2: Automation comparison capability is verified in your environment using
the pre-generated reports shipped with the DO Qualification Kit. A list of
corresponding test cases is provided in the CMP page of the traceability matrix
qualkitdo_sltest_trace.xlsx
Compare each Simulink Test report file, listed in the section Qualification Test
Results of the summary qualification report, to the pre-generated version of the
report with the same file name provided in sltest/expected_results/.
Note: When comparing the reports dates, time stamps and test duration time may
differ between actual and expected results.
2.
If you are not qualifying comparison of fixed-point data types, the summary report will
include a relevant note in the Qualification Test Outcome section.
Configure the content of the folder comprising the test cases, procedures and results in a
configuration management system.
5-2