getTestCases

Class: sltest.testmanager.TestSuite
Package: sltest.testmanager

Get test cases at first level of test suite

Syntax

tcArray = getTestCases(ts)

Description

tcArray = getTestCases(ts) returns an array of test case objects that are at the first level of the specified test suite.

Input Arguments

expand all

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

Output Arguments

expand all

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

Examples

expand all

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

% Get test suite
ts = getTestSuites(tf);

% Get the test case object
tc = getTestCases(ts);

Introduced in R2015b