Documentation

sltest.testmanager.load

Load a test file in the Simulink Test manager

Syntax

tfObj = sltest.testmanager.load(filename)

Description

example

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

Examples

collapse all

In this example, the test file is from the Overriding Model Parameters in a Test Case example.

% Path to the example test file
exampleFile = fullfile(matlabroot,...
          'toolbox','simulinktest','simulinktestdemos',...
          'sltestParameterOverridesTestSuite.mldatx');

% Load the example test file
sltest.testmanager.load(exampleFile);

% View the test file in the test manager
sltest.testmanager.view;

Input Arguments

collapse all

File name of a test file, specified as a character vector. The character vector must fully specify the location of the test file.

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

Output Arguments

collapse all

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

Introduced in R2015a

Was this topic helpful?