Documentation Center

  • Trials
  • Product Updates

getCurrent

Access test results object from SystemTest TEST-File

Syntax

obj = systest.testresults.getCurrent

Description

obj = systest.testresults.getCurrent returns obj, the test results object associated with the currently running SystemTest™ test file.

If no TEST-File is currently executing, obj is returned as [].

The getCurrent function is intended to be used in a MATLAB element within the Pre Test, Main Test, or Post Test sections of a TEST-File, in order to access test information or test results during test execution.

This is a function of the systest.testresults class, which is the class definition for a test results object, allowing you to access test results from MATLAB®.

Examples

The following code example used in a MATLAB element will allow you to access the test results object while the test is executing. The ResultsDataSet property can be queried in order to access the underlying test data that is currently available.

obj = systest.testresults.getCurrent;
currentResults = obj.ResultsDataSet;
Was this topic helpful?