Simulation test method, device, electronic device and storage medium

By designing simulation testing methods and devices, the automated testing process is realized, which solves the problems of low efficiency and high cost in autonomous driving simulation testing, and improves testing efficiency and effectiveness.

CN115268298BActive Publication Date: 2024-09-03CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210815416.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-08
Publication Date
2024-09-03
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

The lack of automated tools in autonomous driving simulation testing results in low efficiency, high cost, and high reliance on manual labor, which requires a lot of manpower and time.

Method used

A simulation test method and device are designed, including an opening and closing control module, a communication module and a test execution module. By opening the scene simulation module and the algorithm module under test, the intelligent driving vehicle simulation scenario is loaded, the test observation rules are established and the observation results are recorded. Implement automated testing processes.

Benefits of technology

Successfully realized the automation of simulation testing, liberated manpower, improved testing efficiency and effectiveness, and reduced costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115268298B
    Figure CN115268298B
Patent Text Reader

Abstract

The present invention provides a simulation test method, device, electronic device and storage medium. The method starts a scenario simulation module and a tested algorithm module, loads an intelligent driving vehicle simulation scenario of the scenario simulation module, associates a test case with the intelligent driving vehicle simulation scenario, establishes a test observation rule according to the test case, observes the test process, and records the observation results. The method can convert tedious manual test steps into a system script and then execute it through a computer or other equipment, successfully achieving the expectation of automated serial simulation testing, liberating manpower, improving test efficiency and test effectiveness, and reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of automobile technology, and specifically to a simulation test method, device, electronic device and storage medium. Background Art

[0002] With the continuous breakthroughs in autonomous driving technology, autonomous driving simulation testing has attracted more and more attention and favor from major traditional OEMs and autonomous driving technology companies, and has gradually become an indispensable part of the autonomous driving R&D process. Automating simulation testing is a technical challenge in the field of autonomous driving simulation, and is the only way to improve test efficiency and standardize test processes.

[0003] Automated testing is a process that converts human-driven testing behavior into machine execution. In the field of autonomous driving simulation testing, there are scenario libraries and a large number of test cases to call. If the automation of simulation testing cannot be achieved, the manpower and time required will be immeasurable, and simulation test engineers will also face tedious and boring physical work. Therefore, it is necessary to introduce automated testing theory into the field of autonomous driving simulation testing, which is also a cross-industry technology integration.

[0004] In related technologies, autonomous driving simulation testing often needs to be done manually, which is inefficient, costly, and highly dependent on manual labor. Summary of the invention

[0005] In view of the above-mentioned shortcomings of the prior art, the present invention provides a simulation test method, device, electronic device and storage medium to solve the above-mentioned technical problems.

[0006] The present invention provides a simulation test device, the device comprising:

[0007] The on / off control module is used to control the on / off of the scene simulation module and the on / off of the algorithm module under test;

[0008] A communication module, connected to the algorithm communication module in the algorithm module under test, and connected to the scene simulation module, for communicating with the algorithm module under test and the scene simulation module;

[0009] A test execution module is used to load the intelligent driving vehicle simulation scenario of the scenario simulation module, associate the test case with the intelligent driving vehicle simulation scenario, establish test observation rules according to the test case and observe the test process, and record the observation results.

[0010] In one embodiment of the present invention, the opening and closing control module includes:

[0011] A scene simulation control module, used to control the opening and closing of the scene simulation module;

[0012] Algorithm control module, used to control the opening and closing of the algorithm module under test;

[0013] The simulation delay module is used to control the scene simulation control module to complete the control of the scene simulation module to start within a preset simulation delay time when the scene simulation module start instruction is obtained.

[0014] In one embodiment of the present invention, the opening and closing control module further includes:

[0015] The algorithm delay module is used to control the algorithm control module to complete the control of the startup of the algorithm module under test within a preset algorithm delay time when the startup instruction of the algorithm module under test is obtained.

[0016] In one embodiment of the present invention, the device further includes:

[0017] The algorithm encapsulation module is used to encapsulate multiple sub-algorithms in the algorithm under test to obtain the algorithm module under test.

[0018] The present invention provides a simulation test method, the method comprising:

[0019] Enable the scene simulation module and the algorithm under test module;

[0020] Loading the intelligent driving vehicle simulation scenario of the scenario simulation module, and associating the test case with the intelligent driving vehicle simulation scenario;

