This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

createTestSuite

Class: sltest.testmanager.TestFile
Package: 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.

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 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');

Introduced in R2015b