Search

CN-121979169-A - Vehicle testing method, device, equipment, storage medium and program product

CN121979169ACN 121979169 ACN121979169 ACN 121979169ACN-121979169-A

Abstract

The application provides a vehicle testing method, a device, equipment, a storage medium and a program product, wherein the vehicle comprises a left vehicle body domain controller and a right vehicle body domain controller, and the method comprises the steps of obtaining target test cases comprising test mode information and test working conditions; and controlling the left vehicle body domain controller and/or the right vehicle body domain controller to execute interaction operation corresponding to the test working condition according to the test mode information and the test working condition, and simultaneously acquiring interaction information corresponding to the left vehicle body domain controller and/or the right vehicle body domain controller to determine a test result corresponding to the target test case. It can be understood that the test mode can be switched by the test mode information in the test case, so that the test mode can be dynamically switched in the test process without interrupting the mode switching, and the test continuity is improved. In addition, the left vehicle body domain controller and the right vehicle body domain controller can be tested for the vehicle without the central coordination unit, so that the test compatibility is improved to a certain extent.

Inventors

  • LI XINGWANG
  • WANG XIAOMENG
  • Liu changye
  • WU JIALUN
  • FU JI

Assignees

  • 上汽通用五菱汽车股份有限公司

Dates

Publication Date
20260505
Application Date
20251222

Claims (10)

  1. 1. A method of testing a vehicle, the vehicle including a left body domain controller and a right body domain controller, the method comprising: Acquiring target test cases comprising test mode information and test working conditions, wherein the test mode information is used for representing that the left vehicle body domain controller and the right vehicle body domain controller are subjected to cooperative test or independent test; According to the test mode information and the test working conditions, controlling the left car body domain controller and/or the right car body domain controller to execute interactive operation corresponding to the test working conditions; in the process of controlling the left vehicle body domain controller and/or the right vehicle body domain controller to execute the interactive operation, acquiring interactive information corresponding to the left vehicle body domain controller and/or the right vehicle body domain controller; and determining a test result corresponding to the target test case according to the interaction information of the left vehicle body domain controller and/or the right vehicle body domain controller.
  2. 2. The method of claim 1, wherein the obtaining the target test case comprises: And inputting the historical test data of the left vehicle body domain controller and the right vehicle body domain controller into a test case generation model, and outputting a target test case corresponding to the historical test data.
  3. 3. The method of claim 2, wherein the outputting the target test case corresponding to the historical test data comprises: determining a history test case corresponding to the history test data; According to a preset action space, the test parameters corresponding to the historical test cases are adjusted, the target test cases corresponding to the historical test cases are output, and the action space is used for representing an adjustment rule of the test parameters corresponding to the historical test cases.
  4. 4. A method according to claim 3, wherein the anomaly probability of the historical test case is greater than or equal to a preset anomaly probability threshold value, the anomaly probability being used to characterize the possibility of anomalies in the vehicle after the left and/or right body domain controllers perform operations corresponding to the historical test case.
  5. 5. The method of claim 4, further comprising, after the determining the test result corresponding to the target test case: Determining a reward function value corresponding to the historical test case according to a preset reward rule, wherein the reward function value is used for representing the capability of the test case generation model to find an abnormal test case corresponding to the historical test case, and the abnormal test case is a test case for testing the left vehicle body domain controller and/or the right vehicle body domain controller when the vehicle is abnormal; If the reward function value corresponding to the historical test case is larger than a preset reward function threshold, continuously adjusting the test parameters corresponding to the historical test case according to a preset action space, and outputting a target test case corresponding to the historical test case.
  6. 6. The method of claim 3, wherein the outputting the target test case corresponding to the historical test case comprises: and if the adjusted test parameters are different from the test parameters corresponding to the tested cases, outputting the target test cases corresponding to the historical test cases.
  7. 7. A test apparatus for a vehicle, the vehicle including a left body domain controller and a right body domain controller, the apparatus comprising: The system comprises a target test case acquisition module, a test mode information acquisition module and a test condition acquisition module, wherein the target test case acquisition module is used for acquiring a target test case comprising test mode information and a test condition, and the test mode information is used for representing that the left vehicle body domain controller and the right vehicle body domain controller are subjected to cooperative test or independent test; the control module is used for controlling the left vehicle body domain controller and/or the right vehicle body domain controller to execute interactive operation corresponding to the test working condition according to the test mode information and the test working condition; the interaction information acquisition module is used for acquiring interaction information corresponding to the left car body domain controller and/or the right car body domain controller in the process of controlling the left car body domain controller and/or the right car body domain controller to execute the interaction operation; And the test result determining module is used for determining a test result corresponding to the target test case according to the interaction information of the left vehicle body domain controller and/or the right vehicle body domain controller.
  8. 8. An electronic device, comprising: A processor; A memory; And a computer program, wherein the computer program is stored in the memory, which when executed by the processor, causes the electronic device to perform the method of any one of claims 1 to 6.
  9. 9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
  10. 10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.