[0021] Establish test observation rules according to the test cases, observe the test process, and record the observation results.

[0022] In one embodiment of the present invention, establishing a test observation rule according to the test case and observing the test process includes:

[0023] Execute the algorithm under test based on the intelligent driving vehicle simulation scenario and the test case;

[0024] If the execution is completed and the preset observation conditions are met, the observation result is that the test passed;

[0025] If the preset observation condition is not met during the execution process, and the duration of not meeting the preset observation condition exceeds the preset duration, the observation result is a test failure, and the execution of the algorithm under test is controlled to exit.

[0026] In one embodiment of the present invention, before loading the intelligent driving vehicle simulation scenario of the scenario simulation module and associating the test case with the intelligent driving vehicle simulation scenario, the method includes:

[0027] A protocol file is established with the signal flow of the algorithm under test, and a communication connection is established between the test execution module and the algorithm communication module in the algorithm module under test. The test execution module is used to load the intelligent driving vehicle simulation scenario of the scenario simulation module, associate the test case with the intelligent driving vehicle simulation scenario, and establish a test observation rule according to the test case and observe the test process, and record the observation results. The test execution module includes the algorithm under test.

[0028] In one embodiment of the present invention, the scene simulation module and the algorithm module under test are enabled, including:

[0029] When a scene simulation module start instruction is obtained, the scene simulation module is started within a preset simulation delay time;

[0030] When the instruction to start the algorithm module under test is obtained, the startup of the algorithm module under test is controlled to be completed within the preset algorithm delay time.

[0031] The present invention provides an electronic device, comprising:

[0032] one or more processors;

[0033] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the simulation test method as described in any one of the above embodiments.

[0034] The present invention provides a computer-readable storage medium on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the simulation test method described in any one of the above embodiments.

[0035] Beneficial effects of the present invention: The simulation test method, device, electronic device and storage medium of the present invention, by opening the scenario simulation module and the algorithm module to be tested, loading the intelligent driving vehicle simulation scenario of the scenario simulation module, associating the test case with the intelligent driving vehicle simulation scenario, establishing test observation rules according to the test case and observing the test process, and recording the observation results, can convert tedious manual test steps into system scripts and then execute them through computers and other devices, successfully achieving the expected automated serial simulation test, freeing up manpower, improving test efficiency and test effectiveness, and reducing costs.

[0036] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0038] Figure 1 is a schematic diagram of an implementation environment of a simulation test method shown in an exemplary embodiment of the present application;

[0039] Figure 2 is a flow chart of a simulation test method shown in an exemplary embodiment of the present application;

[0040] Figure 3 This application Figure 3 is a flowchart showing an exemplary embodiment of the present application for establishing test observation rules according to test cases and observing the test process;

[0041] Figure 4 is a block diagram of a simulation test device shown in an exemplary embodiment of the present application;

[0042] Figure 5 is a block diagram of an opening and closing control module shown in an exemplary embodiment of the present application;

[0043] Figure 6 is a flowchart of an execution flow of a simulation test method shown in an exemplary specific embodiment of the present application;

[0044] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0045] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0046] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0047] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0048] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a simulation test method according to an exemplary embodiment of the present application. Figure 1 As shown, an exemplary simulation test system includes at least one of a server 101 and a client 102, wherein the server 101 may include an independently operated server, a distributed server, or a server cluster consisting of multiple servers. The server 101 may include a network communication unit, a processor, a memory, etc. The server 101 may be used to execute the simulation test method provided in this embodiment. The client 102 may include physical devices of the type of smart phones, desktop computers, tablet computers, laptops, digital assistants, smart wearable devices, etc., and may also include software running in physical devices, such as web pages provided by some service providers to users, or applications provided by these service providers to users, such as client 102 may be used to respond to the triggering operation of user 103 and display the observation results to the user. Of course, the system may also only include a client, which is provided with corresponding modules to execute the simulation test method in the following embodiments.

[0049] With the continuous breakthroughs in autonomous driving technology, autonomous driving simulation testing has attracted more and more attention and favor from major traditional OEMs and autonomous driving technology companies, and has gradually become an indispensable part of the autonomous driving R&D process. Automating simulation testing is a technical challenge in the field of autonomous driving simulation, and is the only way to improve test efficiency and standardize test processes.

