Return errors that occurred during artifact tracing
Collect metrics for the testing artifacts in a project. Then, check if artifacts returned errors and were not analyzed.
Open the project. At the command line, type
metric.Engine object for the project.
metric_engine = metric.Engine();
Update the trace information for
metric_engine to reflect
any pending artifact changes and
ensure that all test
results are tracked.
Collect results for the metric Requirements per test case by using the
execute function on the
Access the errors that occurred during analysis.
ans = 0×0 empty struct array with fields: Address UUID ErrorId ErrorMessage
For this example, the artifacts did not return errors.
metricEngine— Metric engine object
Metric engine object that you want to check for errors, specified as a
errors— Artifact errors
Artifact errors that occurred when you executed the
object, returned as an array of structures that correspond to the errors. The structure
for an error contains these fields:
Address — Address of the artifact that returned the
UUID — Unique identifier of the artifact
ErrorID — Identifier of the error
ErrorMessage — Description of the error