Program testing method, device, electronic device and storage medium

By presetting the test algorithm and target test indicator environment, the test data is automatically filtered and processed, which solves the low efficiency and low accuracy problems caused by manual participation in the existing automatic driving software testing methods, and achieves efficient test result generation.

CN116737592BActive Publication Date: 2024-10-15XIAOMI EV TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202310932062.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2024-10-15
Estimated Expiration
2043-07-26

AI Technical Summary

Technical Problem

Existing autonomous driving software testing methods rely on a large amount of manual participation, resulting in low accuracy and low efficiency of test results, and cannot effectively utilize a large amount of test data.

Method used

Test the automatic driving program through the preset test algorithm, obtain the target test indicators and environment, automatically filter and process the test data, generate the target test results, and reduce manual intervention.

Benefits of technology

It improves the efficiency and accuracy of test results, can automatically filter and process test data, and generate target test results for autonomous driving programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116737592B_ABST
    Figure CN116737592B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a program testing method, device, electronic device and storage medium, and relates to the field of autonomous driving. The method includes: testing the autonomous driving program of a vehicle through a preset test algorithm to obtain first test data. Obtain target test indicators and target test environment. Determine second test data from the first test data according to the target test indicators and target test environment. Generate target test results corresponding to the autonomous driving program according to the second test data. The present disclosure can automatically screen and process test data, generate target test results corresponding to the autonomous driving program, and improve the efficiency and accuracy of generating test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of autonomous driving, and in particular to a program testing method, device, electronic device and storage medium. Background Art

[0002] Autonomous driving software will undergo a lot of testing before being released. The general testing method is to use the collected long-mileage, scenario-based road condition data to re-inject, first to ensure that the software will not crash, and second to compare the performance with the old version of the software to determine whether the software performance has been improved. When testing the software, a variety of evaluation indicators will be used for evaluation, and a lot of data will be obtained. The process of analyzing and integrating the evaluation data to obtain test results is based on human experience and requires a lot of manual participation, resulting in low accuracy and efficiency in generating test results. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a program testing method, device, electronic device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a program testing method is provided, the method comprising:

[0005] Testing the automatic driving program of the vehicle by using a preset test algorithm to obtain first test data;

[0006] Obtain target test indicators and target test environment;

[0007] Determining second test data from the first test data according to the target test indicator and the target test environment;

[0008] Generate a target test result corresponding to the autonomous driving program based on the second test data.

[0009] Optionally, generating a target test result corresponding to the autonomous driving program according to the second test data includes:

[0010] Processing the second test data according to a preset processing method to obtain third test data;

[0011] The target test result is generated according to the third test data.

[0012] Optionally, generating the target test result according to the third test data includes:

[0013] Generate a candidate test result according to the third test data and a preset display format;

[0014] The target test result is generated according to the candidate test result and a preset template.

[0015] Optionally, generating a candidate test result according to the third test data and a preset display format includes:

[0016] determining a target display format from the preset display formats according to the target display parameters corresponding to the third test data;

[0017] The candidate test result is generated according to the third test data and the target presentation format.

[0018] Optionally, the third test data includes a plurality of groups; and determining the target display format from the preset display formats according to the target display parameters corresponding to the third test data includes:

[0019] Determining the target display format corresponding to each group of the third test data from the preset display formats according to the target display parameter corresponding to each group of the third test data;

[0020] Generating the candidate test result according to the third test data and the target presentation format includes:

[0021] The candidate test results are generated according to each group of the third test data and the target presentation format corresponding to the group of the third test data.

[0022] Optionally, generating the target test result according to the candidate test result and a preset template includes:

[0023] Determining a target template from the plurality of preset templates according to the target template parameters corresponding to the third test data;

[0024] The target test result is generated according to the candidate test result and the target template.

[0025] According to a second aspect of an embodiment of the present disclosure, a program testing device is provided, the device comprising:

[0026] A testing module is configured to test the automatic driving program of the vehicle through a preset testing algorithm to obtain first testing data;

[0027] An acquisition module, configured to acquire target test indicators and target test environment;

[0028] A determination module, configured to determine second test data from the first test data according to the target test indicator and the target test environment;

[0029] A generation module is configured to generate a target test result corresponding to the autonomous driving program based on the second test data.

[0030] Optionally, the generating module includes:

[0031] a processing submodule, configured to process the second test data according to a preset processing method to obtain third test data;

[0032] A generating submodule is configured to generate the target test result according to the third test data.

[0033] Optionally, the generating submodule is configured as follows:

[0034] Generate a candidate test result according to the third test data and a preset display format;

