模型和代码测试度量
收集包括基于需求的测试和代码测试在内的模型测试度量
使用模型和代码测试度量来评估软件单元模型的测试的状态。打开模型测试仪表板来监控工程中的单元和模型测试工件。当您定义工件(如需求、设计单元模型和运行单元测试)时,仪表板会测量每个单元的测试工件的可追溯性和完整性。完成模型测试后,打开 SIL 代码测试或 PIL 代码测试仪表板,分别监控软件在环 (SIL) 或处理器在环 (PIL) 代码测试结果。使用度量结果来添加缺失的可追溯性链接,填补测试缺口,并跟踪测试进度。您还可以使用度量 API 以编程方式收集度量结果(例如在持续集成系统中),并将结果保存在报告中。
类
函数
主题
模型测试
- Explore Status and Quality of Testing Activities Using Model Testing Dashboard
Evaluate the status and quality of model testing in your project. - Assess Requirements-Based Testing for ISO 26262
Use the Model Testing Dashboard to analyze the completeness and quality of requirements-based testing activities in accordance with the ISO 26262 standard. - Fix Requirements-Based Testing Issues
Fix model testing quality issues by using the Model Testing Dashboard. - Monitor Low-Level Test Results in the Model Testing Dashboard
Run subsystem-level tests and analyze aggregated model coverage. - Hide Requirements Metrics in Model Testing Dashboard and in API Results
Hide requirements metrics to display only the metrics for your test case breakdown, model test status, and model coverage. - 以编程方式收集模型测试工件的度量
使用脚本来评估基于需求的测试的质量。 - Collect Requirements-Based Testing Metrics Using Continuous Integration
Use a continuous integration system to test models and assess requirements-based testing completeness. - Model Testing Metrics
Use the model testing metrics to return metric data on the status and quality of your model testing.
代码测试
- View Status of Code Testing Activities for Software Units in Project
Use the SIL Code Testing or PIL Code Testing dashboards to assess the compliance of software-in-the-loop (SIL) and processor-in-the-loop (PIL) code testing. - Identify and Troubleshoot Gaps in Code Testing Results and Coverage
Use the code testing dashboards to assess and address code testing issues. - Collect Code Testing Metrics Programmatically
Use a script to assess the status and quality of your code testing. - Code Testing Metrics
Use the code testing metrics to return metric data on the status and quality of your software-in-the-loop (SIL) and processor-in-the-loop (PIL) testing.
工件可追溯性
- Create Project to Use Model Design and Model Testing Dashboards
Create a project for your model and use the dashboards to analyze the files in your project. - Manage Project Artifacts for Analysis in Dashboard
Set up and manage a project that uses the dashboards. - Categorize Models in Hierarchy as Components or Units
Label models by their testing interface to more easily track requirements-based testing activities for a model hierarchy. - Explore Traceability Information for Units and Components
View traceability relationships for project artifacts like models, libraries, data dictionaries, requirements, tests, and test results. - Monitor Artifact Traceability and Detect Outdated Results with Digital Thread
Monitor the relationships between artifacts and identify outdated results. - View Artifact Issues in Project
Identify and fix the artifact issues that can lead to incorrect metric results. - Resolve Missing Artifacts, Links, and Results
Troubleshoot artifact tracing and analysis in the dashboards.