Access test file results data
sltest.testmanager.TestFileResult enable you to access
the results from test execution performed by the Test Manager at a test-file
sltest.testmanager.TestFileResult class is a
For information on class attributes, see Class Attributes.
sltest.testmanager.run creates a
sltest.testmanager.ResultSet object, which contains the test file
result object. You can also create a test file result directly if you use
run to execute tests in an individual test file.
Duration — Length of time the test ran, in seconds
Length of time the test ran, in seconds, returned as a duration.
NumDisabled — Number of disabled tests
The number of test cases that were disabled in the test file result.
NumFailed — Number of failed tests
The number of failed tests contained in the test file result.
NumIncomplete — Number of incomplete tests
The number of test cases that did not execute in the test file result.
NumPassed — Number of passed tests
The number of passed tests contained in the test file result.
NumTestCaseResults — Number of test case result children
The number of test case results that are direct children of the test file result.
NumTestSuiteResults — Number of test suite result children
The number of test suite results that are direct children of the test file result.
NumTotal — Total number of tests
The total number of tests in the test file result.
Parent — Parent of the result object
Parent of the result. The parent of a test file result is a result set object.
Release — Release in which the test was run
Release in which the test was run, returned as a character vector.
StartTime — Time the test began to run
Time the test began to run, returned as a datetime.
StopTime — Time the test completed
Time the test completed, returned as a datetime.
Tags — Tags to filter test file results
Tags to filter the test file results. Use tags to view a subset of the test results. See Tags for more information.
TestFileResultPath — Result hierarchy path
The hierarchy path in the result set.
TestFilePath — Test file path
The path of the test file used to create the result.
UserData — Custom data stored with test file results
any data type
Custom data stored with the test file results, specified as any type of data. Use this field to add custom information, such as the settings used to obtain the results.
Get Test File Result From Results Set
% Run test file in Test Manager and output results set resultset = sltest.testmanager.run; % Get the test file result object tfr = getTestFileResults(resultset);
Introduced in R2016a