Main Content


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

Get test cases in a test file



tcArray = getTestCases(tf) returns an array of test case objects in a test file. Only test cases that are direct children of the test file (that is, not within a test suite) are returned.

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 at the top level of the test file, returned as an array of sltest.testmanager.TestCase objects.


expand all

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

Version History

Introduced in R2020b