Return issues that occur during artifact analysis
returns the artifact issues that occur when the metric engine analyzes the artifacts in the
project. For the metric engine to perform artifact analysis and check for artifact issues,
collect metric results by using the
issues = getArtifactIssues(
execute function. If the
execute function returns a warning about artifact issues in the
getArtifactIssues to get a list of the artifact issues
that the metric engine found during artifact analysis.
If you have artifact issues in your project, try to fix the issues to prevent the artifacts from returning incorrect metric results. For more information, see View Artifact Issues in Project.
Identify Artifact Issues After Collecting Metric Results
Collect metric results for the testing artifacts and get a list of artifact issues in the project.
Open the project that contains the models and testing artifacts. For this example, in the MATLAB® Command Window, enter:
metric.Engine object for the project.
metric_engine = metric.Engine();
Collect metric results by using the
execute function. For this
example, collect results for the metric
execute function on the
If you have artifact issues in the project, the
function returns a warning. For this example, the
does not return a warning.
You can use the function
getArtifactIssues to get a list of the
artifact issues that the metric engine found during artifact
issues = getArtifactIssues(metric_engine)
issues = 0×0 empty struct array with fields: IssueId IssueMessage Severity Address UUID
metricEngine — Metric engine object
Metric engine object for the project for which you want the list of artifact issues,
specified as a
issues — Artifact issues in project
Artifact issues in a project, returned as a
struct array with fields:
IssueId— Identifier for the artifact issue type
IssueMessage— Message that describes the artifact issue
Severity— Severity of the artifact issue
Address— Address of the affected artifact
UUID— Universal unique identifier for the affected artifact
There is one element in the array for each artifact issue.
To view artifact issues for a Model Design or Model Testing dashboard, click Artifact Issues in the dashboard toolstrip. The Artifact Issues tab shows a table of the artifact issues in the current project. You can click on the hyperlinks in the Source column to open the affected artifact. You can also sort the artifact issues by type by clicking the Message ID column header. For more information, see View Artifact Issues in Project.
Introduced in R2023a