功能测试、基线测试、多版本测试和并行测试
您可以在 Simulink® Test™ 中运行以下类型的测试:
功能测试 — 使用功能需求来开发测试用例和测试套件,以分析模型组件是否满足这些需求。
基线测试 — 将测试结果与包含已保存输出值的文件进行比较。
多版本测试 — 使用多个版本来运行测试,并检查结果在各版本之间是否没有变化。
并行测试 — 缩短测试执行运行时间,特别是对于需要很长时间才能完成仿真的复杂 Simulink 模型或需要很长时间才能完成运行的具有多次测试迭代的测试。要在本地计算机或集群上并行运行测试,您必须安装 Parallel Computing Toolbox™。要在远程集群或云中运行测试,您必须安装 MATLAB® Parallel Server™。
主题
- 执行功能测试并分析测试覆盖率
分析功能依存关系,测试隔离的模型组件,创建测试用例套件、测试模型和代码来实现覆盖率。
- Compare Model Output to Baseline Data
Test simulation output against a baseline.
- Run Tests in Multiple Releases of MATLAB
Compare test results across multiple MATLAB releases.
- Run Tests Using Parallel Execution
Decrease test time using Parallel Computing Toolbox or MATLAB Parallel Server.
- Override Model Parameters in a Test Case
Compare simulation to baseline data using a parameter override and the Test Manager.
- Override the Simulation Mode During Test Execution
This example shows how to override the simulation mode when you run a test.
- Test Execution Order
Order in which models load, and test cases, iterations, and callbacks run.