Unit Testing Stateflow Models
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Steven Lord
am 11 Mär. 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.
Siehe auch
Kategorien
Mehr zu Inputs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!