Main Content

remove

Class: sltest.testmanager.ResultSet
Package: sltest.testmanager

Remove result set

Syntax

remove(result)

Description

remove(result) removes result, a sltest.testmanager.ResultSet object. If the Test Manager is visible, the corresponding results are removed from the Results and Artifacts pane.

Input Arguments

expand all

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

Examples

expand all

This example shows how to run a test and remove the result.

Create a Test File

tf = sltest.testmanager.TestFile('f14ParameterSweepTest.mldatx');

Run the Test

result = run(tf)
result = 
  ResultSet with properties:

                   Name: 'Results: 2021-Sep-01 14:23:48'
                Outcome: Failed
              NumPassed: 0
              NumFailed: 25
            NumDisabled: 0
          NumIncomplete: 0
               NumTotal: 25
     NumTestCaseResults: 0
    NumTestSuiteResults: 0
     NumTestFileResults: 1
              StartTime: 01-Sep-2021 14:23:53
               StopTime: 01-Sep-2021 14:23:54
               Duration: 0.972 sec
            Description: []
        CoverageResults: []
               UserData: []

Remove the Result

remove(result)
Introduced in R2019a