[0035] The target test result is generated according to the candidate test result and a preset template.

[0036] Optionally, the generating submodule is configured as follows:

[0037] determining a target display format from the preset display formats according to the target display parameters corresponding to the third test data;

[0038] The candidate test result is generated according to the third test data and the target presentation format.

[0039] Optionally, the third test data includes multiple groups; the generating submodule is configured to:

[0040] Determining the target display format corresponding to each group of the third test data from the preset display formats according to the target display parameter corresponding to each group of the third test data;

[0041] Generating the candidate test result according to the third test data and the target presentation format includes:

[0042] The candidate test results are generated according to each group of the third test data and the target presentation format corresponding to the group of the third test data.

[0043] Optionally, the generating submodule is configured as follows:

[0044] Determining a target template from the plurality of preset templates according to the target template parameters corresponding to the third test data;

[0045] The target test result is generated according to the candidate test result and the target template.

[0046] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0047] processor;

[0048] a memory for storing processor-executable instructions;

[0049] The processor is configured to execute the program testing method provided in the first aspect of the present disclosure.

[0050] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the program testing method provided in the first aspect of the present disclosure are implemented.

[0051] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0052] The present disclosure first tests the vehicle's autonomous driving program through a preset test algorithm to obtain first test data, then obtains a target test index and a target test environment, and determines second test data from the first test data based on the target test index and the target test environment, and finally generates a target test result corresponding to the autonomous driving program based on the second test data. The present disclosure can automatically screen and process the test data, generate a target test result corresponding to the autonomous driving program, and improve the efficiency and accuracy of generating test results.

[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0055] Figure 1 is a flow chart of a program testing method according to an exemplary embodiment;

[0056] Figure 2 is based on Figure 1 A flow chart of generating target test results shown in the embodiment;

[0057] Figure 3 is a flow chart of another program testing method according to an exemplary embodiment;

[0058] Figure 4 is based on Figure 3 A schematic diagram of a test result shown in the embodiment;

[0059] Figure 5 is based on Figure 3 A schematic diagram of another test result shown in the embodiment;

[0060] Figure 6 is based on Figure 3 A schematic diagram of another test result shown in the embodiment;

[0061] Figure 7 is a block diagram of a program testing device according to an exemplary embodiment;

[0062] Figure 8 is a block diagram of another program testing device according to an exemplary embodiment;

[0063] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0065] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0066] Figure 1 is a flowchart of a program testing method according to an exemplary embodiment. Figure 1 As shown, the method includes the following steps.

[0067] In step 101, the automatic driving program of the vehicle is tested by a preset test algorithm to obtain first test data.

[0068] For example, Figure 2It is a flow chart for generating target test results. First, the vehicle's autonomous driving program can be tested for multiple distance intervals, multiple test scenarios, multiple test strategies, multiple test targets, multiple evaluation indicators, and multiple statistical indicators through a preset test algorithm to obtain the first test data. Among them, the preset test algorithm can be any test algorithm for an autonomous driving program in the relevant technology, and the first test data can include all the original data obtained from the test. The distance interval can include, for example, 0-20m, 20-40m, and 40-60m intervals. The test scenarios can include, for example, sunny scenes, rainy scenes, daytime scenes, night scenes, and can also include curve scenes, intersection scenes, uphill scenes, etc. The test strategy can include, for example, multiple strategies corresponding to different sensor combinations for testing, and the test targets can include, for example, pedestrians, large vehicles, and small vehicles. The evaluation indicators can include, for example, ranging errors, speed measurement errors, etc., and the statistical indicators can include, for example, recall rate, precision rate, accuracy rate, etc.

[0069] In step 102, target test indicators and target test environment are obtained.

[0070] In step 103, second test data is determined from the first test data according to the target test indicator and the target test environment.

[0071] For example, usually, it is not necessary to use all the original data to generate the test results. The target test indicators and the target test environment can be pre-set according to actual needs, and then the second test data for generating the test results can be screened out from the first test data according to the target test indicators and the target test environment. In one embodiment, after obtaining the first test data, the pre-set target test indicators and the target test environment can be obtained, and then the second test data corresponding to the target test indicators and the target test environment can be screened out from the first test data.

[0072] The target test indicators may include at least one of multiple evaluation indicators and multiple statistical indicators, and the target test environment may include at least one of multiple test strategies, multiple test targets, multiple test scenarios, etc. For example, the target test indicators may include speed measurement error, recall rate, and accuracy rate, and the target test environment may include: sunny scene, rainy scene, curve scene, intersection scene, radar and camera combined test strategy, and small vehicles as detection targets.

