getProperty

Class: sltest.testmanager.TestFile
Package: sltest.testmanager

Get test file property

Syntax

val = getProperty(tf,propertyName)

Description

val = getProperty(tf,propertyName) gets a test file property.

Input Arguments

expand all

Test file to get the property from, specified as an sltest.testmanager.TestFile object.

Test file property names, specified as:

  • 'SetupCallback' to get the content of the test file setup callback

  • 'CleanupCallback' to get the content of the test file cleanup callback

Output Arguments

expand all

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

Examples

expand all

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

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

Introduced in R2015b