CANoe CAPL "the test module is not assigned or invalid"

在CANoe中使用Test Modules编写脚本测试,执行时提示“the test module is not assigned or invalid”

原因是在.can文件中未实现MainTest()函数。一定要写主函数!

代码格式样例:

void MainTest() // execution of CAPL test module starts from main function
{
  CheckMessage();
}

testcase CheckMessage()
{
  TestCaseTitle("testCaseDemo","check message cycle time");
  // ...
}
posted @ 2022-09-23 10:46  水一年  阅读(2408)  评论(0)    收藏  举报