[0073] In step 104, a target test result corresponding to the autonomous driving program is generated based on the second test data.

[0074] For example, the second test data may be subjected to preset processing, and the preset processing may be, for example, calculating the recall rate and precision rate of the test program, counting the ranging errors in different distance intervals, determining the error level according to a preset empirical criterion, etc. In some embodiments, the data subjected to preset processing may be directly used as the target test data. In other embodiments, the target display format may be determined, the data subjected to preset processing may be displayed through the target display format, and the display result may be used as the target test result. In other embodiments, the target display format and the target template may be determined, the data subjected to preset processing may be displayed through the target display format, and the display result may be displayed in the target template, and the file corresponding to the target template may be used as the target test result, for example, the target test result may be a version analysis report in word format. In this way, according to the target test indicators and the target test environment, the test data is automatically screened and processed, and the target test results corresponding to the autonomous driving program are generated, without manual participation, which can improve the efficiency and accuracy of generating test results. In addition, the generated target test results may be used as R&D assets to record the iteration of the software version, and may also help the algorithm analyze problems and continuously optimize to improve the performance of the software version.

[0075] In summary, the present disclosure first tests the vehicle's autonomous driving program through a preset test algorithm to obtain first test data, then obtains target test indicators and target test environment, and determines second test data from the first test data based on the target test indicators and target test environment, and finally generates target test results corresponding to the autonomous driving program based on the second test data. The present disclosure can automatically screen and process the test data, generate target test results corresponding to the autonomous driving program, and improve the efficiency and accuracy of generating test results.

[0076] Figure 3 is a flowchart of another program testing method according to an exemplary embodiment. Figure 3 As shown, step 104 can be implemented by the following steps:

[0077] In step 1041, the second test data is processed according to a preset processing method to obtain third test data.

[0078] For example, the second test data screened out from the first test data can be processed according to a preset processing method to obtain third test data that meets the test results. Different processing methods can correspond to different test indicators. In some embodiments, for test indicators including recall rate and accuracy rate data, the recall rate and accuracy rate can be evaluated according to a preset recall rate threshold and accuracy rate threshold to obtain the evaluation results of the recall rate and accuracy rate. Specifically, when the test data indicates that the recall rate is greater than or equal to the recall rate threshold, it can be determined that the recall rate is high. When the test data indicates that the recall rate is less than the recall rate threshold, it can be determined that the recall rate is low. The evaluation methods of accuracy and recall are similar and will not be repeated here. The recall rate threshold and accuracy threshold can be set based on experience.

[0079] In step 1042, a target test result is generated according to the third test data.

[0080] Wherein, step 1042 can be implemented by step A and step B:

[0081] Step A: generating candidate test results according to the third test data and a preset display format.

[0082] For example, first, a target display format may be determined from preset display formats according to a target display parameter corresponding to the third test data, and then a candidate test result may be generated according to the third test data and the target display format.

[0083] In one embodiment, a first correspondence between the test index, the test environment and the display parameter, and a second correspondence between the display format and the display parameter can be pre-established. After obtaining the third test data, the corresponding target display parameter can be searched in the first correspondence according to the test index and the test environment corresponding to the third test data, and then the corresponding target display format can be searched in the second correspondence according to the target display parameter. The display format may include: table format, curve chart format, bar chart format, etc.

[0084] Among them, the third test data may include one or more groups. When the third test data includes multiple groups, the target display format corresponding to each group of third test data can be determined from the preset display format according to the target display parameters corresponding to each group of third test data, and then the candidate test results can be generated according to each group of third test data and the target display format corresponding to the group of third test data.

[0085] For example, the third test data may include three groups, corresponding to the test data of the old version of software, the new version of software and the all-in-one machine, such as Figure 4 , Figure 5 , Figure 6As shown, the target display formats of the three sets of third test data are bar chart format, bar chart format, and curve chart format respectively. Figure 4 The test results of the test accuracy corresponding to different types of lane lines are shown in a bar chart. Figure 5 , the test results of the accuracy of the road edge correspondence are shown in a bar graph. Figure 6 ,The test errors for different distance intervals are shown in curve graphs.

[0086] The third test data may also include two groups, corresponding to the old version of the software and the new version of the software respectively. Referring to Table 1, the precision and recall rates corresponding to the test program of the new version of the software and the test program of the old version of the software are compared in different distance intervals in a tabular format.

