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.
Test Models Using MATLAB-Based Simulink Tests
Write test files in MATLAB that can be used in the Test Manager.
Using MATLAB-Based Simulink Tests in the Test Manager
Use MATLAB-based Simulink test to simulate a model and verify it against a baseline.
Programmatically Create Multiple Scenarios in a Test Sequence Block
Add test scenarios to Test Sequence block programmatically.