文章目录
- 1、介绍
- 2、示例脚本【可结合总线报文的变化进行理解】
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();
}