Interface automatic testing method and device for vehicle control unit
A vehicle controller and interface technology, applied in the field of testing, can solve problems such as time-consuming, and achieve the effect of improving quality and shortening test cycles
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0077] Such as figure 2 As shown, the interface automation testing method of the vehicle controller provided by Embodiment 1 of the present invention includes:
[0078] Step 201. Obtain a database container file, and generate a test case and a test output file according to the database container file.
[0079] The invention is based on WinForm, after obtaining the database container file, adopts the CAN message analysis algorithm to generate the test case, and generates the test output file according to the database container file. Before generating the test case, it is necessary to process the database container file to generate the CAN message attribute configuration table. The CAN message attribute configuration table mainly includes the ID, signal length, stop bit, variable precision, and offset of the CAN message. , the maximum and minimum values in the physical sense, sending and receiving conditions, and the number of messages contained in the CAN ID. The test case...
Embodiment 2
[0089] Such as image 3 As shown, the interface automation testing method of the vehicle controller provided by Embodiment 2 of the present invention includes:
[0090] Step 301, acquire the database container file.
[0091] Step 302, compile and transform the database container file to generate a CAN message attribute configuration table, and generate a test output file and a test case according to the CAN message attribute configuration table.
[0092] Compile and transform the database container file to generate a CAN message attribute configuration table, wherein the CAN message attribute configuration table includes: N physical values of each variable, variable precision, offset, stop bit and signal length, among which the variable The number is M. Then generate a test output file according to the CAN message attribute configuration table.
[0093] Obtain N physical values of all variables contained in the CAN message in the CAN message attribute configuration tabl...
Embodiment 3
[0118] Such as Figure 4 As shown, the interface automation test method of the vehicle controller provided by Embodiment 3 of the present invention includes:
[0119] Step 401, import the database container file.
[0120] Step 402, generating a CAN message attribute configuration table according to the database container file.
[0121] Step 403 , generating a test case using a CAN message parsing algorithm according to the CAN message attribute configuration table.
[0122] Step 404, generating a test output file according to the attribute configuration of the CAN message.
[0123] Step 405, acquire the first information sub-file in the database container file.
[0124] Step 406, importing the software interface definition file.
[0125] Step 407, importing the project project to be tested.
[0126] Step 408: Obtain the second information subfile in the software interface definition file, and establish a corresponding matching relationship between the first information su...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com