Main Content

sltest.testmanager.load

Load a test file in the Simulink Test manager

Description

tfObj = sltest.testmanager.load(filename) loads a test file in the Simulink® Test™ manager.

example

Examples

collapse all

Load a test file and view it in the Test Manager.

exampleFile = 'sltestParameterOverridesTestSuite.mldatx';

sltest.testmanager.load(exampleFile);
sltest.testmanager.view;

Input Arguments

collapse all

Filename of a test file, specified as a character vector. The character vector must fully specify the location of the test file. The file can be a test file (.mldatx), or a MATLAB test file (.m), if that MATLAB test file is a derived class from sltest.TestCase.

Example: 'C:\MATLAB\test_file.mldatx'

Output Arguments

collapse all

Test file, returned as an sltest.testmanager.TestFile object.

Version History

Introduced in R2015a