CN-122018488-A - Test method and system for remote control vehicle test bench
Abstract
The invention provides a test method and a test system for a remote control car, which belong to the technical field of automobiles, acquire test cases and signal mapping files, generate control instructions corresponding to a remote control car test flow based on the test cases and the signal mapping files, generate test signals based on the control instructions by simulation equipment and send the test signals to tested equipment, feed back test results, and compare the test results with expected results of the test cases. According to the invention, a flexible and easy-to-use remote control vehicle test platform is constructed by adopting a cloud deployment method through module separation and configuration uploading in a step mode, and test cases and signal mapping files can be automatically generated based on a generating tool, so that different vehicle types or hardware can be quickly replaced and adapted, the overall reconstruction cost caused by equipment replacement is reduced, manual writing workload can be saved, and a new flow of quick iterative adaptation is supported.
Inventors
- ZHU JINGWEN
- LUO CHEN
- Chu Ruoru
- LI ZUJI
- WANG CHAO
Assignees
- 东风汽车集团股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260312
Claims (10)
- 1. The test method of the remote control car test bench is characterized by comprising the following steps of: acquiring a test case and a signal mapping file; Generating a control instruction corresponding to a remote control vehicle test flow based on the test case and the signal mapping file; The simulation equipment generates a test signal based on the control instruction and sends the test signal to the tested equipment; And feeding back the test result, and comparing the test result with the expected result of the test case.
- 2. The method of claim 1, wherein the simulation device has a plurality of groups of modular drive interfaces, and wherein the corresponding drive interfaces are invoked based on the test case.
- 3. The method for testing the remote control test bench according to claim 1, wherein the obtaining the test case and signal mapping file comprises: Generating a signal mapping file and a test case configuration file by using tool standardization, and deploying the signal mapping file and the test case configuration file on a cloud; The upper computer obtains a test case configuration file and a mapping file from the cloud based on a remote control vehicle test flow.
- 4. The method for testing the remote control vehicle test bench according to claim 3, wherein the generating the signal mapping file and the test case configuration file using tool standardization and deploying them in the cloud comprises: and deploying a plurality of remote control vehicle test flow modules in the cloud, wherein the remote control vehicle test flow modules comprise signal mapping files, and calling the signal mapping files of the corresponding remote control vehicle test flow modules based on the remote control vehicle test flow input by the upper computer.
- 5. The method for testing the remote control vehicle test bench according to claim 3, wherein the generating the signal mapping file and the test case configuration file using tool standardization and deploying them in the cloud comprises: the test case configuration file is generated according to the automatic standard after the input specific flow is analyzed, and comprises a button to be clicked, an initial value of a related signal and an expected result.
- 6. The method for testing the remote control test bench according to claim 1, wherein the generating the control command corresponding to the remote control test procedure based on the test case and the signal mapping file comprises: And displaying keys corresponding to the remote control vehicle testing flow on the upper computer, and clicking the keys which the control instruction needs to click in sequence based on image recognition.
- 7. The method of claim 1, wherein Flask is used to develop web pages including program and configuration replacement operation portals, real vehicle environment simulation portals, and automatic test configuration portals at the cloud.
- 8. A test system for a remote control test bench configured to implement the method of any of claims 1-7, comprising: The cloud acquires the test case and the signal mapping file; The upper computer generates a control instruction corresponding to the remote control vehicle test flow based on the test case and the signal mapping file; And the simulation device generates a test signal based on the control instruction and sends the test signal to the tested device.
- 9. An electronic device, comprising: one or more processors; A memory for storing one or more programs; when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1 to 7.
- 10. A computer readable medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any of claims 1 to 7.
Description
Test method and system for remote control vehicle test bench Technical Field The invention relates to the technical field of automobiles, in particular to a remote control automobile testing method and system. Background The automatic test bench of the remote control vehicle generally comprises three parts, namely tested hardware, real vehicle signal simulation equipment and an upper computer with test cases. The tested hardware is generally referred to as tbox, the real vehicle signal simulation device is generally a CAN analyzer, and the upper computer is generally control software (with test case) of the simulation device. In the software development process, along with the change of the demand, project and signal simulation hardware, the upper computer of the automatic test bench closely related to the actual demand is inevitably changed, and the upper computer software needs to be updated in real time. The existing deployment scheme widely used is also to manually adjust the upper computer drive, manually write test cases according to requirements, and deploy the test cases on the upper computer in a combined way. Usually, a special tester is required to be familiar with the signal simulation hardware drive and secondary development thereof, read through related requirements, reasonably set test cases, write related programs and deploy the related programs in an upper computer. And then waiting for the upper computer software to output a test result. The development and deployment of the upper computer software are relatively complicated, the control of the signal simulation equipment is understood from the requirement, and then the signal simulation equipment is combined into an available upper computer program, so that time and labor are wasted, the upper computer program can only serve one version of requirement and one project, the test cases contained in the upper computer program are written manually, the personnel unfamiliar with the configuration file are not friendly, and whether the test cases are reasonable or not cannot be judged. Disclosure of Invention The invention aims to solve at least one technical problem in the prior art, and provides a remote control vehicle testing method and a remote control vehicle testing system. In a first aspect, an embodiment of the present invention provides a testing method for a remote control vehicle test bench, including: acquiring a test case and a signal mapping file; Generating a control instruction corresponding to a remote control vehicle test flow based on the test case and the signal mapping file; The simulation equipment generates a test signal based on the control instruction and sends the test signal to the tested equipment; And feeding back the test result, and comparing the test result with the expected result of the test case. In some of these embodiments, the simulation device has multiple sets of modular drive interfaces, and the corresponding drive interfaces are invoked based on the test cases. In some embodiments, the obtaining the test case and signal mapping file includes: Generating a signal mapping file and a test case configuration file by using tool standardization, and deploying the signal mapping file and the test case configuration file on a cloud; The upper computer obtains a test case configuration file and a mapping file from the cloud based on a remote control vehicle test flow. In some embodiments, the generating the signal mapping file and the test case configuration file using tool normalization and deploying them to the cloud comprises: and deploying a plurality of remote control vehicle test flow modules in the cloud, wherein the remote control vehicle test flow modules comprise signal mapping files, and calling the signal mapping files of the corresponding remote control vehicle test flow modules based on the remote control vehicle test flow input by the upper computer. In some embodiments, the generating the signal mapping file and the test case configuration file using tool normalization and deploying them to the cloud comprises: the test case configuration file is generated according to the automatic standard after the input specific flow is analyzed, and comprises a button to be clicked, an initial value of a related signal and an expected result. In some embodiments, the generating, based on the test case and the signal mapping file, a control instruction corresponding to a remote control testing procedure includes: And displaying keys corresponding to the remote control vehicle testing flow on the upper computer, and clicking the keys which the control instruction needs to click in sequence based on image recognition. In some of these embodiments, a Flask framework is used to develop web pages at the cloud, including program and configuration replacement operation portals, real vehicle environment simulation portals, and automatic test configuration portals. In a second aspect, an embodiment of the present inve