주요 콘텐츠

모델 및 코드 테스트 메트릭

R2026b
요구 사항 기반 테스트 및 코드 테스트를 포함한 모델 테스트를 위한 메트릭 수집

모델 및 코드 테스트 메트릭을 사용하여 소프트웨어 단위 모델에 대한 테스트 상태를 평가합니다. Model Testing Dashboard를 열어 프로젝트의 단위와 모델 테스트 아티팩트를 모니터링합니다. 요구 사항 등의 아티팩트를 정의하고, 단위 모델을 설계하고, 단위 테스트를 실행하면 대시보드는 각 단위에 대한 테스트 아티팩트의 추적성과 완전성을 측정합니다. 모델 테스트를 완료한 후 SIL 코드 테스트 또는 PIL 코드 테스트 대시보드를 열어 각각 SIL(Software-in-the-Loop) 또는 PIL(Processor-in-the-Loop) 코드 테스트 결과를 모니터링합니다. 메트릭 결과를 사용하여 누락된 추적 링크를 추가하고, 테스트 격차를 메우고, 테스트 진행 상황을 추적합니다. 또한, 메트릭 API를 사용하면 지속적인 통합 시스템 등에서 메트릭 결과를 프로그래밍 방식으로 수집하고 그 결과를 보고서에 저장할 수 있습니다.

앱

Model Testing DashboardAssess verification status and quality of your model and generated code

클래스

모두 확장

metric.EngineCollect metric results
metric.ResultResults from specified metric
metric.config.ConfigurationModify and manage custom threshold configurations (R2026b 이후)
metric.threshold.ThresholdSetSet of thresholds that define compliance criteria for metric results (R2026b 이후)
metric.threshold.ThresholdRuleThreshold rule that classifies metric result into compliance category (R2026b 이후)
metric.threshold.ClassificationClassification that defines compliance criteria for threshold rule (R2026b 이후)

함수

모두 확장

modelTestingDashboardOpen Model Testing Dashboard
digitalthread.settingsView and update digital thread settings (R2025a 이후)
metric.loadB2BResultsView comparison results from back-to-back testing metric (R2024a 이후)
digitalthread.StorageMap.forProjectCreate storage map for current project (R2026b 이후)
digitalthread.uri.fromFilePathGet digital thread URI from file path (R2026b 이후)
digitalthread.uri.toAbsoluteFilePathConverts digital thread URI to absolute file path (R2026b 이후)
digitalthread.uri.toRelativeFilePathConverts digital thread URI to relative file path (R2026b 이후)
digitalthread.uri.requirements.fromObjectGet digital thread URI from Requirements Toolbox object (R2026b 이후)
digitalthread.uri.requirements.toObjectConvert digital thread URI to Requirements Toolbox object (R2026b 이후)
digitalthread.uri.simulink.fromObjectGet digital thread URI from Simulink or Stateflow object (R2026b 이후)
digitalthread.uri.simulink.toObjectConvert digital thread URI to Simulink object (R2026b 이후)
digitalthread.uri.simulinktest.fromObjectGet digital thread URI from Simulink Test object (R2026b 이후)
digitalthread.uri.simulinktest.toObjectConvert digital thread URI to Simulink Test object (R2026b 이후)

도움말 항목

프로젝트 모델 테스트

모델 테스트

코드 테스트

대시보드 및 메트릭에 대한 사용자 지정

아티팩트 추적성