摘要
本文通过对CAN的特点和CAN总线驱动软件测试的特点进行分析,提出了CAN总线驱动软件的测试设计方案,该方案覆盖了测试的全过程,包括测试内容选取、测试环境搭建、测试用例设计、测试驱动编写,以及测试用例执行。此外还介绍了在具有15个节点的CAN总线网络环境中进行CAN驱动软件测试的实践过程。
This paper analyzes characteristics of CAN bus and CAN bus driver test, proposes a test design scheme of testing for CAN bus driver software covering the whole process, which consists of test requirements extraction, testing environment building, test case design, test driven design and test case execution. In the latter half part, the paper introduces a practice of CAN driver test under the environment of a CAN bus with 15 nodes.