sltest.testmanager.Options Class
Namespace: sltest.testmanager
Return and specify test file options
Description
Get instances of sltest.testmanager.Options to view test file
options, including report generation options. For test files, you can also set options.
View options using:
The sltest.testmanager.Options class is a handle class.
Creation
returns the test file options object associated with the test case, suite, or
file.obj = getOptions(test)
Input Arguments
Test case, suite, or file, specified as an sltest.testmanager.TestCase, sltest.testmanager.TestSuite, or sltest.testmanager.TestFile object.
Properties
Author of the report, specified as a character vector.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to close figures at the end of the test, specified as
true to close the figures and
false to leave them open.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Custom report generation class, specified as a character vector. For information, see Customize Test Results Reports.
Path name of report generation custom template file, specified as a character vector. For information, see Customize Test Results Reports.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to generate a report at the end of the test, specified as
true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include simulation output and baseline plots in report,
specified as true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include coverage results in reports, specified as
true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include error and log messages in reports, specified as
true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include figures generated from MATLAB code in reports, specified as true or
false. Specify the MATLAB code as custom criteria on the test case or as a callback on
the test case, suite, or file. You must also set
SaveFigures to true for this
setting to apply.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include the MATLAB version you are running in the report, specified as
true or false.
Option to include simulation metadata in reports, specified as
true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include criteria and assessment plots in reports, specified as
true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Number of rows of plots to include on report pages, specified as an
integer from 1 to 4. This property is used only if the
IncludeSimulationSignalPlots property is
true.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Number of columns of plots to include on report pages, specified as an
integer from 1 to 4. This property is used only if the
IncludeSimulationSignalPlots property is
true.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to include test requirements in reports, specified as
true or false.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Test results to include in the report, specified as
'failed', 'passed', or
'all'. You can alternatively use an enumerated value:
sltest.testmanager.TestResultsIncludedInReport.AllTestssltest.testmanager.TestResultsIncludedInReport.FailedOnlysltest.testmanager.TestResultsIncludedInReport.PassedOnly
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Output format for report, specified as 'pdf',
'zip', or 'docx'. You can
alternatively use an enumerated value:
sltest.testmanager.ReportFileFormat.docsltest.testmanager.ReportFileFormat.pdfsltest.testmanager.ReportFileFormat.zip
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Path name of file to save report to, specified as a character vector.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Option to save MATLAB figures with test results, specified as
true or false. If you want to
include figures in results or reports, set this option to
true.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Title of the report, specified as a character vector.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Examples
Create the test file, test suite and test case structure.
tf = sltest.testmanager.TestFile('API Test File'); ts = createTestSuite(tf,'API Test Suite'); tc = createTestCase(ts,'baseline','Baseline API Test Case');
Get the test file options.
opt = getOptions(tf);
Set the title for the report, save figures, and include 3 rows of plots per page. Columns per page default to 2.
opt.Title = 'ABC Co. Test Results';
opt.SaveFigures = true;
opt.IncludeSimulationSignalPlots = true;
opt.NumPlotRowsPerPage = 3;Version History
Introduced in R2017a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)