% Create test structure
tf = sltest.testmanager.TestFile('Test File');
ts_orig = tf.createTestSuite('Original Test Suite');
tc1 = ts_orig.createTestCase('baseline','Baseline Test Case 1');
tc2 = ts_orig.createTestCase('baseline','Baseline Test Case 2');
% Create new test suite for the target location
ts_new = tf.createTestSuite('New Test Suite');
% Copy test cases to new test suite
objArray = sltest.testmanager.copyTests([tc1,tc2],ts_new)
objArray =
1x2 TestCase array with properties:
Name
Description
Enabled
ReasonForDisabling
TestFile
TestPath
TestType
Parent
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.