MATLAB: How to use ‘sltest.te​stmanager.​report’ to generate a signal summary table without generating the plots for the signals

gensignalsummarytableincludecomparisonsignalplotssimulink test

I am generating a test result report with the "sltest.testmanager.report" function and specify my own custom report class to override the base class methods. Is there any way to generate a signal summary table (Name-Value pair 'IncludeComparisonSingalPlots') without generating the associated plots?

Best Answer

You can generate the table without the plots by overriding the method 'genRunBlockForTestCaseResult' in a custom report class. You just need to create a method with the same name in the custom report class and copy the content from the base class method (edit 'sltest.testmanager.TestResultReport.genRunBlockForTestCaseResult'). Then just remove the portion where the signals are plotted by deleting the for-loop just under the comment "%add signal plots and navigation links below each plot".
An example is attached to show this. (Unzip 'Example.zip' and run script 'generateReport.m')