MATLAB: Executing Tests for a Test File Generated from Simulink Test Manager

simulink test

I am presently attempting to execute the tests generated from Simulink Test Manager (in the form of an MLDATX file) programmatically. How might I go about doing this?

Best Answer

Attached is an example of several ways to execute the tests in an MLDATX file.
One such way, is to load the MLDATX file, and then execute the "run" method for the TestFile object. Below is a link with more information about the TestFile class:
Below is a link with more information about some other ways to programmatically execute tests for Simulink Test: