Main Content

getTestCaseResults

Class: sltest.testmanager.TestSuiteResult
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 test suite results object.

Input Arguments

expand all

Test suite results to get test case results from, specified as a sltest.testmanager.TestSuiteResult 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 test suite results object.

Examples

expand all

Use the functionsltest.testmanager.run to return a result set that contains test file, test suite, and test case results.

% Run tests in the Test Manager
result = sltest.testmanager.run;

% Get the test file results
testFileResultArray = getTestFileResults(result);

% Get the test suite results
testSuiteResultArray = getTestSuiteResults(testFileResultArray);

% Get the test case results
testCaseResultArray = getTestCaseResults(testSuiteResultArray);

Version History

Introduced in R2015a