Main Content

remove

Class: sltest.testmanager.ResultSet
Namespace: 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.

Load the Model

load_system('sltestF14ParameterSweep')

Create a Test File

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

Run the Test

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

                Outcome: Failed
              NumPassed: 22
              NumFailed: 3
            NumDisabled: 0
          NumIncomplete: 0
               NumTotal: 25
     NumTestCaseResults: 0
    NumTestSuiteResults: 0
     NumTestFileResults: 1
              StartTime: 05-Sep-2024 22:12:35
               StopTime: 05-Sep-2024 22:12:50
               Duration: 14.236 sec
            Description: []
                   Name: 'Results: 2024-Sep-05 22:12:33'
        CoverageResults: []
               UserData: []

Remove the Result

remove(result)

Version History

Introduced in R2019a