CN-117055526-B - Vehicle testing method and device, electronic equipment and storage medium
Abstract
The embodiment of the invention provides a vehicle testing method, a device, electronic equipment and a storage medium, wherein the method comprises the steps that test software respectively constructs global variables for hard wire signals and bus signals of different test platforms, and stores mapping relations between the test platforms and the global variables to obtain a first mapping relation; and generating a target test script based on the target global variable, and calling test management software in the target test platform and simulation hardware of hardware in the ring test cabinet to complete remote control function test through the cooperation of the target test script. The method can ensure that the generated test script can be used on different test platforms of software and hardware, whether the hardware is dSpace, VT, ETAS or NI in a ring system or not, the automatic script written by the test software can be adapted, and the situations of incapability of multiplexing, difficult transplanting and the like do not exist.
Inventors
- YANG WU
- WANG XIAOBO
- Kuang Xunpeng
- SONG JUNNAN
- MAO YEPING
Assignees
- 重庆长安汽车股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230830
Claims (10)
- 1. A vehicle testing method, the method comprising: the test software respectively constructs global variables for hard wire signals and bus signals of different test platforms, and stores mapping relations between each test platform and the global variables to obtain a first mapping relation; Responding to a user to select a target test platform from the test platforms, and inquiring a target global variable corresponding to the target test platform from the first mapping relation; And generating a target test script based on the target global variable, and calling test management software in the target test platform and simulation hardware of hardware in a ring test cabinet to complete remote control function test through the target test script.
- 2. The method of claim 1, wherein the calling the test management software in the target test platform by the target test script and the simulation hardware of the hardware in the ring test cabinet cooperate to complete the remote control function test, comprises: The test management software is called through the target test script to control simulation hardware of the hardware in the ring test cabinet to build a specified test environment; the test software calls the graphic measurement and control software to control the interface input operation of the simulation user at the remote control terminal so as to generate a corresponding remote control instruction under the specified test environment; the remote control terminal sends the remote control instruction to a cloud server; the cloud server forwards the remote control instruction to a cabin domain controller, and the cabin domain controller converts the remote control instruction into a corresponding bus signal and then sends the bus signal to a vehicle body domain controller; the vehicle body domain controller controls the corresponding execution units to execute corresponding instruction actions according to the bus signals and receives feedback signals of the execution units; The specified simulation hardware of the hardware in the loop test cabinet determines an instruction execution result based on whether the feedback signal is received or not and whether the feedback signal is an expected signal or not, and sends the instruction execution result to the cloud server; The cloud server sends the instruction execution result to a remote control terminal; and the test software calls the graphic measurement and control software to identify the instruction execution result from the remote control terminal, and determines the test result of the corresponding remote control function based on the instruction execution result.
- 3. The method of claim 2, wherein the designated emulation hardware of the hardware in the loop test cabinet determines an instruction execution result based on whether the feedback signal is received and whether the feedback signal is an expected signal, comprising: The method comprises the steps that the specified simulation hardware of hardware in a loop test cabinet monitors communication interaction information between a cabin domain controller and a car body domain controller, if the feedback signal is received within a preset time period and is an expected signal, the instruction execution result is determined to be successful in execution, and if the feedback signal is not received within the preset time period or is not received within the preset time period, the instruction execution result is determined to be failed in execution.
- 4. The method of claim 2, wherein the graphic measurement and control software integrates an image recognition tool and an image text recognition tool, and the test software calls the graphic measurement and control software to recognize the instruction execution result from the remote control terminal, and the method comprises the following steps: And the test software intercepts an instruction execution result image from a user interface of the remote control terminal through the image recognition tool, and extracts the instruction execution result from the instruction execution result image through the image character recognition tool.
- 5. The method of claim 2, wherein the invoking the test management software via the target test script controls the hardware to simulate hardware build a specified test environment in a ring test cabinet, comprising: And invoking the test management software through the target test script to control simulation hardware of the hardware in the ring test cabinet to simulate and appoint a vehicle state, wherein the vehicle state comprises one or more of a whole vehicle OFF gear state, a dormant state, a vehicle door opening state, a vehicle door unlocking state and a driving state.
- 6. The method of claim 4, wherein the invoking the test management software via the target test script controls simulated hardware simulation of the hardware in a loop test rack to specify a vehicle state comprises: And calling the test management software through the target test script to control the simulation hardware of the hardware in the ring test cabinet to simulate the transmission of a simulation bus signal and/or a hard wire signal, so as to realize the power distribution of the whole vehicle rack and the shift switching of the whole vehicle power supply to simulate the state of the appointed vehicle.
- 7. The method of claim 2, wherein the test software invoking the graphic arts and crafts control of simulating user interface input operations at the remote control terminal, comprising: The test software determines a target remote control function to be tested; The test software transmits path information of a remote control instruction image template corresponding to the target remote control function to the graph measurement and control software; the graphic measurement and control software controls interface input operation simulating a user in the remote control terminal based on the path information, wherein the interface input operation is used for generating the remote control instruction.
- 8. A vehicle testing apparatus, the apparatus comprising: The building and storing module is used for respectively building global variables for hard wire signals and bus signals of different test platforms through the test software, and storing the mapping relation between each test platform and the global variables to obtain a first mapping relation; The query module is used for responding to the selection of a target test platform from the test platforms by a user, and querying a target global variable corresponding to the target test platform from the first mapping relation; and the generating and testing module is used for generating a target test script based on the target global variable, and calling test management software in the target test platform and simulation hardware of hardware in the ring test cabinet to complete remote control function test through the target test script.
- 9. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, implements a vehicle testing method according to any one of claims 1-7.
- 10. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements a vehicle testing method according to any of claims 1-7.
Description
Vehicle testing method and device, electronic equipment and storage medium Technical Field The present invention relates to the field of vehicle technology, and in particular, to a vehicle testing method, a vehicle testing apparatus, an electronic device, and a computer-readable storage medium. Background With the development of intelligent networking technology, remote control functions have gradually become standard allocation of vehicles. The remote control vehicle generally comprises functions of remote opening of an engine/air conditioner, remote unlocking/locking of a vehicle door, remote vehicle searching, vehicle condition information checking and the like, and the remote control vehicle function greatly improves the comfort and convenience of a user vehicle. However, as the complexity of the interaction scene of the remote control vehicle function is increased increasingly, in the actual use scene, the remote control vehicle function has the defects of frequent control failure conditions, overtime response of the controller and the like, so that the complaint of users is high. Therefore, the stability of the function is highly related to the vehicle experience of passengers, and is an important test object in the automobile part test link, and the stability is required to be fully tested and verified. At present, the test method for the function mainly adopts a real-vehicle manual test mode, so that the debugging time of each link unit of the remote control function is greatly prolonged, the effective monitoring on the conditions of failure occurrence nodes, function response time and the like is lacking, and in addition, the problems of insufficient automation degree, higher test development cost, long period and the like are also existed. Disclosure of Invention In view of the above, embodiments of the present invention have been made to provide a vehicle testing method and corresponding vehicle testing apparatus, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems. The embodiment of the invention discloses a vehicle testing method, which comprises the following steps: the test software respectively constructs global variables for hard wire signals and bus signals of different test platforms, and stores mapping relations between each test platform and the global variables to obtain a first mapping relation; Responding to a user to select a target test platform from the test platforms, and inquiring a target global variable corresponding to the target test platform from the first mapping relation; And generating a target test script based on the target global variable, and calling test management software in the target test platform and simulation hardware of hardware in a ring test cabinet to complete remote control function test through the target test script. Optionally, the calling, by the target test script, the test management software in the target test platform and the simulation hardware of the hardware in the ring test cabinet to complete the remote control function test in cooperation includes: The test management software is called through the target test script to control simulation hardware of the hardware in the ring test cabinet to build a specified test environment; the test software calls the graphic measurement and control software to control the interface input operation of the simulation user at the remote control terminal so as to generate a corresponding remote control instruction under the specified test environment; the remote control terminal sends the remote control instruction to a cloud server; the cloud server forwards the remote control instruction to a cabin domain controller, and the cabin domain controller converts the remote control instruction into a corresponding bus signal and then sends the bus signal to a vehicle body domain controller; the vehicle body domain controller controls the corresponding execution units to execute corresponding instruction actions according to the bus signals and receives feedback signals of the execution units; The specified simulation hardware of the hardware in the loop test cabinet determines an instruction execution result based on whether the feedback signal is received or not and whether the feedback signal is an expected signal or not, and sends the instruction execution result to the cloud server; The cloud server sends the instruction execution result to a remote control terminal; and the test software calls the graphic measurement and control software to identify the instruction execution result from the remote control terminal, and determines the test result of the corresponding remote control function based on the instruction execution result. Optionally, the designated emulation hardware of the hardware in the loop test rack determines an instruction execution result based on whether the feedback signal is received and whether the feedback signal is