前言:报文的长度在测试中是比较关心的。在开发侧也会对报文长度进行检测,并置出相应的错误。同时在测试报告中在上报错误时将错误帧数统计上来也可以方便验证错误上报策略的正确性。
Xml中代码如下:
<testcase title="Message 0x141 dlc check" ident="Message 0x141 dlc check">
<conditions>
<dlc_ok title="dlc monitor">
<canmsg id="0x141"/>
</dlc_ok>
</conditions>
<wait title="Wait" time="5s"/>
</testcase>
测试结果如下: