addArtifact

Add artifact to test results object

Syntax

addArtifact(obj, name, filepath)

Description

addArtifact(obj, name, filepath) adds an artifact to the test results object obj using the string name, representing a user-customizable display name, and the string filepath, representing the full file path to the artifact.

This function is a convenience for adding additional artifacts to the Artifacts property of the test results object obj.

Artifacts can be any document or report associated with a test results object. By associating artifacts with a test results object, hyperlinks are automatically provided to access the artifacts when the test results object is displayed at the MATLAB® command line.

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

Was this topic helpful?