Main Content

getTestSuiteResults

Class: sltest.testmanager.TestSuiteResult
Namespace: sltest.testmanager

Get test suite results object

Syntax

testSuiteResultArray = getTestSuiteResults(result)

Description

testSuiteResultArray = getTestSuiteResults(result) gets the test suite results that are direct children of the test suite results object.

Input Arguments

expand all

Test suite results to get test suite results from, specified as an sltest.testmanager.TestSuiteResult object.

Output Arguments

expand all

Test suite results, returned as an array of sltest.testmanager.TestSuiteResult objects. The function returns objects that are direct children of the test suite results input object.

Examples

expand all

Use the function sltest.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 next level of test suite results
testSuite2ResultArray = getTestSuiteResults(testSuiteResultArray);

Version History

Introduced in R2015a