Main Content


Class: sltest.testmanager.TestSuite
Namespace: sltest.testmanager

Get test suites at first level of test suite


tsArray = getTestSuites(ts)


tsArray = getTestSuites(ts) returns an array of test suite objects that are at the first level of the specified test suite.

Input Arguments

expand all

Test suite that contains the test suite you want to get, specified as an sltest.testmanager.TestSuite object.

Output Arguments

expand all

Array of test suites at the first level of the specified test suite, returned as an array of sltest.testmanager.TestSuite objects.


expand all

% Create a test file with default test suite
tf = sltest.testmanager.TestFile('My Test File');

% Get the default test suite
ts1 = getTestSuites(tf);

% Add a test suite to default test suite
ts2 = createTestSuite(ts1,'New Test Suite 2');

% Get the test suite object from the test file
% as a new object
tsNew = getTestSuites(ts1);

Version History

Introduced in R2015b