Search

CN-121979795-A - Automobile embedded software platformization test method

CN121979795ACN 121979795 ACN121979795 ACN 121979795ACN-121979795-A

Abstract

The invention relates to the technical field of automobile software testing, in particular to an automobile embedded software platform testing method which comprises the steps of S1, carrying out parameter configuration and peripheral equipment call inspection on a ECUTest testing system, S2, generating a testing case by combining a predefined writing rule, S3, inspecting the generated testing case, S4, creating an automatic testing case for ECUTest testing system execution, S5, loading the automatic testing case into a ECUTest testing system, S6, judging ECUTest whether the existing item of the automatic testing case exists in the testing system, if yes, switching the existing item into a target item to be tested in a mode of modifying a project Mapping file signal Mapping path, otherwise, importing the automatic testing case into the target item to be tested, and S7, executing the automatic testing case test of the target item through an HIL platform. The invention can improve the efficiency of the platform test of the embedded software of the automobile.

Inventors

  • CHEN WEI
  • SI HONGLU
  • LUO YI
  • ZHANG YALING

Assignees

  • 重庆青山工业有限责任公司

Dates

Publication Date
20260505
Application Date
20260123

Claims (10)

  1. 1. The method for testing the platform of the embedded software of the automobile is characterized by comprising the following steps of: s1, parameter configuration and peripheral equipment call inspection are carried out on ECUTest test systems, and the test systems are connected with an HIL platform; s2, acquiring a required signal based on the test requirement of a user, and generating a test case by combining a predefined writing rule; S3, checking the generated test cases; s4, based on the checked test cases, creating automatic test cases for ECUTest test system execution; s5, loading the automatic test cases into a ECUTest test system; S6, judging ECUTest whether the test system has an existing item which is executing the automatic test case or not, if yes, switching the existing item into a target item to be tested by modifying the Mapping path of the item Mapping file signal, otherwise, importing the automatic test case into the target item to be tested; And S7, executing the automatic test case test of the target item through the HIL platform.
  2. 2. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S1, the parameter configuration of the ECUTest testing system comprises loading hardware configuration information, loading dbc files, FIU files, A2L files and/or HEX files, and configuring testing engineering.
  3. 3. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S1, performing a peripheral call check on the ECUTest test system comprises checking whether a peripheral hardware call for testing in cooperation with the HIL platform is normal.
  4. 4. The method for testing the embedded software platform of the automobile as claimed in claim 1, wherein in the step S2, the predefined programming rules comprise programming format, keyword information, signal setting, signal reading, logic judgment and/or data processing; The generated test case includes a test case ID, a test case description, an initial condition before the case is executed, a test step, an action description, a wait time, a desired result, a time expression, and/or a time parameter.
  5. 5. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S2, the signal types of the test cases comprise A2L software variables, dbc bus signals and Simulink model variables; The processing steps for judging the signal type of the test case comprise: S201, judging whether the signal has an A2L keyword, if yes, judging that the signal is a software variable, otherwise, executing step S202; s202, judging whether a signal exists in an IO.txt file, if yes, judging that the signal is a model variable, otherwise, executing step S203; s203, judging the signal to be a dbc bus signal.
  6. 6. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S3, the checking of the generated test case comprises the following steps: analyzing the content of the test case, and judging whether the writing format, writing rule and grammar of the test case are correct.
  7. 7. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S3, the checking of the generated test case comprises the following steps: and judging whether the signal related to the analysis test case is a system-defined signal or not.
  8. 8. The method for testing the embedded software platform of the automobile as claimed in claim 1, wherein in the step S6, the step of switching the existing item to the target item to be tested by modifying the Mapping path of the item Mapping file signal comprises the following steps: s601, determining a change signal from an existing project to a target project through database file relocation; S602, marking the names of the change signals of the target items and the corresponding signal path relations through a table; s603, loading a Mapping file of a target item, and modifying the signal name of an automatic test case in the Mapping file into the name in a table; s604, adjusting ECUTest Mapping file path Mapping relation of project configuration in the test system, switching from the existing project to the target project, and loading the automatic test case.
  9. 9. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S7, grammar checking is performed on the automated test cases of the target items before the automated test case testing of the target items is performed through the HIL platform.
  10. 10. The method for testing the embedded software platform of the automobile of claim 1, wherein in step S7, after the automatic test case test of the target item is executed through the HIL platform, a corresponding test report is generated based on the test execution result and the real-time data.