Description

Vehicle testing method, device, equipment, storage medium and program product Technical Field The present application relates to the field of vehicle technologies, and in particular, to a vehicle testing method, device, apparatus, storage medium, and program product. Background As automotive electronics architecture evolves toward a domain-centralized direction, left and right body domain controllers deployed in a distributed manner are increasingly employed to control the left and right side bodies of a vehicle. The left body domain controller is primarily responsible for controlling the left side components of the body, e.g., the left side windows, left side doors, etc., and the right body domain controller is primarily responsible for controlling the right side components of the body, e.g., the right side windows, right side doors, etc. To verify the functional validity of the left and right body domain controllers, it is often necessary to test them. In the related art, one scheme is a multi-controller parallel test, but the test mode needs to be preset, and the test mode cannot be dynamically switched in the test process, so that poor test consistency can be caused, and the other scheme depends on a central coordination unit in a vehicle to uniformly schedule a left vehicle body domain controller and a right vehicle body domain controller so as to test the left vehicle body domain controller and the right vehicle body domain controller. But this approach lacks test compatibility for vehicles without a central coordination unit. It should be noted that the information disclosed in the background section of the present application is only for enhancement of understanding of the general background of the present application and should not be taken as an admission or any form of suggestion that this information forms the prior art that is well known to a person skilled in the art. Disclosure of Invention The application provides a vehicle testing method, device, equipment, storage medium and program product, which are beneficial to solving the problems that the testing mode can not be dynamically switched in the testing process and the testing compatibility is lower in the related technology. In a first aspect, an embodiment of the present application provides a method for testing a vehicle, where the vehicle includes a left body domain controller and a right body domain controller, the method includes: Acquiring target test cases comprising test mode information and test working conditions, wherein the test mode information is used for representing that the left vehicle body domain controller and the right vehicle body domain controller are subjected to cooperative test or independent test; According to the test mode information and the test working conditions, controlling the left car body domain controller and/or the right car body domain controller to execute interactive operation corresponding to the test working conditions; in the process of controlling the left vehicle body domain controller and/or the right vehicle body domain controller to execute the interactive operation, acquiring interactive information corresponding to the left vehicle body domain controller and/or the right vehicle body domain controller; and determining a test result corresponding to the target test case according to the interaction information of the left vehicle body domain controller and/or the right vehicle body domain controller. In one possible implementation manner, the obtaining the target test case includes: And inputting the historical test data of the left vehicle body domain controller and the right vehicle body domain controller into a test case generation model, and outputting a target test case corresponding to the historical test data. In one possible implementation manner, the outputting the target test case corresponding to the historical test data includes: determining a history test case corresponding to the history test data; According to a preset action space, the test parameters corresponding to the historical test cases are adjusted, the target test cases corresponding to the historical test cases are output, and the action space is used for representing an adjustment rule of the test parameters corresponding to the historical test cases. In one possible implementation manner, the anomaly probability of the historical test case is greater than or equal to a preset anomaly probability threshold, and the anomaly probability is used for representing the possibility that the vehicle is abnormal after the left vehicle body domain controller and/or the right vehicle body domain controller execute the operation corresponding to the historical test case. In one possible implementation manner, after the determining the test result corresponding to the target test case, the method further includes: Determining a reward function value corresponding to the historical test case according to a preset reward rule,