[0087] Distance interval Accuracy Recall 0-30 New version < Old version New version < Old version 30-50 New version < Old version New version < Old version 50-80 New version < Old version New version < Old version 80-120 New version < Old version New version < Old version 120-150 New version < Old version New version < Old version 0-200 New version < Old version New version < Old version

[0088] Table 1

[0089] Step B: Generate target test results based on candidate test results and preset templates.

[0090] For example, first, a target template may be determined from a plurality of preset templates according to the target template parameters corresponding to the third test data, and then a target test result may be generated according to the candidate test results and the target template.

[0091] In other embodiments, corresponding target template parameters can be set according to the third test data, and a target template corresponding to the target template parameters can be selected from multiple preset templates. The target template parameters can be set manually based on experience, or a third correspondence between the test data and the template parameters can be preset. After obtaining the third test data, the target correspondence corresponding to the third test data can be obtained according to the third correspondence. The third correspondence can be, for example, a pre-trained target relationship model. The third test data is input into the target relationship model to obtain the target template parameters output by the target relationship model. The present disclosure does not specifically limit this.

[0092] In other embodiments, a fourth correspondence between the target template parameters and the preset templates may be established in advance, and after the target template parameters are obtained, a target template corresponding to the target template parameters may be selected from a plurality of preset templates according to the fourth correspondence, wherein each preset template includes preset text, picture insertion position, preset typesetting format, etc.

[0093] In summary, the present disclosure first tests the vehicle's autonomous driving program through a preset test algorithm to obtain first test data, then obtains target test indicators and target test environment, and determines second test data from the first test data based on the target test indicators and target test environment, and finally generates target test results corresponding to the autonomous driving program based on the second test data. The present disclosure can automatically screen and process the test data, generate target test results corresponding to the autonomous driving program, and improve the efficiency and accuracy of generating test results.

[0094] Figure 7 is a block diagram of a program testing device according to an exemplary embodiment. Figure 7 , the device 200 comprises:

[0095] The test module 201 is configured to test the vehicle's automatic driving program through a preset test algorithm to obtain first test data.

[0096] The acquisition module 202 is configured to acquire target test indicators and target test environment.

[0097] The determination module 203 is configured to determine the second test data from the first test data according to the target test indicator and the target test environment.

[0098] The generation module 204 is configured to generate a target test result corresponding to the autonomous driving program according to the second test data.

[0099] Figure 8 is a block diagram of another program testing device according to an exemplary embodiment. Figure 8 As shown, the generation module 204 includes:

[0100] The processing submodule 2041 is configured to process the second test data according to a preset processing method to obtain third test data.

[0101] The generating submodule 2042 is configured to generate a target test result according to the third test data.

[0102] In some embodiments, the generation submodule 2042 is configured to:

[0103] A candidate test result is generated according to the third test data and a preset presentation format.

[0104] Generate target test results based on candidate test results and preset templates.

[0105] In some other embodiments, the generation submodule 2042 is configured to:

[0106] A target display format is determined from preset display formats according to the target display parameters corresponding to the third test data.

[0107] A candidate test result is generated according to the third test data and the target presentation format.

[0108] In some other embodiments, the third test data includes multiple groups. The generation submodule 2042 is configured to:

[0109] According to the target display parameters corresponding to each group of third test data, a target display format corresponding to each group of third test data is determined from preset display formats.

[0110] Generating candidate test results according to the third test data and the target presentation format includes:

[0111] A candidate test result is generated according to each group of third test data and a target presentation format corresponding to the group of third test data.

[0112] In some other embodiments, the generation submodule 2042 is configured to:

[0113] A target template is determined from a plurality of preset templates according to the target template parameters corresponding to the third test data.

[0114] Generate target test results based on candidate test results and target templates.

[0115] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0116] In summary, the present disclosure first tests the vehicle's autonomous driving program through a preset test algorithm to obtain first test data, then obtains target test indicators and target test environment, and determines second test data from the first test data based on the target test indicators and target test environment, and finally generates target test results corresponding to the autonomous driving program based on the second test data. The present disclosure can automatically screen and process the test data, generate target test results corresponding to the autonomous driving program, and improve the efficiency and accuracy of generating test results.

[0117] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the program testing method provided by the present disclosure.

[0118] Fig. 9 3 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0119] Reference Fig. 9, the electronic device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .

[0120] The processing component 302 generally controls the overall operation of the electronic device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned program testing method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.

[0121] The memory 304 is configured to store various types of data to support operations on the electronic device 300. Examples of such data include instructions for any application or method operating on the electronic device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0122] The power supply component 306 provides power to the various components of the electronic device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 300.

