getTestSuites

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

Get test suites at first level of test file

Syntax

tsArray = getTestSuites(tf)

Description

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.

Examples

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