Driving function test method, storage medium and computer equipment
By generating key-value pairs arranged in execution order, and triggering the corresponding signal when the trigger condition is satisfied, the problem of small application scope of driving function simulation testing in the prior art is solved, and flexible and accurate testing of multiple driving functions is achieved. Reduce costs and improve efficiency.
Patent Information
- Application Number
- CN202410978811.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-12-03
AI Technical Summary
The existing driving function simulation test methods have a small scope of application, and it is impossible to effectively test the superposition and jump triggering of multiple driving functions. The test process is inflexible, high cost and low efficiency.
By generating key-value pairs arranged in execution order, including trigger conditions and interactive signals, triggering corresponding signals in response to the corresponding signals when the trigger conditions are met, the test of multiple driving functions is realized, and the test files are spliced in sequence to adapt to the jump function test. .
It realizes flexible and accurate testing of multiple driving functions, reduces the time and cost of on-road testing, improves testing efficiency, and is suitable for a wider range of functional testing scenarios.
Smart Images

Figure CN119064025A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and in particular to a driving function testing method, storage medium and computer equipment. Background Art
[0002] Under the definition of L2 autonomous driving functions, autonomous vehicles can control the steering and acceleration and deceleration of the vehicle, and realize some automated driving functions such as adaptive cruise control, automatic brake assistance, lane keeping and automatic parking. The activation and exit of these functions in actual driving requires the interaction between the autonomous driving system and the human driver. These interactions may be realized by the vehicle-side computer control through specific buttons, dials or vehicle touch screens, or may be realized through the control assistance of chassis hardware such as throttle, brake and steering wheel.
[0003] In order to ensure the normal operation of these autonomous driving functions, the corresponding functions need to be tested. The testing of autonomous driving systems and functions mainly includes on-road testing and simulation testing. During the on-road testing, the corresponding autonomous driving system needs to be deployed on the vehicle, and targeted scenarios for testing driving functions need to be set up. The driver interacts with the vehicle-side computer or chassis hardware to trigger the corresponding functions. This testing method takes a lot of time and cost, and may cause damage to vehicles and personnel.
[0004] In order to ensure the safety of vehicles and personnel on the road, the effectiveness and reliability of the autonomous driving system and functions can be verified in advance through simulation testing. However, the existing simulation testing methods generally target a single autonomous driving function and can only test a single autonomous driving function. They cannot test the superposition of multiple driving functions, or the jump triggering between multiple driving functions. They have a limited scope of application and are prone to misoperation. Moreover, when a new single autonomous driving function needs to be tested, the simulation test needs to be reconstructed, and it is usually difficult to adjust the test process, which lacks flexibility, is costly, and inefficient. Summary of the invention
[0005] The present application mainly provides a driving function testing method, storage medium and computer equipment, aiming to solve the problem of small application scope of existing driving function simulation tests.
[0006] In order to solve the above technical problems, the technical solution adopted by the present application is: to provide a driving function test method. The driving function test method comprises: generating at least one key-value pair arranged in execution order based on the interactive behavior of realizing the driving function to be tested, the key-value pair comprising a corresponding trigger condition and an interactive signal; in response to the trigger condition being satisfied, triggering the corresponding interactive signal.
[0007] In some embodiments, in response to the trigger condition being met, before triggering the corresponding interaction signal, it also includes: in response to the trigger condition of the first key-value pair not being met, determining that the test of the driving function to be tested does not meet the test initial condition.
[0008] In some embodiments, in response to the trigger condition being met and triggering the corresponding interaction signal, it also includes: in response to the current key-value pair being the last key-value pair, determining that the test of the driving function to be tested has passed; in response to the current key-value pair not being the last key-value pair, detecting whether the trigger condition in the next key-value pair in sequence is met.
[0009] In some embodiments, in response to the current key-value pair not being the last key-value pair, after detecting whether the trigger condition in the next key-value pair in sequence is met, it also includes: in response to the trigger condition of the next key-value pair being met, triggering the interaction signal of the next key-value pair; in response to the trigger condition of the next key-value pair not being met, detecting whether the trigger condition of the current key-value pair is still met.
[0010] In some embodiments, in response to the trigger condition of the next key-value pair not being met, after detecting whether the trigger condition of the current key-value pair is still met, it also includes: in response to the trigger condition of the current key-value pair still being met, re-triggering the interaction signal of the current key-value pair; in response to the trigger condition of the current key-value pair not being met, determining that the test of the driving function to be tested has failed.
[0011] In some embodiments, the driving function testing method further includes: in response to determining that the test of the driving function to be tested does not meet the test initial conditions, feeding back a test initial condition not met report and exiting the test of the driving function to be tested; in response to determining that the test of the driving function to be tested passes, feeding back a test pass report; in response to determining that the test of the driving function to be tested fails, feeding back a test failure report.
[0012] In some embodiments, the generating of at least one key-value pair arranged in execution order based on the interactive behavior that realizes the driving function to be tested includes: determining the corresponding trigger condition and the interactive signal based on the interactive behavior that realizes the driving function to be tested; combining the trigger condition and the interactive signal into at least one key-value pair arranged in execution order using a streaming structure, wherein the key-value pair is stored in a test file in a preset format, and the test file is used to test the driving function to be tested based on the key-value pair when called.
[0013] In some embodiments, the driving function testing method further includes: splicing the plurality of test files in the test order of the driving functions to be tested, so that when the test files are called in sequence, the plurality of driving functions to be tested that are jumped are tested.
[0014] In order to solve the above technical problems, another technical solution adopted in the present application is: providing a storage medium, on which program data is stored, characterized in that when the program data is executed by a processor, the steps of the driving function testing method as described above are implemented.
[0015] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a computer device, which includes a processor and a memory connected to each other, the memory stores a computer program, and when the processor executes the computer program, the steps of the driving function test method as mentioned above are implemented.
[0016] The beneficial effects of the present application are as follows: Different from the prior art, the present application discloses a driving function test method, storage medium and computer equipment. The present application simulates the interactive behavior of the driving function to be tested, generates key-value pairs arranged in the execution order of the interactive behavior, so that the corresponding interactive signal can be triggered when the triggering condition of the interactive behavior is met, and can be used to implement the test of all driving functions that interact through conditional signals. The method can also be used to test multiple driving functions with jumps, and can also parse the superimposed driving function tests into corresponding key-value pairs arranged in the execution order to perform corresponding tests. It can be applied to a wider range of functional test scenarios. When a new driving function needs to be tested, the corresponding process of the test can be adjusted by modifying or adding the corresponding key-value pairs, which has high flexibility and applicability. The method also effectively reduces the time and cost required for on-road testing, avoids the risks that may arise from actual testing, and realizes accurate and reliable testing of the driving function to be tested, which is conducive to reducing the cost of driving function testing and improving the efficiency of driving function testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0018] Figure 1 It is a flowchart of an embodiment of a driving function testing method provided by the present application;
[0019] Figure 2It is a flowchart of another embodiment of the driving function testing method provided by the present application;
[0020] Figure 3 It is a flowchart of another embodiment of the driving function testing method provided by the present application;
[0021] Figure 4 yes Figures 1 to 3 A flowchart of an embodiment of step 10 in any embodiment;
[0022] Figure 5 It is a structural schematic diagram of an embodiment of a storage medium provided by the present application;
[0023] Figure 6 It is a structural diagram of an embodiment of a computer device provided by the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", "third" in the embodiments of the present application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the feature defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically limited. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] This application provides a driving function testing method, see Figure 1 , Figure 1 1 is a flow chart of an embodiment of a driving function testing method provided by the present application, the driving function testing method comprising:
[0028] Step 10: Generate at least one key-value pair arranged in execution order based on the interactive behavior that implements the driving function to be tested, wherein the key-value pair includes a corresponding trigger condition and an interactive signal.
[0029] Step 20: In response to the trigger condition being met, trigger a corresponding interaction signal.
[0030] When the driving function is implemented, it usually relies on the interaction between the vehicle-side computer or chassis hardware and the human driver. For example, when the NCA function (Navigated Combined Autonomous, Urban Intelligent Driving Navigation Assistance System) needs to be activated, the vehicle-side needs to be turned on so that the driver can select the navigation destination. After selecting the destination, the vehicle-side will return multiple route information to the destination, so that the driver can choose a route from the multiple optional routes. The vehicle-side will feedback the corresponding navigation information based on the selected route and send the corresponding signal to activate the NCA function. Among them, the interactive behavior of the human driver can also be automatically simulated and triggered through specific programs or rules to achieve the simulation of the interactive behavior of the corresponding driving function.
[0031] The driving function to be tested is the driving function that needs to be tested. For example, the interactive behavior of the driving function to be tested, including the activation of the NCA function, can usually be divided into multiple conditional signals. These conditional signals trigger corresponding interactive signals for signal interaction when the corresponding trigger conditions are met. These trigger conditions and interactive signals are determined one by one in the execution order. When the trigger conditions are met in turn and the corresponding interactive signals are triggered in turn, the corresponding driving function to be tested can be realized.
[0032] Due to the one-to-one correspondence between the trigger condition and the interactive signal, each condition and signal can be combined into a key-value pair of "{trigger condition: interactive signal}", and the corresponding interactive signal is triggered in response to the trigger condition in the key-value pair being met. Therefore, during the activation, operation and exit process of the corresponding function, the interactive behavior of the driving function to be tested can be split and sorted in the order of execution to obtain at least one key-value pair arranged in the order of execution. The activation process of the NCA function in the above example can be represented by a series of key-value pairs, such as {power on: select destination}, {return route information: select route}, {return navigation information: start function} and other key-value pairs executed in sequence to test the activation process as described above.
[0033] Among them, whether the trigger condition is met can be determined in a variety of ways, and different trigger conditions are determined in different ways. Specifically, whether the trigger condition is met can be determined by different sensors or detection units, or by receiving specific signals. For example, the above-mentioned power-on trigger condition can be determined by the identifier returned by the vehicle end, or by the power-on detection system, or by the corresponding power relay feedback, etc., and the above-mentioned conditions for returning route information and returning navigation information can be determined by corresponding image, text, voice or code signal detection.
[0034] Similarly, there are multiple ways to trigger interactive signals. Specifically, interactive signals can be triggered by sending specific signals, executing specific actions, and calling specific interfaces, so as to reflect the interaction between a human driver or a specific simulation system and the vehicle. For example, the above-mentioned interactive signals for selecting a destination and selecting a route can be triggered by directly receiving touch screen control, language input, or gesture recognition of a human driver or simulation system, or by first triggering an interactive signal and waiting for corresponding interactive feedback, or by directly calling a specific interface for selection, etc., while the above-mentioned interactive signal for starting the function can be triggered by sending a corresponding start signal or specific instruction to the vehicle, or by calling a specific interface on the vehicle, etc.
[0035] After the key-value pair consisting of the trigger condition and the corresponding interaction signal is established, the corresponding interaction signal can be triggered in response to the trigger condition being met to test the corresponding driving function. After each trigger condition is met in turn and the corresponding interaction signal is triggered in turn, it can be determined that the test has passed. When judging the trigger condition, it can be set to judge after a certain response time, or sample and judge according to the set frequency and time interval, and judge whether the trigger condition is met within the time or frequency, and after exceeding the time or frequency, it can be judged that the corresponding trigger condition is not met.
[0036] The above steps can test the driving function in a more structured and automated way, significantly improving the efficiency, accuracy and consistency of the test. By simulating the interactive behavior of the driving function to be tested, a key-value pair arranged in the execution order of the interactive behavior is generated, so that the corresponding interactive signal can be triggered when the triggering condition of the interactive behavior is met. It can be used to implement the test of all driving functions that interact through conditional signals. The method can also be used to test multiple driving functions with jumps, and the superimposed driving function tests can also be parsed into corresponding key-value pairs arranged in the execution order to perform corresponding tests. It can be applied to a wider range of functional test scenarios. When a new driving function needs to be tested, the corresponding test process can be adjusted by modifying or adding the corresponding key-value pairs, which has high flexibility and applicability. The method also effectively reduces the time and cost required for on-road testing, avoids the risks that may arise from actual testing, and realizes accurate and reliable testing of the driving function to be tested, which is conducive to reducing the cost of driving function testing and improving the efficiency of driving function testing.
[0037] See also Figure 2 , Figure 2 It is a flow chart of another embodiment of the driving function testing method provided by the present application.
[0038] Optionally, before triggering a corresponding interaction signal in response to the trigger condition being met, the method further includes:
[0039] Step 19: In response to the trigger condition of the first key-value pair not being satisfied, determining that the test of the driving function to be tested does not satisfy the test initial condition.
[0040] During the driving function test, ensuring that the initial test conditions are met is directly related to the progress of the driving function test. Taking the above-mentioned NCA function test as an example, during the NCA function activation test, the initial condition is that the vehicle side is turned on. If the vehicle side is not turned on, the subsequent corresponding interactive processing cannot actually be performed; and during the NCA function operation test, the initial condition is that the NCA function is started. If the function is not started, even if the subsequent trigger conditions are met, the function is not actually implemented; and during the NCA function exit test, the initial condition is that the NCA function is running. If the function is not in operation, then the exit operation test will lose its meaning. Therefore, for the driving function test, ensure that these initial conditions are met, so that the subsequent test process can proceed smoothly and the test results will have reference value.
[0041] Therefore, before officially triggering the interaction signal corresponding to the key-value pair, it is necessary to first verify whether the trigger condition of the first key-value pair is met, that is, whether the initial test condition is met. When the trigger condition of the first key-value pair is not met, it means that the starting condition of the test has not been met. If the test is forced at this time, it may not only cause confusion in the test process, but also may result in wrong test results due to imperfect test environment or conditions. By judging in advance whether the initial test condition, that is, the trigger condition of the first key-value pair, is met, invalid testing can be avoided when the initial test condition is not met, thereby saving test resources and time, ensuring that the subsequent test process is carried out at the correct starting point, and improving the accuracy and reliability of the test.
[0042] Optionally, after the corresponding interaction signal is triggered in response to the trigger condition being met, the method further includes:
[0043] Step 31: In response to the current key-value pair being the last key-value pair, determining that the test of the driving function to be tested passes.
[0044] Step 32: In response to the current key-value pair not being the last key-value pair, detecting whether a trigger condition is satisfied in the next key-value pair in sequence.
[0045] When the trigger condition of the last key-value pair is met and the corresponding interaction signal is triggered, it means that each trigger condition has been met and all preset interaction behaviors have been triggered in the corresponding execution order, indicating that the driving function can operate normally and orderly under the test conditions and meets the expected behavioral performance. On this basis, it can be determined that the test of the driving function to be tested has passed.
[0046] However, if the current key-value pair is not the last one, that is, the test has not yet reached the final stage, it is necessary to continue to detect whether the trigger condition in the next key-value pair is met to ensure the completeness and accuracy of the test, and to ensure that all preset interactive behaviors can be correctly triggered and executed.
[0047] Optionally, when the current key-value pair is not the last key-value pair, after detecting whether the trigger condition is met in the next key-value pair in sequence, the method further includes:
[0048] Step 41: In response to the triggering condition of the next key-value pair being met, trigger the interaction signal of the next key-value pair
[0049] Step 42: In response to the trigger condition of the next key-value pair not being satisfied, detecting whether the trigger condition of the current key-value pair is still satisfied.
[0050] In the process of the driving function test method, if the current key-value pair is not the last one in the execution order, it is necessary to continue to test based on the subsequent key-value pairs. When the trigger condition of the next key-value pair is met, the corresponding interaction signal can be triggered, and accordingly, the next key-value pair can be used as the new current key-value pair, that is, it can be judged whether the new current key-value pair is the last key-value pair. If it is still not the last key-value pair, it will continue to advance to the subsequent key-value pairs for testing, so that each key-value pair arranged in the execution order can be traversed until the last key-value pair is tested, and it is judged whether the test is successful, so as to achieve a complete and accurate driving function test process.
[0051] In the process of advancing, there may be situations where the key-value pairs are not satisfied, that is, the triggering conditions of the next key-value pair are not met. This situation may occur due to factors such as environmental interference, system abnormalities, or interaction delays. In this case, it is not advisable to continue the test blindly. You can judge the preconditions of the next key-value pair, that is, the triggering conditions of the current key-value pair, and reconfirm whether the triggering conditions of the current key-value pair are still met. Since the triggering conditions of the current key-value pair and the corresponding interaction signals are the basis for the subsequent key-value pair-based test process to continue, in some cases, it is necessary to be based on the satisfaction of the previous triggering conditions, or the triggering of the previous interaction signal is required to meet the next triggering conditions. Therefore, by reconfirming the triggering conditions of the current key-value pair, it is possible to effectively reduce the situation where the triggering conditions of the next key-value pair are not met due to factors such as failure to send interaction signals, interaction delays, or because the current triggering conditions are no longer met.
[0052] Optionally, in response to the trigger condition of the next key-value pair not being satisfied, after detecting whether the trigger condition of the current key-value pair is still satisfied, the method further includes:
[0053] Step 51: In response to the triggering condition of the current key-value pair still being satisfied, re-trigger the interaction signal of the current key-value pair.
[0054] Step 52: In response to the trigger condition of the current key-value pair not being satisfied, determining that the test of the driving function to be tested has failed.
[0055] When the trigger condition of the next key-value pair is not met, it is judged whether the trigger condition of the current key-value pair is still met, so as to determine that the trigger condition of the next key-value pair is not met because the trigger condition of the current key-value pair is no longer met. When the trigger condition is still met, the interaction signal of the current key-value pair is re-triggered to reduce the problem of the trigger condition of the next key-value pair not being met due to signal sending failure or interaction delay.
[0056] When it is found through testing that the triggering conditions of the current key-value pair are still met, you can try to re-trigger the interaction signal of the current key-value pair, which is equivalent to adding a fault-tolerant mechanism to the test process, which helps to eliminate problems caused by factors such as failure to send interaction signals or interaction delays, so that subsequent test processes can continue. However, if it is found through testing that the triggering conditions of the current key-value pair are no longer met, then this usually means that the test environment has changed. These changes may be caused by the triggering of certain termination conditions specific to certain driving test functions, or changes in vehicle status caused by changes in certain mechanisms or environmental states. In this case, it can be determined that the test of the driving function to be tested has failed, which is equivalent to adding a termination condition to the test process, which can terminate the test in a timely manner to avoid wasting more test resources and time.
[0057] Through the execution of the above steps, a complete and systematic driving function test process is realized, taking into account multiple convenient conditions such as the initial conditions, end conditions, termination conditions and fault-tolerant conditions of the driving test, so as to achieve a more comprehensive, accurate, flexible and reliable test of the driving function, avoid the waste of test resources and test time caused by continuing to test when the initial conditions are not met or the test environment changes, improve the efficiency of driving function testing, and reduce testing costs.
[0058] See also Figure 3 , Figure 3 yes Figure 1 and Figure 2 A schematic flow chart of the combination of the steps in the embodiment.
[0059] Optionally, before, in response to the trigger condition of the first key-value pair not being satisfied, determining that the test of the driving function to be tested does not satisfy the test initial condition, and in response to the trigger condition being satisfied, triggering the corresponding interaction signal, the method further includes:
[0060] Step 18: Determine whether the trigger condition of the first key-value pair is met.
[0061] This step 18 is a judgment link that diverts the test process to step 19 or step 20. When the trigger condition of the first key-value pair is met, step 20 is executed, that is, the interactive signal corresponding to the first key-value pair is sent, and when the trigger condition of the first key-value pair is not met, step 19 is executed to determine that the test of the driving function to be tested does not meet the initial test condition. Since both step 19 and step 20 are responsive execution steps, after judging whether the trigger condition of the first key-value pair is met through step 18, the response condition of step 19 or step 20 can be met, so as to execute the corresponding steps, and classify and process the situations of meeting the trigger condition of the first key-value pair and not meeting the trigger condition of the first key-value pair.
[0062] Optionally, before determining that the test of the driving function to be tested passes in response to the current key-value pair being the last key-value pair, and before detecting whether a trigger condition in the next key-value pair in sequence is satisfied in response to the current key-value pair being not the last key-value pair, the method further includes:
[0063] Step 30: Determine whether the current key-value pair is the last key-value pair.
[0064] This step 30 is a judgment link that diverts the test process to step 31 and step 32. When the current key-value pair is the last key-value pair, step 31 is executed to determine whether the test of the driving function to be tested has passed. When the current key-value pair is not the last key-value pair, step 32 is executed to continue the process and determine whether the trigger condition in the next key-value pair in sequence is met. Since both step 31 and step 32 are responsive execution steps, after judging whether the current key-value pair is the last key-value pair through step 30, the response condition of step 31 or step 32 can be met, so as to execute the corresponding steps, and classify the situations where the current key-value pair is the last key-value pair and the current key-value pair is not the last key-value pair.
[0065] Optionally, the triggering of corresponding interaction signals in the above steps 20, 41 and 51 is performed by the same signal interaction unit.
[0066] The above steps 20, 41 and 51 all include actions that trigger corresponding interaction signals, and therefore can be executed by the same signal interaction unit. For example, the vehicle computer can serve as a signal interaction unit, and send interaction signals to the corresponding vehicle-side device or hardware chassis through its wired or wireless communication method, and display them in the form of images, text or audio, and receive and analyze manual or machine interaction operations on the vehicle computer to achieve corresponding interactive behaviors of driving function tests.
[0067] By triggering the corresponding interactive signal through the same signal interaction unit, only a single signal is sent each time, which can effectively reduce the signal interference and interaction rhythm confusion that may be caused by using multiple different signal interaction units, ensure the consistency and accuracy of signal transmission, and effectively improve the reliability and efficiency of driving function testing, reduce the complexity of the test system, and make the test process easier to manage and control. Optionally, the driving function test method also includes:
[0068] Step 61: In response to determining that the test of the driving function to be tested does not meet the test initial conditions, a report that the test initial conditions are not met is fed back, and the test of the driving function to be tested is exited.
[0069] Step 62: In response to determining that the test of the driving function to be tested has passed, feeding back a test pass report.
[0070] Step 63: In response to determining that the test of the driving function to be tested fails, feeding back a test failure report.
[0071] When it is detected that the test of the driving function to be tested does not meet the initial test conditions, the test system will immediately generate and feedback a report that the initial test conditions are not met, and at the same time exit the current test of the driving function to be tested. This step ensures that the test process will not continue if the preset conditions are not met, avoiding unnecessary waste of resources and time. When the test system determines that the test of the driving function to be tested has passed, it will generate and feedback a test pass report, indicating that the current driving function performs normally under the given test conditions and meets the expected test requirements, which is the most ideal result in the test process. When the system detects that the test cannot continue during the test because the trigger conditions are no longer met or the environment changes, it will generate and feedback a test failure report to promptly notify the tester of the test failure and provide the specific reasons for the failure, which will help the tester quickly locate the problem and make corresponding adjustments and optimizations.
[0072] Through the above steps, a feedback mechanism is set up during the driving function test, and various results of the test process are recorded and reported, which helps to improve the transparency and traceability of the test, and can timely understand the test situation based on the feedback data and information. Subsequently, road testing, factory sales, or targeted optimization and maintenance can be carried out based on the corresponding feedback, helping relevant personnel to better evaluate and handle the corresponding driving functions.
[0073] Optionally, see Figure 4 , generating at least one key-value pair arranged in execution order based on the interactive behavior that implements the driving function to be tested, which can be executed as follows:
[0074] Step 11: Based on the interactive behavior of realizing the driving function to be tested, determine the corresponding trigger condition and interactive signal.
[0075] Step 12: Use a streaming structure to combine the trigger condition and the interaction signal into at least one key-value pair arranged in an execution order, wherein the key-value pair is stored in a test file of a preset format, and the test file is used to test the driving function to be tested based on the key-value pair when called.
[0076] In the process of generating at least one key-value pair arranged in the order of execution based on the interactive behavior of the driving function to be tested, it is necessary to fully analyze the interactive behavior of the driving function to be tested, determine the corresponding trigger conditions and corresponding interactive signals, and determine the execution order of each trigger condition and interactive signal to ensure the integrity of the process and the rationality of the interactive logic, and ensure that each interactive behavior of the driving function to be tested can be accurately mapped to the corresponding trigger condition and interactive signal. For example, when testing the automatic parking function of an autonomous driving vehicle, the following interactive behaviors may be encountered: the vehicle is turned on to detect the parking space, and automatically switches to the parking mode after detecting the parking space, controls the steering wheel and brakes to park, and reports the completion of parking after parking is completed. Then the trigger conditions include detecting the parking space, entering the parking mode, and completing the parking, and the corresponding interactive conditions include switching to the parking mode, controlling the steering wheel and brakes to park, and reporting the completion of parking.
[0077] After determining the corresponding trigger conditions and interaction signals, the trigger conditions and interaction signals can be matched one by one in the execution order to form the key-value pairs required for the subsequent steps. The automatic parking process in the above example can be matched one by one in the execution order, and the generated {trigger condition: interaction signal} key-value pairs include {power on: detect parking space} {detect parking space: switch to parking mode}, {enter parking mode: control the steering wheel and brake to park}, and {complete parking: report parking completion}.
[0078] This method uses a streaming structure to combine the trigger condition and the interactive signal into at least one key-value pair arranged in the order of execution, and stores it. Among them, the streaming structure is a linear and sequential structured method. In the streaming structure, data is transmitted in the form of a stream and executed in the order of the stream. Combining key-value pairs through the streaming structure is conducive to the execution of each key-value pair in the order of execution to complete the corresponding driving function test. The streaming structure can link the trigger condition and the interactive signal together, so that the corresponding interactive signal can be easily triggered according to the trigger condition in the test project. At the same time, by storing the key-value pairs under the streaming structure in a test file of a preset format, the test file also has a clear structural feature, which is easy to understand and easy to design a corresponding program for calling. By calling the test file to detect the corresponding trigger condition and trigger the corresponding interactive signal, accurate, efficient, flexible and convenient testing of various driving functions can be achieved.
[0079] Optionally, generating at least one key-value pair arranged in execution order based on the interactive behavior for implementing the driving function to be tested further includes:
[0080] Step 13: Multiple test files are spliced according to the test order of the driving functions to be tested, so that when the test files are called in sequence, the multiple driving functions to be tested that are jumped are tested.
[0081] In actual testing, the driving function of a vehicle is often a process of multiple continuous jumps, which may involve different trigger conditions and interactive behaviors. For example, in autonomous driving, the activation of the NCA function and the start of autonomous driving may be performed continuously. The key-value pairs for activating the NCA function include the aforementioned {power on: select the destination}, {return route information: select the route}, {return navigation information: start the NCA function}, while the key-value pairs corresponding to the start of autonomous driving may only include {switch to the autonomous driving model: control the steering wheel and brake}. Then, when the function is implemented, the test files storing the key-value pairs can be spliced in the order of execution, that is, they can be spliced into key-value pairs arranged in the order of execution, such as the generated key-value pairs in order of {power on: select the destination}, {return route information: select the route}, {return navigation information: start the function}, {switch to the autonomous driving model: control the steering wheel and brake}.
[0082] By splicing these test files in the order of the actual vehicle function test, the test system can simulate the complete process from vehicle startup to the activation of each function, so as to comprehensively evaluate the performance of the driving function in various driving scenarios and in coordination with other functions turned on. By splicing these files in the order of the test, this application can realize continuous testing of multiple driving functions to be tested, so as to more comprehensively and accurately evaluate the performance of the vehicle in various driving scenarios, improve the flexibility and scalability of the test, and enable the test system to adapt to the test requirements of different vehicle models and different driving function joint debugging, and realize a wider range of driving function tests.
[0083] In addition, the method of splitting the interactive behavior of the driving function into key-value pairs for testing can also effectively test the superposition of the interactive behaviors of multiple driving functions to be tested at the same time. For example, the key-value pairs of multiple function tests can be split and recombined into a new test file that arranges the key-value pairs in a reasonable execution order. Each key-value pair or strongly associated key-value pair can also be stored separately or provided with an independent interface, and the key-value pairs can be called according to the actual test design corresponding program. Different test priorities can also be assigned to the key-value pairs in each test function, and the trigger conditions and corresponding interactive behaviors of the preceding and important tests can be given higher priorities and tested first. In actual applications, the test system can also dynamically adjust the order and combination of key-value pairs in the test file according to the test requirements to meet the test requirements of different vehicle models and different driving functions.
[0084] Through the above steps, not only can accurate testing of a single driving function be achieved, but also effective simulation and testing of the situations where multiple driving functions work simultaneously or in a continuous jump manner can be performed, thereby more comprehensively evaluating the performance of the vehicle in various driving scenarios.
[0085] See also Figure 5 , Figure 5 It is a structural diagram of an embodiment of the storage medium provided by the present application.
[0086] The storage medium 70 stores program data 71. When the program data 71 is executed by the processor, the following is achieved: Figures 1 to 4 Driving function test method described.
[0087] The program data 71 is stored in a storage medium 70, and includes a number of instructions for enabling a network device (such as a router, a personal computer, a server, or other network device) or a processor to execute all or part of the steps of the method described in each embodiment of the present application.
[0088] Optionally, the storage medium 70 may be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or other media that can store the program data X1.
[0089] See also Figure 6 , Figure 6 It is a structural schematic diagram of an embodiment of a computer device provided by the present application.
[0090] The computer device 80 includes a processor 82 and a memory 81 connected to each other. The memory 81 stores a computer program. When the processor 82 executes the computer program, the following is achieved: Figures 1 to 4 The driving function test method described herein. The memory 81 may include a storage medium 80, or may be other independently developed memory.
[0091] Different from the prior art, the present application discloses a driving function test method, storage medium and computer equipment. By simulating the interactive behavior of the driving function to be tested, a key-value pair arranged in the execution order of the interactive behavior is generated, so that the corresponding interactive signal can be triggered when the triggering condition of the interactive behavior is met. It can be used to implement the test of all driving functions that interact through conditional signals. The method can also be used to test multiple driving functions with jumps, and the superimposed driving function tests can also be parsed into corresponding key-value pairs arranged in the execution order to perform corresponding tests. It can be applied to a wider range of functional test scenarios. When a new driving function needs to be tested, the corresponding process of the test can be adjusted by modifying or adding the corresponding key-value pairs, which has high flexibility and applicability. The method also effectively reduces the time and cost required for on-road testing, avoids the risks that may arise from actual testing, and realizes accurate and reliable testing of the driving function to be tested, which is conducive to reducing the cost of driving function testing and improving the efficiency of driving function testing.
[0092] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer device embodiment and the storage medium embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0093] The present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed methods, storage media, and computer devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0096] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0097] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A driving function testing method, characterized in that: include: generating at least one key-value pair arranged in execution order based on the interactive behavior that realizes the driving function to be tested, wherein the key-value pair includes a corresponding trigger condition and an interactive signal; In response to the trigger condition being met, the corresponding interaction signal is triggered.
2. The driving function testing method according to claim 1, characterized in that: Before the corresponding interaction signal is triggered in response to the trigger condition being satisfied, the method further includes: In response to the trigger condition of the first key-value pair not being satisfied, it is determined that the test of the driving function to be tested does not satisfy a test initial condition.
3. The driving function testing method according to claim 1, characterized in that: After the corresponding interaction signal is triggered in response to the trigger condition being satisfied, the method further includes: In response to the current key-value pair being the last key-value pair, determining that the test of the driving function to be tested passes; In response to the current key-value pair not being the last key-value pair, detecting whether the trigger condition in the next key-value pair in sequence is satisfied.
4. The driving function testing method according to claim 3, characterized in that: After the response that the current key-value pair is not the last key-value pair, detecting whether the trigger condition in the next key-value pair in sequence is satisfied, the method further includes: In response to the triggering condition of the next key-value pair being satisfied, triggering the interaction signal of the next key-value pair; In response to the trigger condition of the next key-value pair not being satisfied, detecting whether the trigger condition of the current key-value pair is still satisfied.
5. The driving function testing method according to claim 4, characterized in that: After the trigger condition of the next key-value pair is detected to be still satisfied in response to the trigger condition of the next key-value pair being satisfied, the method further includes: In response to the triggering condition of the current key-value pair still being satisfied, re-triggering the interaction signal of the current key-value pair; In response to the triggering condition of the key-value pair not being satisfied at present, it is determined that the test of the driving function to be tested has failed.
6. The driving function testing method according to claim 1, characterized in that: The driving function testing method further comprises: In response to determining that the test of the driving function to be tested does not satisfy the test initial condition, feeding back a report that the test initial condition is not satisfied, and exiting the test of the driving function to be tested; In response to determining that the test of the driving function to be tested passes, feeding back a test pass report; In response to determining that the test of the driving function to be tested fails, a test failure report is fed back.
7. The driving function testing method according to claim 1, characterized in that: The generating of at least one key-value pair arranged in execution order based on the interactive behavior for realizing the driving function to be tested comprises: Determining the corresponding trigger condition and the interaction signal based on the interactive behavior that realizes the driving function to be tested; A streaming structure is used to combine the trigger condition and the interaction signal into at least one key-value pair arranged in an execution order, wherein the key-value pair is stored in a test file of a preset format, and the test file is used to test the driving function to be tested based on the key-value pair when called.
8. The driving function testing method according to claim 7, characterized in that: The generating of at least one key-value pair arranged in execution order based on the interactive behavior of realizing the driving function to be tested also includes: The plurality of test files are spliced in the test order of the driving functions to be tested, so that when the test files are called in sequence, the plurality of driving functions to be tested that are jumped are tested.
9. A storage medium having program data stored thereon, characterized in that: When the program data is executed by a processor, the steps of the driving function testing method according to any one of claims 1 to 8 are implemented.
10. A computer device, characterized in that: The method comprises a processor and a memory connected to each other, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the driving function testing method according to any one of claims 1 to 8 are implemented.
