Unit Testing Stateflow Models
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello Mathworks Community,
I have looked at a similar post on unit testing in Stateflow, but the links didn't really help, maybe I'm using the wrong terms. I want to run a series of tests on a Stateflow model everytime we change it (regression tests) These tests involved introducing data into the charts. I want a sort of automated debugging session I guess. The idea would be to have all this kicked off by a simulink report and to run the various tests and create plots and output a test report. The model has been imported from another tool, so the practice of injecting data into the chart at various times automatically needs to be maintained. I can figure out how to do this manuall, but can't find an example of doing this using a script. Any wise words/ recommendations? Note I cannot use the Test toolbox as that is not available on the clients system.
Cheers
Richard
0 Commenti
Risposte (1)
Steven Lord
il 11 Mar 2021
If you know how to programmatically interface with the charts and how to execute them but cannot use the Simulink Test product, try using the testing framework included as part of MATLAB.
Vedere anche
Categorie
Scopri di più su Inputs in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!