Main Content

createTestSuite

Class: sltest.testmanager.TestFile
Namespace: sltest.testmanager

Create new test suite

Syntax

ts = createTestSuite(tf,suiteName)

Description

ts = createTestSuite(tf,suiteName) creates a test suite and adds it to the test file, tf.

Input Arguments

expand all

Test file that you want to create the test suite within, specified as a sltest.testmanager.TestFile object.

Name of the test suite, specified as a string scalar or character vector.

Example: "My Test Suite"

Output Arguments

expand all

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

Examples

expand all

% Create a test file
tf = sltest.testmanager.TestFile("My Test File");

% Create a test suite
ts = createTestSuite(tf,"My Test Suite");

Version History

Introduced in R2015b