Main Content

getOptions

Class: sltest.testmanager.TestCase
Namespace: 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 associated with the test case.

opt = getOptions(tc);

Version History

Introduced in R2017a