Main Content

sltest.testmanager.importResults

Import Test Manager results file

Description

resultObjs = sltest.testmanager.importResults(filePath) imports a results set file (.mldatx) into the Test Manager.

example

resultObjs = sltest.testmanager.importResults(filePath,UniqueImport=true,PartialLoad=true) loads only partial data from the results set file (.mldatx) into the Test Manager. The Simulation Data Inspector run data is excluded from being loaded. These settings are useful if your test produces very large signal logs that cannot be fully loaded in to the Test Manager, and you want to extract data from the results. You must set both UniqueImport and PartialLoad to true.

example

Examples

collapse all

% Import results set from a file
result = sltest.testmanager.importResults('testResults.mldatx');

% Set the filenames for the full and partial results reports
filePath1 = 'testreport_partial.zip';
filePath2 = 'testreport_full.zip';

% Generate the report containing partial results
sltest.testmanager.report(result,filePath1,...
    Author='John Smith',Title='My Test Results',...
    IncludeMLVersion=true,IncludeTestResults=int32(0),...
    UniqueImport=true,PartialLoad=true,...
    LaunchReport=true);

% Generate the report containing all results
sltest.testmanager.report(result,filePath2,...
    Author='John Smith',Title='My Test Results',...
    IncludeMLVersion=true,IncludeTestResults=int32(0),...
    LaunchReport=true);

Input Arguments

collapse all

Filename and path of results set, specified as a character vector.

Example: 'testResults.mldatx'

Output Arguments

collapse all

Results set, returned as an array of sltest.testmanager.ResultSet objects.

Version History

Introduced in R2016a

expand all