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.


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

Get test file property


val = getProperty(tf,propertyName)


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.


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