Main Content

sltest.testmanager.getResultSets

Returns result set objects in Test Manager

Description

rsList = sltest.testmanager.getResultSets returns an array of sltest.testmanager.ResultSet objects from the results currently in the Test Manager Results and Artifacts pane.

example

Examples

collapse all

To work with a test file result programmatically, use the sltest.testmanager.getResultSets function to get the result set objects. This example shows how to get the first result set when there is more than one result set.

rsList = sltest.testmanager.getResultSets;
tsrList = getTestFileResults(rsList(1));

Rename a test result set by getting the result set object and specifying the Name property of the object. For more information about the Name property, see the sltest.testmanager.ResultSet.

The test result set name is updated in both the sltest.testmanager.ResultSet object and in the Test Manager.

Use this syntax when there is only one result set.

rsList = sltest.testmanager.getResultSets;
rsList.Name = 'New Result Set';

Use this syntax when there is more than one result set. This example changes the name of the second result set.

rsList = sltest.testmanager.getResultSets;
rsList(2).Name = 'New Result Set';

Output Arguments

collapse all

The results currently in the Test Manager Results and Artifacts pane, returned as an array of sltest.testmanager.ResultSet objects.

Version History

Introduced in R2016a