The invention provides an automatic test method for automobile CAN communication module interface
software, and relates to automobile
network communication interface
software testing. A CAN protocol is loaded, a corresponding
test case is generated according to the content of the CAN protocol, the CAN protocol is analyzed, row and column information in the CAN protocol is identified, the information of all messages is obtained, two types of test cases of a *.cmm file and a *.can file are generated, wherein one type of test cases is related to a CAN sending
signal, and the other type of test cases is related to a CAN receiving
signal; and a test unit selects different tools to automatically load the case file according to the condition that the controller sends or receives the
signal, compares the
data value of the signal sent or received by the controller with the
data value sent or received in the
test case, passes the test if the
data value is consistent with the data value sent or received in the
test case, or does not pass the test, and reports the test result. According to the invention, the
test efficiency and test sufficiency of the controller CAN
communication interface software are greatly improved, and the communication
correctness of the
vehicle control unit
assembly is ensured.