[0050] Automated testing is a process that converts human-driven testing behavior into machine execution. In the field of autonomous driving simulation testing, there are scenario libraries and a large number of test cases to call. If the automation of simulation testing cannot be achieved, the manpower and time required will be immeasurable, and simulation test engineers will also face tedious and boring physical work. Therefore, it is necessary to introduce automated testing theory into the field of autonomous driving simulation testing, which is also a cross-industry technology integration.

[0051] In the related art, autonomous driving simulation testing often requires manual implementation, which is inefficient, costly, and highly dependent on manual labor. To solve these problems, the embodiments of the present application respectively propose a simulation test method, a simulation test device, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail below.

[0052] See also Figure 2 , Figure 2 is a flowchart of a simulation test method shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 It should be understood that the method may also be applicable to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.

[0053] like Figure 2 As shown, in an exemplary embodiment, the simulation test method includes at least steps S201 to S203, which are described in detail as follows:

[0054] Step S201, start the scene simulation module and the algorithm module under test.

[0055] The scenario simulation module includes but is not limited to tools such as VTD (Virtual Test Drive) simulation software.

[0056] The algorithm module under test includes one or more algorithms under test. The communication between the various components in the algorithm under test is based on the communication architecture of the ZMQ communication protocol, which is encapsulated into the algorithm module under test, and each module of the algorithm under test is encapsulated into a component .so. In this way, the algorithm under test can be opened by calling the algorithm module under test.

[0057] In one embodiment, starting the scene simulation module and the tested algorithm module includes:

[0058] When a scene simulation module start instruction is obtained, the scene simulation module start is completed within a preset simulation delay time;

[0059] When the start instruction of the algorithm module under test is obtained, the start of the algorithm module under test is completed within the preset algorithm delay time.

[0060] In one embodiment, during the process of starting the scene simulation module and the algorithm module under test, a preset simulation delay time and a preset algorithm delay time are pre-set to compensate for the loading time during the VTD software startup process and the time consumption during the scene loading process.

[0061] In one embodiment, an automated scheduling tool may be written in shell language to control the opening / closing of the VTD simulation software, the opening / closing of the algorithm under test, and the serial running of the Python test script from the perspective of the Linux system.

[0062] For example, to open / close the VTD simulation software: To run / close VTD in Linux, you need to open the terminal in the Bin directory and execute the vtdStart.sh / vtdStop.sh files. Therefore, the above two .sh files are encapsulated in the automated scheduling tool and edited into vtd_start() and vtd_stop() functions. The VTD software startup process involves a certain amount of loading time, so a sleep 5 delay (preset simulation delay time) is added to the function so that VTD can be opened and loaded normally before executing the subsequent process.

[0063] For another example, similar to opening VTD, the algorithm module under test is written as a callable function task_capilot() in the automated scheduling tool, and a 14s delay (preset algorithm delay time) is set to correspond to the time consumption during the scene loading process. The closing algorithm first searches for the process port pid=$(pidof capilot) of the algorithm module under test, and then directly closes the system process kill-9$pid.

[0064] Step S202: load the intelligent driving vehicle simulation scenario of the scenario simulation module, and associate the test case with the intelligent driving vehicle simulation scenario.

[0065] The test script (each run of the simulation test method) is associated and traceable with the intelligent driving vehicle simulation scenario and test case. For example, a unified case number naming method can be adopted: each test case is named with a number 1000001, the test script is named 1000001.py, and the intelligent driving vehicle simulation scenario is named 1000001.xml. Therefore, it is clear that the intelligent driving vehicle simulation scenario that each script needs to schedule is the name of each python script + .xml. In this way, the test case can be associated with the intelligent driving vehicle simulation scenario, which is convenient for the subsequent determination of the failure location and analysis of the cause of failure when the observation result is a test failure.

[0066] Step S203: establish test observation rules according to the test case, observe the test process, and record the observation results.

[0067] In one embodiment, Figure 3 FIG. 1 is a flowchart showing an exemplary embodiment of the present application for establishing test observation rules according to test cases and observing the test process. Figure 3As shown, establishing test observation rules based on test cases and observing the test process include:

[0068] Step S301, executing the algorithm under test based on the intelligent driving vehicle simulation scenario and test cases;

[0069] Step S302: If the execution is completed and the preset observation conditions are met, the observation result is that the test passed;

[0070] Step S303: If the preset observation conditions are not met during the execution process, and the duration of not meeting the preset observation conditions exceeds the preset duration, the observation result is a test failure, and the execution of the algorithm under test is controlled to exit.

