Driving assistance system test case optimization method and device, equipment and medium
By performing scenario analysis and error activation optimization on the test cases of the driving assistance system, the problems of differentiation in the design and low coverage of the test case are solved, the test coverage and quality are improved, and the safety of driving assistance functions is ensured.
Patent Information
- Application Number
- CN202310780133.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
In the prior art, there is a lack of unified standards for the design of driving assistance function test cases, resulting in low design differences and low coverage, and the safety of driving assistance functions cannot be ensured.
By obtaining test cases of the driving assistance system, performing scenario analysis and error activation optimization, generating test interrupt results and writing them into use cases, improving test coverage and quality, and ensuring functional safety.
Improve test coverage and quality, reduce test case design differences, ensure the safety and actual use needs of driving assistance functions.
Smart Images

Figure CN119226120A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle assisted driving, and in particular to a method, device, equipment and medium for optimizing test cases of a driving assistance system. Background Art
[0002] With the development of ADAS (Advanced Driving Assistance System), the system has become more and more popular and important in vehicles, and users have higher and higher requirements for it, resulting in more and more driving assistance functions integrated into ADAS; therefore, while these driving assistance functions make driving simpler and more efficient, the requirements for their own testing are also increased.
[0003] In the related art, in the driving assistance function testing in the automotive field, the design of driving assistance function use cases is mainly implemented by test engineers based on technical documents (requirement documents, etc.); however, the design method of the related art has no mature theoretical basis, and due to the different experiences of test engineers, etc., there are differences in the designed test cases, and the coverage of functional requirements cannot be guaranteed, which leads to safety hazards of the driving assistance function. Summary of the invention
[0004] One of the purposes of the present application is to provide a method for optimizing test cases for a driving assistance system, so as to solve the problem in the related art that the design of test cases for driving assistance functions is completed by different designers, there is no relatively unified and universal standard, which makes the test case design different, and the coverage of driving assistance function requirements is low, which cannot meet the actual use needs; the second purpose is to provide a device for optimizing test cases for a driving assistance system; the third purpose is to provide an electronic device; the fourth purpose is to provide a computer-readable storage medium.
[0005] In order to achieve the above purpose, the technical solution adopted in this application is as follows:
[0006] A method for optimizing test cases of a driving assistance system comprises: obtaining a test case of a driving assistance system; performing scenario analysis on the test case under one or more preset scenarios to obtain analysis results; inferring an erroneous activation action of the driving assistance system in the analysis result, and optimizing the test case according to the erroneous activation action.
[0007] According to the above-mentioned technical means, the embodiments of the present application can perform reverse error inference and optimization based on the analysis results of driving assistance test cases in different scenarios, thereby improving the test coverage and test quality, making the test results more reliable, ensuring the safety of driving assistance functions, and meeting actual usage needs.
[0008] Further, optimizing the test case according to the error activation action includes: generating a test interruption result according to the error activation action; and writing the test interruption result into the test case.
[0009] According to the above-mentioned technical means, the embodiment of the present application can write the test interruption result generated by the erroneous activation action into the test case, expand the test coverage, improve the test quality, and ensure the safety of the driving assistance function.
[0010] Further, the obtaining of the test case of the driving assistance system includes: obtaining the test requirements of the driving assistance system; determining a test case template according to the test type corresponding to the test requirements; and generating one or more test cases according to the test case template.
[0011] According to the above-mentioned technical means, the embodiments of the present application can match corresponding test case templates according to different test requirements, and then generate test cases that meet the test requirements, improve the test case matching degree, reduce the differences in test case design, and avoid inaccurate results and waste of test resources caused by test case mismatch.
[0012] Furthermore, the test types include: actual vehicle system function test type and / or test bench system function test type.
[0013] According to the above-mentioned technical means, the embodiments of the present application can distinguish different test types so as to generate different test cases according to different types, improve the matching degree between test case generation and actual testing, and make the test results more reliable.
[0014] Furthermore, the test case templates include: one or more of a state transition case template, a condition combination case template, a boundary value case template, and a flowchart case template.
[0015] According to the above-mentioned technical means, the embodiment of the present application can generate test cases using at least one test case template, thereby improving the test case matching degree, reducing the differences in test case design, and further improving the reliability of test case generation to meet actual usage needs.
[0016] Furthermore, the state transition type use case template designs test cases based on the state transition diagram generated by the migration between different states; the condition combination type use case template designs test cases based on different results produced by different condition combinations; the boundary value type use case template designs test cases based on the critical point values of the requirements; and the flowchart type use case template designs test cases based on the flowchart generated by the operation process.
[0017] According to the above-mentioned technical means, the embodiments of the present application can distinguish different test case templates, so as to utilize different test case templates to generate test cases that better match actual needs, improve the reliability of test results, and meet actual usage needs.
[0018] A driving assistance system test case optimization device comprises: an acquisition module for acquiring a test case of a driving assistance system; an analysis module for performing scenario analysis on the test case in one or more preset scenarios to obtain analysis results; and an optimization module for inferring an erroneous activation action of the driving assistance system in the analysis result and optimizing the test case according to the erroneous activation action.
[0019] Furthermore, the optimization module is further used to: generate a test interruption result according to the error activation action; write the test interruption result into the test case; the acquisition module is further used to: obtain the test requirements of the driving assistance system; determine the test case template according to the test type corresponding to the test requirements; generate one or more test cases according to the test case template; the test type includes: real vehicle system function test type and / or test bench system function test type; the test case template includes: one or more of state transition case template, condition combination case template, boundary value case template and flowchart case template; the state transition case template designs test cases according to the state transition diagram generated by the migration between different states; the condition combination case template designs test cases according to different results generated by different condition combinations; the boundary value case template designs test cases according to the critical point value of the requirements; the flowchart case template designs test cases according to the flowchart generated by the operation process.
[0020] An electronic device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the driving assistance system test case optimization method as described in the above embodiment.
[0021] A computer-readable storage medium stores a computer program, which is executed by a processor to implement the driving assistance system test case optimization method as described in the above embodiment.
[0022] Beneficial effects of this application:
[0023] (1) The embodiments of the present application can perform reverse error inference and optimization based on the analysis results of driving assistance test cases in different scenarios, thereby improving the test coverage and test quality, making the test results more reliable, ensuring the safety of driving assistance functions, and meeting actual use needs;
[0024] (2) The embodiment of the present application can write the test interruption result generated by the erroneous activation action into the test case, thereby expanding the test coverage, improving the test quality, and ensuring the safety of the driving assistance function;
[0025] (3) The embodiments of the present application can match corresponding test case templates according to different test requirements, and then generate test cases that meet the test requirements, thereby improving the test case matching degree, reducing the differences in test case design, and avoiding inaccurate results and waste of test resources caused by test case mismatch;
[0026] (4) The embodiments of the present application can distinguish different test types, so as to generate different test cases according to different types, improve the matching degree between test case generation and actual test, and make the test results more reliable;
[0027] (5) The embodiment of the present application can generate test cases using at least one test case template, thereby improving the test case matching degree, reducing the differences in test case design, and further improving the reliability of test case generation to meet actual usage needs;
[0028] (6) The embodiments of the present application can distinguish different test case templates so as to utilize different test case templates to generate test cases that better match actual requirements, thereby improving the reliability of test results and meeting actual usage needs.
[0029] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A flowchart of a method for optimizing a test case of a driver assistance system according to an embodiment of the present application;
[0031] Figure 2 A schematic diagram of a test case optimization process of an embodiment of the present application;
[0032] Figure 3 This is a schematic diagram of the state transition of the driving function ACC (Adaptive Cruise Control) in an embodiment of the present application;
[0033] Figure 4 A schematic diagram of designing test cases for different condition combinations of embodiments of the present application;
[0034] Figure 5 A schematic diagram of the design description of test cases in different scenarios of the embodiment of the present application;
[0035] Figure 6 A schematic diagram of a test case optimization device for a driving assistance system according to an embodiment of the present application;
[0036] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0038] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0039] ADAS has become a trend in the automotive industry. Under the influence of this trend, the importance of the system is increasing. At the same time, with the development and popularization of the system, users' requirements for the system are also getting higher and higher, making ADAS integrate more and more functions, such as:
[0040] ACC can sense and judge the environment in front of or around the vehicle through radar, camera, fusion map, etc., to achieve the functions of following the vehicle and cruise control; IACC (Integrated Adapted Cruise Control) is based on adaptive cruise control, and realizes lateral control within the speed range of 0-130km / h, so as to achieve a certain degree of hands-free driving under the driver's supervision; NID (Navigation Intelligent Driving Assistance) refers to the use of ALC (Auto Lane Change) and TSR (Traffic Sign Recognition) and other functions to achieve assisted driving according to the navigation planning path on the road sections covered by high-precision maps. The development of these functions makes driving simpler and more efficient, and the requirements for their functional testing are also getting higher and higher.
[0041] In the related art, the design of driving assistance function use cases is mainly implemented by test engineers based on technical documents (requirement documents, etc.); however, the design method of the related art has no mature theoretical basis, and due to the different experiences of test engineers, there are differences in the designed test cases, and the coverage of functional requirements cannot be guaranteed, which leads to safety hazards of driving assistance functions.
[0042] In view of the problems in the above background technology, the embodiments of the present application propose a method, device, electronic device and storage medium for optimizing test cases of a driving assistance system. Figure 1 A flowchart of a driving assistance system test case optimization method provided in an embodiment of the present application.
[0043] like Figure 1 As shown, the driving assistance system test case optimization method includes the following steps:
[0044] In step S101, a test case of a driving assistance system is obtained.
[0045] It is understandable that the embodiments of the present application may first acquire test cases for the driving assistance system so as to utilize the acquired test case data for analysis and optimization.
[0046] In an embodiment of the present application, obtaining a test case for a driving assistance system includes: obtaining test requirements for the driving assistance system; determining a test case template according to a test type corresponding to the test requirements; and generating one or more test cases according to the test case template.
[0047] Among them, the test types include: real vehicle system function test type and / or test bench system function test type; the test case templates include: one or more of state transition use case templates, conditional combination use case templates, boundary value use case templates and flowchart use case templates.
[0048] It is understandable that if Figure 2 As shown, the embodiment of the present application can select a test type corresponding to the test requirement according to the requirement of the driving assistance system test, determine the test case template according to the test type, and generate a corresponding test case according to the test case template.
[0049] Specifically, the state transition use case template designs test cases based on the state transition diagram generated by the transition between different states; the condition combination use case template designs test cases based on different results produced by different condition combinations; the boundary value use case template designs test cases based on the critical point values of the requirements; the flowchart use case template designs test cases based on the flowchart generated by the operation process.
[0050] The following is an explanation of the process of generating test cases from the state transition class, condition combination class and boundary value class use case templates of the embodiment of the present application through three specific embodiments:
[0051] First, if Figure 3 As shown, in the embodiment of the present application, state A can be set to ACC being in Standby state, state B can be ACC being in Active working state, and state C can be ACC being in Passive state; condition A1 is that the main car door is open, condition A2 is pressing the ACC activation key, condition B1 is pressing the ACC cancel key, condition B2 is that the driver steps on the brakes, condition C1 is not input, and condition C2 is that condition A1 is restored.
[0052] 1. State migration
[0053] The state transition template can be used to design use cases based on the state transition diagram, such as Figure 3 As shown, the embodiment of the present application can generate 5 test cases according to the state transition diagram template: test case (1) is that ACC is in the Standby state, and pressing the ACC activation key jumps to the Active state; test case (2) is that ACC is in the Standby state, the main car door is open, and jumps to the Passive state; test case (3) is that ACC is in the Passive state, the main car door is closed, and jumps to the Standby state; test case (4) is that ACC is in the Active state, the driver steps on the brake, and jumps to the Passive state; test case (5) is that ACC is in the Active state, the driver presses the button to cancel ACC, and jumps to the Standby state.
[0054] 2. Conditional combination class
[0055] The conditional combination test case template can be used to design test cases based on different condition combinations, such as Figure 4 As shown, the use case design is carried out by taking condition D1, condition D2, condition D3 and result E as an example: test case (1) is when conditions D1, D2 and D3 are met at the same time, and the result is E; test case (2) is when conditions other than D1, D2 and D3 are met at the same time, and the result is other than E; test case (3) is when conditions D1, other than D2 and D3 are met at the same time, and the result is other than E; test case (4) is when conditions D1, D2 and other than D3 are met at the same time, and the result is other than E.
[0056] 3. Boundary value class use case template
[0057] The boundary value type test case template can design test cases according to the values near the critical point. The embodiment of the present application can design test cases based on the variable F in the range of GH (equal), the minimum resolution is I, and the result is J as an example: test case (1) is when the variable F is equal to G, the result is J; test case (2) is when the variable F is equal to H, the result is J; test case (3) is when the variable F is equal to G+I, the result is J; test case (4) is when the variable F is equal to HI, the result is J; test case (5) is when the variable F is equal to GI, the result is not J; test case (6) is when the variable F is equal to H+I, the result is not J.
[0058] In step S102, scenario analysis is performed on the test case in one or more preset scenarios to obtain analysis results.
[0059] Among them, the preset scene can be set according to the actual situation, that is, the embodiment of the present application can design different user usage scenarios according to the needs; in the following embodiments, Figure 5 As shown, the design of the test case will be described by taking state K, state L1, state L2, scene K1, scene K2, scene K3 and scene K4 as examples.
[0060] It can be understood that the embodiments of the present application can use a scenario analysis method to design different user usage scenarios according to user needs, so that test cases can be brought into the scenarios for analysis, and the obtained analysis results are more reliable and can meet the actual needs of users.
[0061] In step S103, the erroneous activation action of the driving assistance system in the analysis result is inferred, and the test case is optimized according to the erroneous activation action.
[0062] It can be understood that the embodiment of the present application can analyze the scenario and make error inferences based on the above steps S101 and S102: the embodiment of the present application can design test cases to interrupt the demand under the premise of positive demand, test the execution under abnormal interruption, analyze the error activation action, and optimize the test case according to the error activation action, thereby covering the functional requirements more comprehensively.
[0063] In an embodiment of the present application, optimizing a test case according to an error activation action includes: generating a test interruption result according to the error activation action; and writing the test interruption result into the test case.
[0064] It is understandable that the embodiments of the present application can supplement and improve the test cases based on the scenario analysis method and the error inference (reverse) method to improve the demand coverage.
[0065] The following will describe the process of optimizing test cases based on the erroneous activation actions of the driving assistance system in the inference analysis results of the embodiment of the present application according to a specific embodiment, as follows:
[0066] For example, Figure 3 Taking the state transition diagram shown as an example, in the embodiment of the present application, state A can be set for ACC to be in Standby state, state B can be for ACC to be in Active working state, and state C can be for ACC to be in Passive state; condition A1 is that the main car door is open, condition A2 is pressing the ACC activation key, condition B1 is pressing the ACC cancel key, condition B2 is that the driver steps on the brakes, condition C1 is not input, and condition C2 is that condition A1 is restored.
[0067] Based on the above, analyze the scenario and make error inferences to design optimized use cases: Figure 5 As shown, scene K1 is the normal activation of ACC; scene K2 is the triggering of other functions that do not affect the activation during the activation process, such as turning on the air conditioner, Bluetooth, etc.; scene K3 is the continuous and rapid pressing of the ACC activation key; scene K4 is the triggering of functions that affect the activation of ACC during the activation process, such as activating APA (AutoParking Assist, automatic parking assistance system), etc.
[0068] Test cases were designed according to the scenarios: (1) normal button activation of ACC; test case (2) the driver button activated while the passenger turned on the air conditioner and Bluetooth, and ACC was activated normally; test case (3) the driver button activated ACC, the passenger canceled the activation, the driver buttoned again, and ACC was activated; test case (4) after the driver button activated ACC, he button activated APA, ACC was not activated, and APA was activated.
[0069] In summary, the driving assistance system test case optimization method proposed in the embodiment of the present application has at least the following advantages:
[0070] (1) The embodiments of the present application can perform reverse error inference and optimization based on the analysis results of driving assistance test cases in different scenarios, thereby improving the test coverage and test quality, making the test results more reliable, ensuring the safety of driving assistance functions, and meeting actual use needs;
[0071] (2) The embodiment of the present application can write the test interruption result generated by the erroneous activation action into the test case, thereby expanding the test coverage, improving the test quality, and ensuring the safety of the driving assistance function;
[0072] (3) The embodiments of the present application can match corresponding test case templates according to different test requirements, and then generate test cases that meet the test requirements, thereby improving the test case matching degree, reducing the differences in test case design, and avoiding inaccurate results and waste of test resources caused by test case mismatch;
[0073] (4) The embodiments of the present application can distinguish different test types, so as to generate different test cases according to different types, improve the matching degree between test case generation and actual test, and make the test results more reliable;
[0074] (5) The embodiment of the present application can generate test cases using at least one test case template, thereby improving the test case matching degree, reducing the differences in test case design, and further improving the reliability of test case generation to meet actual usage needs;
[0075] (6) The embodiments of the present application can distinguish different test case templates so as to utilize different test case templates to generate test cases that better match actual requirements, thereby improving the reliability of test results and meeting actual usage needs.
[0076] Next, a driving assistance system test case optimization device proposed according to an embodiment of the present application is described with reference to the accompanying drawings.
[0077] Figure 6 It is a block diagram of a driving assistance system test case optimization device according to an embodiment of the present application.
[0078] like Figure 6 As shown, the driving assistance system test case optimization device 10 includes: an acquisition module 100, an analysis module 200 and an optimization module 300.
[0079] Among them, the acquisition module 100 is used to obtain test cases of the driving assistance system; the analysis module 200 is used to perform scenario analysis on the test cases under one or more preset scenarios to obtain analysis results; the optimization module 300 is used to infer the erroneous activation actions of the driving assistance system in the analysis results and optimize the test cases according to the erroneous activation actions.
[0080] In the embodiment of the present application, the optimization module 300 is further used to: generate a test interruption result according to the error activation action; and write the test interruption result into the test case.
[0081] In an embodiment of the present application, the acquisition module 100 is further used to: obtain the test requirements of the driving assistance system; determine a test case template according to the test type corresponding to the test requirements; and generate one or more test cases according to the test case template.
[0082] In the embodiment of the present application, the test types include: real vehicle system function test type and / or test bench system function test type.
[0083] In an embodiment of the present application, the test case template includes: one or more of a state transition type use case template, a condition combination type use case template, a boundary value type use case template, and a flowchart type use case template.
[0084] In an embodiment of the present application, a state transition type use case template designs test cases based on a state transition diagram generated by transitions between different states; a condition combination type use case template designs test cases based on different condition combinations to produce different results; a boundary value type use case template designs test cases based on the critical point values of requirements; and a flowchart type use case template designs test cases based on a flowchart generated by an operation process.
[0085] It should be noted that the aforementioned explanation of the embodiment of the driving assistance system test case optimization method is also applicable to the driving assistance system test case optimization device of this embodiment, and will not be repeated here.
[0086] According to the driving assistance system test case optimization device proposed in the embodiment of the present application, reverse error inference can be performed based on the analysis results of the driving assistance test cases in different scenarios, thereby improving the test coverage and test quality, making the test results more reliable, ensuring the safety of the driving assistance function, and meeting actual usage needs.
[0087] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0088] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .
[0089] When the processor 702 executes the program, the driving assistance system test case optimization method provided in the above embodiment is implemented.
[0090] Furthermore, the electronic device further comprises:
[0091] The communication interface 703 is used for communication between the memory 701 and the processor 702 .
[0092] The memory 701 is used to store computer programs that can be executed on the processor 702 .
[0093] The memory 701 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0094] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0095] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.
[0096] The processor 702 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0097] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned driving assistance system test case optimization method.
[0098] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0099] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0100] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0101] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0102] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0103] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for optimizing test cases of a driving assistance system, characterized in that: The following steps are involved: Get test cases for driver assistance systems; Performing scenario analysis on the test case in one or more preset scenarios to obtain analysis results; Inferring an erroneous activation action of the driving assistance system in the analysis result, and optimizing the test case according to the erroneous activation action.
2. The driving assistance system test case optimization method according to claim 1, characterized in that: The optimizing the test case according to the error activation action comprises: generating a test interruption result according to the error activation action; The test interruption result is written into the test case.
3. The driving assistance system test case optimization method according to claim 1, characterized in that: The obtaining of the test case of the driving assistance system includes: Obtaining test requirements for the driver assistance system; Determine a test case template according to the test type corresponding to the test requirement; One or more test cases are generated according to the test case template.
4. The method for optimizing test cases of a driving assistance system according to claim 3, characterized in that: The test types include: actual vehicle system function test type and / or bench system function test type.
5. The driving assistance system test case optimization method according to claim 3, characterized in that: The test case templates include: one or more of a state transition case template, a condition combination case template, a boundary value case template and a flow chart case template.
6. The method for optimizing test cases of a driving assistance system according to claim 5, characterized in that: The state transition use case template designs test cases based on the state transition diagram generated by the transition between different states; The condition combination test case template designs test cases based on different results produced by different condition combinations; The boundary value class test case template designs test cases according to the critical point values of the requirements; The flowchart type use case template designs test cases based on flowcharts generated from operation processes.
7. A driving assistance system test case optimization device, characterized in that: include: Acquisition module, used to obtain test cases of the driving assistance system; An analysis module, used to perform scenario analysis on the test case in one or more preset scenarios to obtain analysis results; The optimization module is used to infer the erroneous activation action of the driving assistance system in the analysis result, and optimize the test case according to the erroneous activation action.
8. The driving assistance system test case optimization device according to claim 7, characterized in that: The optimization module is further used to: generate a test interruption result according to the error activation action; write the test interruption result into the test case; The acquisition module is further used to: acquire the test requirements of the driving assistance system; Determine a test case template according to the test type corresponding to the test requirement; Generate one or more test cases according to the test case template; The test types include: real vehicle system function test type and / or bench system function test type; The test case templates include: one or more of a state transition case template, a condition combination case template, a boundary value case template, and a flow chart case template; The state transition use case template designs test cases based on the state transition diagram generated by the transition between different states; The condition combination test case template designs test cases based on different condition combinations to produce different results; The boundary value class test case template designs test cases according to the critical point values of the requirements; The flowchart type use case template designs test cases based on flowcharts generated from operation processes.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the driving assistance system test case optimization method as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the driving assistance system test case optimization method as described in any one of claims 1 to 6.
