在TestManager的CallBacks中,如何获得下一个测试案例的信息?
1 次查看(过去 30 天)
显示 更早的评论
我希望能在当前案例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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Inputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!