[0071] The implementation of the above process is based on the simulation time of VTD. The language description in the test case is converted into direct observation at the software interface level. A while loop and step jump mechanism are embedded. If the last step is executed and the observation condition is met, the case is judged to have passed the test. If the observation condition is not met for 15 seconds (default setting) in a certain step, the test is judged to have failed at this step. Regardless of failure or pass, the test script will exit the loop of the test logic, and then execute to write the test results into a txt text to save the results (case number_test result: 1000001_Passed).

[0072] In one embodiment, before loading the intelligent driving vehicle simulation scenario of the scenario simulation module and associating the test case with the intelligent driving vehicle simulation scenario, the method includes:

[0073] A protocol file is established with the signal flow of the algorithm under test, and a communication connection is established between the test execution module and the algorithm communication module in the algorithm module under test. The test execution module is used to load the intelligent driving vehicle simulation scenario of the scenario simulation module, associate the test case with the intelligent driving vehicle simulation scenario, and establish test observation rules according to the test case and observe the test process, and record the observation results. The test execution module includes the algorithm under test.

[0074] For example, the communication of the test method in this embodiment includes two parts. One is the communication design with the algorithm communication module (algorithm communication module) integrated in the algorithm module under test. First, a Proto protocol file is established based on the signal flow of the algorithm, and then the Python test script is connected to the simulation communication module encapsulated in C++ using Socket-based UDP communication. The second is the communication design with the VTD simulation software. The VTD software opens the port X controlled by the software internally, and the corresponding XML command can be sent to the port to control VTD. Here, the loading scene of VTD and the start / close simulation functions are mainly realized.

[0075] The simulation test method provided in this embodiment, by opening the scenario simulation module and the algorithm module under test, loads the intelligent driving vehicle simulation scenario of the scenario simulation module, associates the test case with the intelligent driving vehicle simulation scenario, establishes test observation rules according to the test case, observes the test process, and records the observation results. It can convert tedious manual test steps into system scripts and then execute them through computers and other devices, successfully achieving the expected automated serial simulation test, liberating manpower, improving test efficiency and test effectiveness, laying the foundation for simulation cloud and distributed simulation testing, and proposing an automated simulation test solution based on VTD, which has certain versatility.

[0076] Figure 4 is a block diagram of a simulation test device shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The device may also be applicable to other exemplary implementation environments and specifically configured in other devices, and this embodiment does not limit the implementation environment to which the device is applicable.

[0077] like Figure 4 As shown, the exemplary simulation test device 400 includes:

[0078] The on / off control module 401 is used to control the on / off of the scene simulation module and the on / off of the algorithm module under test;

[0079] The communication module 402 is connected to the algorithm communication module in the algorithm module under test and to the scene simulation module, and is used to communicate with the algorithm module under test and the scene simulation module;

[0080] The test execution module 403 is used to load the intelligent driving vehicle simulation scenario of the scenario simulation module, associate the test case with the intelligent driving vehicle simulation scenario, establish test observation rules according to the test case and observe the test process, and record the observation results.

[0081] In an alternative embodiment, see Figure 5 , Figure 5 A block diagram of an opening and closing control module shown in an exemplary embodiment of the present application is as follows: Figure 5 As shown, the opening and closing control module 401 includes:

[0082] The scene simulation control module 501 is used to control the opening and closing of the scene simulation module;

[0083] Algorithm control module 502, used to control the start and stop of the algorithm module under test;

[0084] The simulation delay module 503 is used to control the scene simulation control module to complete the start of the scene simulation module within a preset simulation delay time when the scene simulation module start instruction is obtained.

[0085] In an optional embodiment, the opening and closing control module further includes:

[0086] The algorithm delay module is used to control the algorithm control module to complete the control of the start of the algorithm module under test within the preset algorithm delay time when the start instruction of the algorithm module under test is obtained.

[0087] In an optional embodiment, the device further comprises:

[0088] The algorithm encapsulation module is used to encapsulate multiple sub-algorithms in the algorithm under test to obtain the algorithm module under test.

