Workflow for Test Case Generation
To generate the test cases for your model, use the following workflow.
Task | Description | For an example, see |
---|---|---|
1 | Verify that your model is compatible for use with Simulink® Design Verifier™. | |
2 | Optionally, use the Test Generation Advisor to select model components (atomic subsystems and model blocks) for test generation. Before test generation, you can use the results to better understand your model, particularly large models, complex models, or models for which you are uncertain of the test generation compatibility. | Use Test Generation Advisor to Identify Analyzable Components |
3 | If you have Stateflow® objects in your
model, in the Configuration Parameters dialog box, on the Diagnostics > Stateflow pane, set Unreachable execution path to | |
4 | Optionally, instrument your model with blocks or MATLAB® functions that specify test objectives and test conditions. | |
5 | Specify options that control how Simulink Design Verifier generates test cases for your model. | |
6 | Execute the Simulink Design Verifier analysis. | |
7 | Review the analysis results. |