How to save Verify Results from Test Assessment Block in Workspace?

4 views (last 30 days)
Hello,
I am running some test cases which I defined via the Test Manager GUI. The used Test Harnesses include Test Sequences and Test Assessment Blocks. Command used for test execution:
ro = sltest.testmanager.run;
I would like to get specific information from the TestResultObject ro and save it to the workspace:
  • Name of verify statement: as defined in Assessment Block Step
  • Status of verify statement: passed, not passed, not evaluated
Commands used:
tfr = getTestFileResults(ro);
tsr = getTestSuiteResults(tfr);
tcr = getTestCaseResults(tsr);
tir = getTestIterationResults(tcr);
verifyOut = getVerifyRuns(tir);
Error message:
No method 'stm.internal.getResultChildrenIDList' with matching signature found.
Error in sltest.testmanager.ResultSet/getChildResults (line 23)
ids = stm.internal.getResultChildrenIDList(obj.getID, obj.resultType);
Error in sltest.testmanager.ResultSet/getTestCaseResults (line 5)
resultArr = obj.getChildResults('TestCaseResult');
  2 Comments
Mohan Feng
Mohan Feng on 12 Jul 2022
In order to investigate the error message, more information is needed. Please contact MathWorks Technical Support and provide reproduction steps.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!