You can use the Simulink® Test™ programmatic interface to:
Create test scripts and functions.
Run tests from the command line.
Set up and standardize your testing environment.
You can use scripts and functions to repeat the same test strategy on multiple systems, or perform regression testing. These functions and classes cover test authoring, execution, and results in Simulink Test. If you want to combine existing Simulink tests with MATLAB® tests, or run tests with continuous integration, use the MATLAB Unit Test Framework. See Continuous Integration.
Simulink Test provides graphical user interfaces to help you create and run tests. For more information, see Test Authoring, Test Execution, and Results, Reports, and Test Management.
Create and Run Test Cases with Scripts
Examples of how to create and run tests using the programmatic interface.