[0123] The multimedia component 308 includes a screen that provides an output interface between the electronic device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the electronic device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0124] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the electronic device 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.

[0125] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0126] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the electronic device 300. For example, the sensor assembly 314 can detect the open / closed state of the electronic device 300, the relative positioning of components, such as the display and keypad of the electronic device 300, and the sensor assembly 314 can also detect the position change of the electronic device 300 or a component of the electronic device 300, the presence or absence of user contact with the electronic device 300, the orientation or acceleration / deceleration of the electronic device 300, and the temperature change of the electronic device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0127] The communication component 316 is configured to facilitate wired or wireless communication between the electronic device 300 and other devices. The electronic device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0128] In an exemplary embodiment, the electronic device 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned program testing method.

[0129] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the electronic device 300 to complete the above-mentioned program testing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0130] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned program testing method when executed by the programmable device.

[0131] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0132] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A program testing method, characterized in that: include: Testing the automatic driving program of the vehicle by using a preset test algorithm to obtain first test data; Obtain target test indicators and target test environment; The target test indicator includes at least one of a plurality of evaluation indicators and a plurality of statistical indicators, the evaluation indicator includes at least one of a distance measurement error and a speed measurement error, the statistical indicator includes at least one of a recall rate, a precision rate and an accuracy rate, and the target test environment includes at least one of a plurality of test strategies, a plurality of test targets and a plurality of test scenarios; Determining second test data from the first test data according to the target test indicator and the target test environment; generating a target test result corresponding to the autonomous driving program according to the second test data; Generating a target test result corresponding to the autonomous driving program according to the second test data includes: Processing the second test data according to a preset processing method to obtain third test data, wherein different target test indicators correspond to different preset processing methods; Generate the target test result according to the third test data; Generating the target test result according to the third test data includes: generating a candidate test result according to the third test data and a preset display format, wherein the preset display format includes at least one of a table format, a graph format, and a bar chart format; The target test result is generated according to the candidate test result and a preset template, wherein the preset template includes at least one of preset text, picture insertion position and preset typesetting format.

2. The method according to claim 1, characterized in that Generating a candidate test result according to the third test data and a preset display format includes: determining a target display format from the preset display formats according to the target display parameters corresponding to the third test data; The candidate test result is generated according to the third test data and the target presentation format.

3. The method according to claim 2, characterized in that The third test data includes a plurality of groups; and determining the target display format from the preset display formats according to the target display parameters corresponding to the third test data includes: Determining the target display format corresponding to each group of the third test data from the preset display formats according to the target display parameter corresponding to each group of the third test data; Generating the candidate test result according to the third test data and the target presentation format includes: The candidate test results are generated according to each group of the third test data and the target presentation format corresponding to the group of the third test data.

4. The method according to any one of claims 1 to 3, characterized in that Generating the target test result according to the candidate test result and the preset template includes: Determining a target template from the plurality of preset templates according to the target template parameters corresponding to the third test data; The target test result is generated according to the candidate test result and the target template.

5. A program testing device, characterized in that: The device comprises: A testing module is configured to test the automatic driving program of the vehicle through a preset testing algorithm to obtain first testing data; an acquisition module configured to acquire a target test indicator and a target test environment; the target test indicator includes at least one of a plurality of evaluation indicators and a plurality of statistical indicators, the evaluation indicator includes at least one of a distance measurement error and a speed measurement error, the statistical indicator includes at least one of a recall rate, a precision rate and an accuracy rate, and the target test environment includes at least one of a plurality of test strategies, a plurality of test targets and a plurality of test scenarios; A determination module, configured to determine second test data from the first test data according to the target test indicator and the target test environment; a generating module, configured to generate a target test result corresponding to the autonomous driving program according to the second test data; The generation module comprises: a processing submodule, configured to process the second test data according to a preset processing method to obtain third test data, wherein different target test indicators correspond to different preset processing methods; A generating submodule, configured to generate the target test result according to the third test data; The generation submodule is configured as follows: generating a candidate test result according to the third test data and a preset display format, wherein the preset display format includes at least one of a table format, a graph format, and a bar chart format; The target test result is generated according to the candidate test result and a preset template, wherein the preset template includes at least one of preset text, picture insertion position and preset typesetting format.

6. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 4.

7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Test report generation method and device, equipment and storage medium

    CN109726103A

  • Road test data processing method, system and server

    CN112015838A

  • Automatic driving test method and device and electronic equipment

    CN112559371A

  • Automatic driving test method and device and electronic equipment

    CN113408141A

  • Automatic driving test method and device, electronic equipment and storage medium

    CN114415628A