Access Test Results While Test Is Running

While a test is executing in the SystemTest™ software, you can access test results using the systest.testresults.getCurrent method.

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®.

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

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