Description

Automobile embedded software platformization test method Technical Field The invention relates to the technical field of automobile software testing, in particular to an automobile embedded software platformization testing method. Background Under the background of the integration of the intelligent and networking depth of the automobile, the functional complexity of the embedded software of the automobile controller shows explosive growth. From a traditional Engine Control Unit (ECU) and a gearbox control module to an automatic driving domain controller, an intelligent cabin system, a new energy MCU/BMS/VCU electric control system, a hybrid HCU and the like, the software functions deeply cover the core fields of vehicle operation control, man-machine interaction, information communication and the like. The quality of the software directly determines the safety performance, driving experience and market competitiveness of the vehicle, so that the efficient and reliable testing method becomes a key link for guaranteeing the quality of the software. However, the current test flow still mainly depends on manual operation, and the development requirement of the rapid iteration of the modern automobile software is difficult to meet. The existing test methods are mainly divided into two types, namely basic manual test and semi-automatic test. The basic manual test method is based on a requirement document, a tester analyzes functional logic piece by piece and manually writes test cases, and then manual test is executed. The process is highly dependent on experience and fineness of testers, is easy to cause case logic deviation or insufficient coverage due to subjective judgment, has long test period, and is difficult to adapt to the rapid software update rhythm. The semi-automatic test method comprises the steps of developing test cases first, and then building a test sequence in an automatic test system, wherein the core bottleneck is a conversion link of the test cases. The testers need to convert the manually written test cases into a format which can be identified by an automatic system one by one, so that the testers are required to be proficient in various test tools, and the workload is huge. In the project switching link, when a test target is switched from one project to another project, a signal mapping path (such as an association relationship of an A2L variable, a DBC bus signal or a Simulink model variable) in the test case needs to be reconfigured according to the structure of the new project. The process relies on manual modification of test case content or related configuration files, is complex in operation, and is easy to cause mapping errors due to omission, so that test failure or data deviation is caused. Especially in the parallel development scene of multiple projects, frequent project switching causes testers to be involved in repetitive labor, the multiplexing rate of test cases is extremely low, and a large amount of time is consumed in invalid configuration adjustment, but not core test verification. In summary, the prior art has significant bottlenecks in two key links of test case generation and project switching, and the problems restrict the improvement of the test efficiency and indirectly influence the development speed and the quality assurance capability of the automobile software. Therefore, a solution capable of implementing automatic generation of test cases and seamless switching of items is needed to break through the efficiency and reliability bottleneck of the current test flow. Disclosure of Invention Aiming at the defects of the prior art, the invention aims to provide the automobile embedded software platformization test method which can automatically generate the test cases meeting the specifications by combining the predefined writing rules with the test requirements, and simultaneously realize the rapid switching to the project under the condition of not modifying the test cases by modifying the signal Mapping path of the project Mapping file, thereby improving the efficiency of the automobile embedded software platformization test and further ensuring the development speed and the quality assurance capability of automobile software. In order to solve the technical problems, the invention adopts the following technical scheme: A method for testing the platform of an automobile embedded software comprises the following steps: s1, parameter configuration and peripheral equipment call inspection are carried out on ECUTest test systems, and the test systems are connected with an HIL platform; s2, acquiring a required signal based on the test requirement of a user, and generating a test case by combining a predefined writing rule; S3, checking the generated test cases; s4, based on the checked test cases, creating automatic test cases for ECUTest test system execution; s5, loading the automatic test cases into a ECUTest test system; S6, judging ECUTest whether the test s