Main Content

getProperty

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

Get test suite property

Syntax

val = getProperty(ts,propertyName)

Description

val = getProperty(ts,propertyName) gets a test suite property.

Input Arguments

expand all

Test suite object to get the property from, specified as an sltest.testmanager.TestSuite object.

Test suite property names, specified as a character vector. The available properties are 'SetupCallback' and 'CleanupCallback'.

Output Arguments

expand all

The content of the test suite property, returned as a character vector.

Examples

expand all

% Create a test file and new test suite
tf = sltest.testmanager.TestFile('API Test File');
ts = createTestSuite(tf,'API Test Suite');

% Get the setup callback property
propName = getProperty(ts,'SetupCallback');

Version History

Introduced in R2015b