Create a Test Results Report
This example shows how to generate a test results report by using the Simulink Test Manager.
Open the Test Results and Test Manager
1. Use the files from the previous step, or run these commands to import the test results and open the Test Manager.
sltest.testmanager.importResults("baselineTestResults.mldatx");
sltest.testmanager.view
Generate Test Results Report
1. In the Test Manager, in the Results and Artifacts pane, select baselineTestCase
.
2. In the Results section, click Report. The Test Manager displays the Create Test Result Report dialog.
3. Set the Title to absbrake_baselineTest
.
4. In the Include in Report section, set the Results for section to All Tests
and select the inforamtion to include in the report. For more information on test results report options, see Create, Set Options, and Use Templates for Test Result Reports.
5. Set the File Format dropdown to ZIP
.
5. Click Create. The Test Manager generates an HTML report. The report displays the test information selected in the Create Test Result Report dialog. The difference between the yout.Ww
signal and the baseline signal data is shown to meet the tolerance criteria.
Clean Up
Run these commands to close the model without saving, and to clear and close the Test Manager.
close_system("sldemo_absbrake",0)
sltest.testmanager.clear
sltest.testmanager.clearResults
sltest.testmanager.close