Export Simulink Test results of test case to .mat file programatically
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Upon running a test case within Simulink Test Manager, I can export Verify Statements manually to a .mat file. However, I am struggling to find a way to do that programatically. The function 'getVerifyRuns()' does not tell me the results of any verfication statement of my test, such as what the verfication statement is and whether that one verification statement has passed or failed.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/783223/image.png)
For example, I can right click on 'Verify Statements in the above image, right click -> Export data to MAT-File, and then view the data in that .mat file. Below is what is included in the exported .mat file.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/783228/image.png)
I can then manually open the Value field of any one of these signals to analyze the time, value pairs. Using these values, I can see when the verification was evaluated and see the result, where -1 is untested, 0 is passed, 1 is failed
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/783233/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/783238/image.png)
Is there a way to programatically export these values to a .mat file in the way described without having to open sltest.testmanager and having to right-clikc and export each testcase?
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Outputs en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!