Semantic analysis-based automatic test method for vehicle-mounted Ethernet protocol stack

A technology of automated testing and semantic analysis, applied in the field of vehicle Ethernet protocol stack testing, can solve the problems of easy introduction of human errors, time-consuming and labor-intensive, and achieve the effect of efficient testing, ensuring reliability, and reducing human factor interference.

Active Publication Date: 2020-05-15
扬州航盛科技有限公司
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the function and performance test of the vehicle Ethernet protocol stack is generally tested by manually writing test cases to test the protocol stack interface, and when the requirements change, it is necessary to rewrite the test cases, which is not only time-consuming and laborious, but also easy to introduce human errors.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Semantic analysis-based automatic test method for vehicle-mounted Ethernet protocol stack
  • Semantic analysis-based automatic test method for vehicle-mounted Ethernet protocol stack
  • Semantic analysis-based automatic test method for vehicle-mounted Ethernet protocol stack

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Such as Figure 1-3 A kind of vehicle-mounted ethernet protocol stack automatic testing method based on semantic analysis shown, comprises the following steps:

[0025] Step 1) Inject the vehicle Ethernet protocol stack interface code into the source code analysis module for analysis. The source code analysis module will analyze the lexical, grammar and semantics of the source code, and generate a syntax tree including function names, parameters and structures;

[0026] Step 2) Send the syntax tree to the test code generation module for analysis and generate test code, including:

[0027] Step 2-1) Interface data structure analysis; obtain the interface data type of the syntax tree, generate call reply data content according to the data type, generate call reply data content, expand the data structure of the function parameter until the type is POD type, and then read Take the test metadata in the test database, generate a type instance, and assign the metadata to the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a semantic analysis-based vehicle-mounted Ethernet protocol stack automatic test method. The method comprises the following steps of: 1) injecting a vehicle-mounted Ethernet protocol stack interface code into a source code analysis module for analysis to generate a syntax tree; 2) sending the syntax tree into a test code generation module for analysis to generate a test code; 3) sending the test code to a test code compiling module, compiling a corresponding test program file according to the type of the platform, transmitting test program files adaptive to different platforms to the program deployment and operation control module, and testing the protocol stack through the program deployment and operation control module, so that it is guaranteed that vehicle-mounted Ethernet protocol stack interface testing is efficiently, rapidly and accurately completed through the full-automatic process, human resource input in software testing is greatly reduced, and meanwhile human factor interference is reduced; and the reliability of the software is ensured.

Description

technical field [0001] The invention relates to a method for testing a vehicle Ethernet protocol stack, in particular to an automatic testing method for a vehicle Ethernet protocol stack based on semantic analysis. Background technique [0002] In recent years, with the application of Internet of Vehicles, unmanned driving, 5G, V2X and other technologies in the vehicle field, cars have not only met people's travel requirements, but are also developing in the direction of digitization, informationization, and entertainment. In the vehicle bus architecture, the traditional in-vehicle bus CAN bus has gradually been unable to meet the network requirements of big data and high concurrency. The vehicle bus architecture urgently needs a new type of bus to meet the needs of information exchange in the vehicle. And thus Automotive Ethernet was born. [0003] In our daily life, computers are plugged into network cables to access the Internet, using standard Ethernet. As a physical c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26H04L29/08G06F11/36G06F8/41
CPCH04L43/50H04L67/12G06F11/3684G06F8/41Y02P90/02
Inventor 邵俊卢玉斌
Owner 扬州航盛科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products