Main Content

remove

Class: sltest.testmanager.Assessment
Namespace: sltest.testmanager

Remove assessment from test case

Since R2022a

Syntax

sltest.testmanager.Assessment.remove(asssessment)

Description

sltest.testmanager.Assessment.remove(asssessment) removes the specified assessment object from its parent test case.

Input Arguments

expand all

Assessment to remove from its parent test case, specified as an sltest.testmanager.Assessment object.

Examples

expand all

This example shows how to remove a test assessment.

Load the test file and open the Test Manager.

tf = sltest.testmanager.load('test_traffic.mldatx');
sltest.testmanager.view;

Select the test case and then open the Logical and Temporal Assessment section to view a summary of the existing assessments.

Logical and temporal assessments section

Get the assessments.

ts = tf.getTestSuites;
tc = ts.getTestCases;
assessObjs = tc.getAssessments;

Remove the second assessment and then view the updated Test Manager.

assessObjs(2).remove;

The Test Manager updates and shows that the second assessment is removed.

Updated list of assessments

sltest.testmanager.clear
sltest.testmanager.close

Version History

Introduced in R2022a