Analyze Test Results

After the SystemTest™ software runs your test, you can explore the results that are generated. This section shows how to:

  • View and interpret the Test Report.

  • Inspect your test results.

View the Test Report

When you enable the Test Report, the SystemTest software saves information about each test iteration in an HTML file. To enable the Test Report, check the Generate report option on the Output Files tab of the Properties pane before running your test. The report contains summary information about the test run, snapshots of any plots you used, snapshots of any models you used, pass/fail results of Limit Check elements, and other information. See Test Report for a full description of what the report contains.

After a test runs, you can see the contents of this file by clicking Tools > Test Report or using the Test Report link in the Run Status pane. The generated output resembles the following.

The Main Test section of the report shows each iteration. You see the value of the test vector signal and determine the values the Limit Check element used in evaluating whether the test passed. For the first several iterations, the value of Y did not exceed either the high or low limits so the iterations passed. You can also see this in the scalar plot drawn while the test ran. For other iterations that failed, you can scroll through the report to find the values of Y.

View Test Results

The SystemTest software allows you to view the results you have chosen to save for your test using a workspace variable called stresults. It provides access to the test results object, which is useful for comparing the results of separate test runs and for postprocessing test results.

To continue the example, after you run the test, return to MATLAB® and type stresults. The following summary of the results is returned.

You can see that the test contains 60 iterations, that it contains a test vector signal, and the names of the three saved results are HiLimit, LowLimit, and Y.

To see a more complete list of properties, type:


That displays the following.

The ResultsDataSet property contains the test results data in the form of a dataset array. This is what you set up using the Saved Results node in the Test Browser. See Save Test Results for more information on setting up saved results.

To access the ResultsDataSet property, type:


This returns the test results data in the form of a dataset array.

In the example, a portion of the test results data looks like this:

In the dataset array, each row represents a test iteration, labeled using the convention of ['I' + Iteration_Number]. This example shows the first 10 iterations. Test vector values are listed first, in alphabetical order, followed by test results, listed in alphabetical order, as shown in the above figure. This is a simple way to view the results you set up in Saved Results. The test results for all iterations are displayed at the command line, even though only the first ten are only shown here.

You can now plot the results.

Was this topic helpful?