Quantcast

Documentation Center

  • Trial Software
  • Product Updates

stLoadTestCases

Load systest.TestCase objects from SystemTest TEST-file

Syntax

testcases = stLoadTestCases(testFile)

Description

testcases = stLoadTestCases(testFile) returns the systest.TestCase object saved in testfile. It returns the list of test cases in the test file.testfile must be a SystemTest TEST-file (.test) available on the MATLAB® path or specified with a full path.

The function will return empty if the test does not contain a Test Case Data test vector containing at least one test case. The function will error if called when the testfile is open in the SystemTest™ desktop.

Examples

Name your test file and model; create a test to that name using that model; load the test cases.

testFile = 'f14.test';
modelName = 'f14';

systest.createHarness(testFile, modelName);
testCases = stLoadTestCases(testFile)
Was this topic helpful?