The name of the test case within a test suite object, specified
as a character vector. If the name does not match a test case, then
the function returns an empty test case object.
Test case, returned as an sltest.testmanager.TestCase object.
If the name does not match a test case, then the function returns
an empty test case object.
% 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 by test case name
tc = getTestCaseByName(ts,'New Test Case 1');
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.