【CANoe】CAPL中测试控制函数和故障注入函数的使用
发布时间:2023年12月20日
1、介绍

2、示例脚本【可结合总线报文的变化进行理解】
testcase TC01()
{
TestCaseTitle("TC01","TC01");
testDisableMsg(BMS_100ms);
testwaitfortimeout(10000);
testEnableMsg(BMS_100ms);
testwaitfortimeout(10000);
TestDisableMsgAllTx("Vector_XXX");
testwaitfortimeout(10000);
testEnableMsgAllTx("Vector_XXX");
testwaitfortimeout(10000);
testSetEcuOffline("Vector_XXX");
testwaitfortimeout(10000);
testSetEcuOnline("Vector_XXX");
testwaitfortimeout(10000);
TestSetMsgCycleTime(BMS_100ms, 300);
testwaitfortimeout(10000);
TestResetMsgCycleTime(BMS_100ms);
testwaitfortimeout(10000);
TestSetMsgDLC(BMS_100ms, 4);
testwaitfortimeout(10000);
TestResetMsgDLC(BMS_100ms);
testwaitfortimeout(10000);
TestDisableMsgAllTx("Vector_XXX");
testwaitfortimeout(10000);
testSetMsgEvent(BMS_100ms);
testwaitfortimeout(10000);
}
void MainTest ()
{
TC01();
}
文章来源:https://blog.csdn.net/sinat_40003796/article/details/135109650
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!