Documentation Center

  • Trial Software
  • Product Updates

systest.createHarness

Create SystemTest test harness from model

Syntax

systest.createHarness(testFileName,modelName)

Description

systest.createHarness(testFileName,modelName) creates a SystemTest™ test harness named <testFileName> for the model <modelName>. The test is set up with a Test Case Data test vector and a Simulink element using the information from the Simulink® model. The model must be on the MATLAB path. The testFileName must be a writable file location.

Examples

The following example creates a test harness from a model:

>>modelName = 'C:\mymodel.slx';
>>testFileName = 'C:\my_new_harness.test';

>>systest.createHarness(testFileName,modelName)
Was this topic helpful?