[0089] It should be noted that the simulation test device provided in the above embodiment is different from the above embodiment. Figure 2 The simulation test method provided belongs to the same concept, in which the specific way in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the simulation test device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0090] The inventors found that in the related art, autonomous driving simulation testing lacks the support of mature automated tools. The reason is that there are many types of commercial simulation software and a variety of access methods for the algorithms being tested. Therefore, it is difficult to reach a unified automated testing mode to perform simulation tests with computer programs instead of manual operations. In the related art, manual SIL simulation testing requires manual participation, whether it is opening the VTD simulation software, loading the intelligent driving vehicle simulation scene in the VTD, running the test script, opening the algorithm being tested, or closing the VTD and algorithm at the end of the simulation. At least manual operation of the GUI interface and opening the terminal under Linux to run the corresponding program code are required. Due to the cumbersome steps of the simulation test, the diversity of the simulation software and the algorithms being tested, there is no universal automated testing tool in the related art. Therefore, the embodiment of the present invention proposes a solution for automated simulation testing, which introduces automated testing theory into the SIL simulation test based on the VTD scenario simulation software, freeing up manpower and improving the effectiveness and efficiency of the simulation test while ensuring the effectiveness of the test. See Figure 6 , Figure 6 FIG. 1 is a flowchart of the execution flow of a simulation test method according to an exemplary embodiment of the present application. Figure 6 As shown, the implementation process of this method is as follows:

[0091] I. Use shell language to write an automated scheduling tool to control the opening / closing of the VTD simulation software, the opening / closing of the algorithm under test, and the serial running of the Python test script from the perspective of the Linux system.

[0092] II. Open / Close VTD simulation software: To run / close VTD in Linux, you need to open the terminal in the Bin directory and execute the vtdStart.sh / vtdStop.sh files. Therefore, the above two .sh files are encapsulated in the automatic scheduling tool and edited into vtd_start() and vtd_stop() functions. There is a certain loading time involved in the startup process of VTD software, so a sleep 5 delay is added to the function so that VTD can be opened and loaded normally before executing the subsequent process.

[0093] III. Open / Close the algorithm under test: The communication between the components in the algorithm under test is based on the communication architecture of the ZMQ communication protocol. It is encapsulated into the algorithm under test module, and each module of the algorithm is encapsulated into a component .so. Then, the terminal of the path is opened to run the algorithm under test module program to open the algorithm. Similar to the opening of VTD, the algorithm under test module is written as a callable function task_capilot() in the automated scheduling tool, and a 14s delay is set to correspond to the time consumption during the scene loading process. The closing algorithm first searches for the process port pid=$(pidofcapilot) of the algorithm under test module, and then directly closes the system process kill-9$pid.

[0094] IV. Python test script: The python test script is a third-party observation and communication script that is decoupled from VTD and the algorithm module under test, which includes test logic, automated scheduling pre-embedded, VTD loading of intelligent driving vehicle simulation scenarios, and automated result generation.

[0095] It can be understood that the opening and closing control module is exemplified as Figure 6 The automated scheduling tool in the communication module is Figure 6 The simulation communication module shown in the figure takes the test execution module as an example. Figure 6 The test script in .

[0096] V. The communication design of the test script has two parts: the first is the communication design with the simulation communication module integrated in the framework of the algorithm module under test. First, a Proto protocol file is established based on the signal flow of the algorithm, and then the Python test script is connected to the simulation communication module encapsulated in C++ using Socket-based UDP communication. The second is the communication design with the VTD simulation software. The VTD software opens the port X controlled by the software internally, and the corresponding XML commands can be sent to the port to control VTD. Here, the functions of loading scenes and starting / closing simulation of VTD are mainly realized.

[0097] The automatic scheduling of VI and test scripts is designed based on the entire simulation project. First of all, it is clear that the test scripts, intelligent driving vehicle simulation scenarios, and test cases are related and traceable. The unified case number naming method is adopted here: each test case is named with a digital name of 1000001, the test script is named 1000001.py, and the intelligent driving vehicle simulation scenario is named 1000001.xml. Therefore, it is clear that the intelligent driving vehicle simulation scenario that each script needs to schedule is the name of each python script +.xml.

[0098] VII. The automated test logic of the test script is based on the simulation time of VTD. The language description in the test case is converted into direct observation at the software interface level. A while loop and a step jump mechanism are embedded. If the last step is executed and the observation condition is met, the case is judged to have passed the test. If the observation condition is not met for 15 seconds (default setting) in a certain step, the test is judged to have failed at this step. Regardless of failure or pass, the test script will exit the loop of the test logic, and then execute to write the test results into a txt text to save the results (case number_test result: 1000001_Passed).

