Verify Statements with outcomes from TestCaseResult object
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am using Simulink Test for setting up some unit tests and need to extract low level results programatically after running the test manager.
It is important to run the tests using Test Manager and work on the various objects returned by it, due to how things are setup.
tfr = getTestFileResults(ro);
tsr = getTestSuiteResults(tfr(1,1));
tcr = getTestCaseResults(tsr);
The closest solution is :
getVerifyRuns(tcr)
This returns a simulink run object that is mostly empty and contains the signals, but not the information about what were the verify statements of the test case and whether they passed or failed.
sltest.getAssessmentSet, sltest.getAssessment and sltest.TestResult etc are some methods that are able to provide the needed info, but I need to do this with Test Manager session and tfr, tsr and tcr objects mentioned above.
I can also manually export to workspace the assessment set from the gui of the Test Manager, but need to do this programmatically, thanks in advance!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Inputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!