- Run Your Test Case: First, ensure that you have executed your test case using the Simulink Test Manager. This will generate results that you can analyze.
- Access the Test Results: Load the test results into MATLAB. You can do this by using the "sltest.testmanager.loadResults" function if you have saved the results to a file.
- Navigate to the Specific Test Result: Access the specific test case result you are interested in. You might need to iterate through the results to find the specific test case and step.
- Identify the Specific Step: Once you have the test case results, identify the specific test step you want to highlight. You may need to inspect the test case results to determine which step you are interested in.
- Highlight the Step in the Harness: If you want to highlight a specific step in the harness, you can use Simulink's API to programmatically open the harness and highlight the desired block or step. This involves using the Simulink API to manipulate the model as follows: