Main Content

getTestCaseResults

Class: sltest.testmanager.ResultSet
Namespace: sltest.testmanager

Get test case results object

Syntax

testCaseResultArray = getTestCaseResults(result)

Description

testCaseResultArray = getTestCaseResults(result) gets the test case results that are direct children of the results set object.

Input Arguments

expand all

Results set to get test case results from, specified as a sltest.testmanager.ResultSet object.

Output Arguments

expand all

Test case results, returned as an array of sltest.testmanager.TestCaseResult objects. The function returns objects that are direct children of the results set object.

Examples

expand all

Assume you have a model open and test file for it open in the Test Manager. After running the test, obtain the test file, its test suite, and test case results in the result set.

resultset = sltest.testmanager.run;

testFileResultArray = getTestFileResults(resultset);
testSuiteResultArray = getTestSuiteResults(resultset);
testCaseResultArray = getTestCaseResults(resultset);

Version History

Introduced in R2015a