Main Content

getAllTestCases

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

Get all test cases in a test file

Description

example

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

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.

Examples

expand all

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