This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getOptions

Class: sltest.testmanager.TestCase
Package: sltest.testmanager

Get test file options

Syntax

opt = getOptions(tc)

Description

opt = getOptions(tc) returns the test file options object sltest.testmanager.Options associated with the test case tc.

Input Arguments

expand all

Test case to get test file options from, specified as an sltest.testmanager.TestCase object.

Output Arguments

expand all

Test file options, returned as an sltest.testmanager.Options object.

Examples

expand all

% 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(tc);

Introduced in R2017a