Automatic test method, system and device for CAN communication and storage medium
The invention discloses an automatic test method, system and device for CAN communication and a storage medium, and the test method comprises the following steps: assembling source data according to a CAN communication protocol, automatically generating test data, setting an instruction sending inte...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an automatic test method, system and device for CAN communication and a storage medium, and the test method comprises the following steps: assembling source data according to a CAN communication protocol, automatically generating test data, setting an instruction sending interval and total test time of the test data based on the test data, and carrying out the automatic test of the test data through a CAN communication code. Transmitting test data to a tested program, testing based on the instruction sending interval and the total test time to obtain result data, automatically comparing and analyzing expected data and the result data, backtracking and analyzing each piece of test data based on the data type, and automatically generating a test report.
本发明公开了一种CAN通讯的自动测试方法、系统、设备及存储介质,测试方法包括如下步骤,根据CAN通讯协议,将源数据组装,自动生成测试数据,基于测试数据,设置测试数据的指令发送间隔和测试总时间,通过CAN通讯代码,把测试数据传送给被测试的程序,基于前述的指令发送间隔和测试总时间,进行测试,得到结果数据,将预期数据与结果数据自动比较分析,预期数据为前述根据协议组装的每条源数据,基于数据类型,对每条测试数据进行回溯和分析,自动生成测试报告。 |
---|