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.


Class: sltest.testmanager.TestFile
Package: sltest.testmanager

Get test suites at first level of test file


tsArray = getTestSuites(tf)


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

Input Arguments

expand all

Test file that contains the test suites, specified as a sltest.testmanager.TestFile object.

Output Arguments

expand all

Array of test suites at the first level of the test file, 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 test suite object from the test file
ts = getTestSuites(tf);

Introduced in R2015b