在TestManag​er的CallBac​ks中,如何获得下一​个测试案例的信息?

1 次查看(过去 30 天)
Shangjun Xie
Shangjun Xie 2024-10-22
编辑: Shangjun Xie 2024-10-22
我希望能在当前案例A执行的时候,在CallBacks中,得知下一个测试案例B的信息,从而在CleanUp时决定是否需要调整 “ModelSetting”和“fast restart”选项,但是我不知道该怎么获得。
当有多个测试案例时,全部测试的时长对我们很重要,尤其是存在SIL测试时。我的测试案例,是先测MIL后测SIL。
测试案例目录举例:
Test File
├─ Test_Suite_MIL
├─ Baseline_Test_Case_A(多个iterations,部分iterations设置为disenable)
├─ Baseline_Test_Case_B
├─ Baseline_Test_Case_C
└─ Baseline_Test_Case_D
├─ Test_Suite_SIL
├─ Baseline_Test_Case_A(多个iterations,部分iterations设置为disenable)
├─ Baseline_Test_Case_B
├─ Baseline_Test_Case_C
└─ Baseline_Test_Case_D
└─ ....
└─ ....
由于我不希望每次更新MIL下的案例AAA后,再去更新SIL下的案例AAA,我总是从MIL下复制到SIL。所以部分设置,使用模型中的设置,而不是用TestManager去覆盖。
目前测试案例运行后,我在CallBacks中,只能获得最后一个当前iterations所在的Case和Suite相关的信息,似乎无法获得下一个iterations。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Inputs 的更多信息

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!