Main Content

createTestSuite

Class: sltest.testmanager.TestSuite
Namespace: sltest.testmanager

Create test suite

Syntax

tsOut = createTestSuite(ts,suiteName)

Description

tsOut = createTestSuite(ts,suiteName) creates a new test suite.

Input Arguments

expand all

Test suite that want to add another test suite to, specified as an sltest.testmanager.TestSuite object.

Test suite name, specified as a string scalar or character vector. If this input argument is empty, then the Test Manager gives the test suite a unique name.

Example: "My Test Suite"

Output Arguments

expand all

Test suite, returned as an sltest.testmanager.TestSuite object.

Examples

expand all

% Create test file
tf = sltest.testmanager.TestFile("test_file");

% Create test suite
ts = sltest.testmanager.TestSuite(tf,"My Test Suite");

% Create another new test suite using method
ts2 = createTestSuite(ts,"Baseline Tests")

Version History

Introduced in R2015b