1
Safe Vehicle Speed is greater or equal to 30kph AND
Safe Vehicle Speed is less than or equal to 120kph.
Safe Vehicle Speed is less than 30kph OR
Safe Vehicle Speed is greater than 120kph.
SafeVehSpd is greater or equal to 30kph AND
SafeVehSpd is less than or equal to 120kph.
SafeVehSpd is less than 30kph OR
SafeVehSpd is greater than 120kph.
if((SafeVehSpd >= 30) && (SafeVehSpd <= 120)){
Acc_ActSt = READY;
}
else if((SafeVehSpd < 30) || (SafeVehSpd > 120)){
Acc_ActSt = SUPPRESSED;
}
else{
}
分析待测单元有哪些输入信号和输出信号
编写一系列的输入信号值,并同时写出这些输入信号值所对应的正确的输出信号值。我们把这个叫做“测试集”。
以测试集中的输入信号值为输入,运行单元代码。如果输出信号的值和测试集中的正确输出信号值相同,则功能测试通过。
[0, 30)
[30, 120]
(120,500]
Turn ECU on;
Set all wheel speed at 0;
Turn ACC function on;
Observe ACC status to be SUPPRESSED;
Gradually increase all wheel speed to 31 kph;
Observe ACC status change to READY after 30 kph;
Gradually increase all wheel speed to 121 kph;
Observe ACC status change to SUPPRESSED;
Gradually decrease all wheel speed to 119 kph;
Observe ACC status change to READY below 120 kph;
Gradually decrease all wheel speed to 29 kph;
Observe ACC status change to SUPPRESSED;
Turn ECU off.
需要把trigger和recover的情况都覆盖到。事实上这个测试用例也可以用来测试ACC-Req 002, 这就是“一对多”的情况。
已完成
数据加载中