Main Content

getAllTestCases

Class: sltest.testmanager.TestFile
Namespace: sltest.testmanager

Get all test cases in a test file

Since R2021b

Description

tcArray = getAllTestCases(tf) returns a flat array of all test case objects in a test file.

example

Input Arguments

expand all

Test file containing the test cases to get, specified as an sltest.testmanager.TestFile object.

Output Arguments

expand all

Test cases in the test file, returned as a flat array of sltest.testmanager.TestCase objects. Test cases are always in test suites in a test file.

Examples

expand all

tf = sltest.testmanager.TestFile('My Test File');
tcArray = getAllTestCases(tf);

Version History

Introduced in R2021b