[0099] VIII. The main logic of automated scheduling is to convert a manual operation of simulation testing into a shell script language. For example, there are five steps: running the vtd_Start() function, running the python test script, running the take_capilot() function (executing the algorithm under test), running vtd_Stop(), and closing the algorithm process. Therefore, the script codes of these five steps are integrated into a fuction function. The only thing that changes in the function is the python test script. Then a regular expression is designed to save the test script as a list, and finally a for loop is used to traverse the list and call the fuction function. The automated scheduling is completed until the last python test script is executed.

[0100] Through the above simulation test method, the tedious manual test steps can be converted into system scripts and then executed by computers, successfully achieving the expectation of automated serial simulation test. It liberates manpower, improves test efficiency and test effectiveness, lays the foundation for simulation cloud and distributed simulation testing, and proposes an automated simulation test solution based on VTD, which has certain versatility and achieves communication decoupling between test scripts and simulation platforms, so that the simulation process can be monitored from the perspective of a third party.

[0101] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the simulation test method provided in the above-mentioned embodiments.

[0102] Figure 7 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0103] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 1701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method described in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, the ROM 702 and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0104] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0105] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.

[0106] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0107] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0109] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the simulation test method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0110] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the simulation test method provided in each of the above embodiments.

[0111] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A simulation test device, characterized in that: The device comprises: The on-off control module is used to control the on-off of the scene simulation module and the on-off of the algorithm module under test, and the on-off control module includes: a scene simulation control module, which is used to control the on-off of the scene simulation module; an algorithm control module, which is used to control the on-off of the algorithm module under test; a simulation delay module, which is used to control the scene simulation control module to complete the control of the on-off of the scene simulation module within a preset simulation delay time when the scene simulation module on-off instruction is obtained; and an algorithm delay module, which is used to control the algorithm control module to complete the control of the on-off of the algorithm module under test within a preset algorithm delay time when the algorithm module on-off instruction is obtained; A communication module, connected to the algorithm communication module in the algorithm module under test, and connected to the scene simulation module, for communicating with the algorithm module under test and the scene simulation module; A test execution module is used to load the intelligent driving vehicle simulation scenario of the scenario simulation module, associate the test case with the intelligent driving vehicle simulation scenario, establish test observation rules according to the test case and observe the test process, and record the observation results.

2. The device according to claim 1, characterized in that The device also includes: The algorithm encapsulation module is used to encapsulate multiple sub-algorithms in the algorithm under test to obtain the algorithm module under test.

3. A simulation test method, characterized in that: The method comprises: Turning on the scene simulation module and the algorithm module under test, wherein turning on the scene simulation module and the algorithm module under test comprises: when a scene simulation module turn-on instruction is obtained, controlling the turn-on of the scene simulation module to be completed within a preset simulation delay time; when a turn-on instruction of the algorithm module under test is obtained, controlling the turn-on of the algorithm module under test to be completed within a preset algorithm delay time; Loading the intelligent driving vehicle simulation scenario of the scenario simulation module, and associating the test case with the intelligent driving vehicle simulation scenario; Establish test observation rules according to the test cases, observe the test process, and record the observation results.

4. The method according to claim 3, characterized in that Establishing test observation rules according to the test cases and observing the test process include: Execute the algorithm under test based on the intelligent driving vehicle simulation scenario and the test case; If the execution is completed and the preset observation conditions are met, the observation result is that the test passed; If the preset observation condition is not met during the execution process, and the duration of not meeting the preset observation condition exceeds the preset duration, the observation result is a test failure, and the execution of the algorithm under test is controlled to exit.

5. The method according to claim 3, characterized in that Before loading the intelligent driving vehicle simulation scenario of the scenario simulation module and associating the test case with the intelligent driving vehicle simulation scenario, the method includes: A protocol file is established with the signal flow of the algorithm under test, and a communication connection is established between the test execution module and the algorithm communication module in the algorithm module under test. The test execution module is used to load the intelligent driving vehicle simulation scenario of the scenario simulation module, associate the test case with the intelligent driving vehicle simulation scenario, and establish a test observation rule according to the test case and observe the test process, and record the observation results. The test execution module includes the algorithm under test.

6. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the simulation test method as described in any one of claims 3 to 5.

7. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the simulation test method according to any one of claims 3 to 5.