CN117931639A - Naming method and device for vehicle function test cases and electronic equipment - Google Patents
Naming method and device for vehicle function test cases and electronic equipment Download PDFInfo
- Publication number
- CN117931639A CN117931639A CN202311790961.2A CN202311790961A CN117931639A CN 117931639 A CN117931639 A CN 117931639A CN 202311790961 A CN202311790961 A CN 202311790961A CN 117931639 A CN117931639 A CN 117931639A
- Authority
- CN
- China
- Prior art keywords
- naming
- name
- parameters
- test case
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
The invention discloses a naming method and device of a vehicle function test case and electronic equipment. Wherein the method comprises the following steps: acquiring a test case, wherein the test case is used for automatically testing the driving function of the vehicle; content analysis is carried out on the test cases to obtain analysis results, wherein the analysis results are used for determining parameter values of a plurality of named parameters; and generating the target file name of the test case based on the naming sequence of the plurality of naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the plurality of naming parameters in the test case. The invention solves the technical problems of confusion of the name of the file name of the test case based on manual random naming and low management efficiency of the test case in the prior art.
Description
Technical Field
The invention relates to the technical field of vehicle testing, in particular to a naming method and device of a vehicle function test case and electronic equipment.
Background
In the development process of the automatic driving function of the automobile, the development of the test case is very important, and in the development process of the test case, the naming of the test case file directly influences the management efficiency of the test case. However, in the prior art, on one hand, development and naming of test cases are generally performed by development engineers of the test cases according to test requirements and personal understanding, so that the test case files cannot be uniformly managed due to disordered naming, and on the other hand, for a large number of test cases, when a tester needs to quickly search for a target test case, the tester needs to open the test cases one by one to check the content, so that the test case searching efficiency is low due to the fact that the information of the test case file names is poor in richness.
From the above analysis, it can be known that, aiming at the problems of deadly name confusion and low test case management efficiency of the file name guide of the test case based on artificial random naming in the prior art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a naming method and device of a vehicle function test case and electronic equipment, which at least solve the technical problems of confusion of file names and deadly names of the test case based on manual random naming and low management efficiency of the test case in the prior art.
According to an aspect of the embodiment of the invention, there is provided a naming method of a vehicle function test case, including:
acquiring a test case, wherein the test case is used for automatically testing the driving function of the vehicle; content analysis is carried out on the test cases to obtain analysis results, wherein the analysis results are used for determining parameter values of a plurality of named parameters; and generating the target file name of the test case based on the naming sequence of the plurality of naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the plurality of naming parameters in the test case.
Optionally, the naming method of the vehicle function test case further includes: acquiring a history test case of a vehicle; extracting a plurality of named parameters in the history test case to obtain a parameter set; carrying out probability statistics on all named parameters in the parameter set to obtain a statistical result, wherein the statistical result comprises the occurrence probability of any one named parameter; and determining the naming sequence of the naming parameters according to the occurrence probability.
Optionally, generating the target file name of the test case based on the naming sequence of the plurality of naming parameters and the parameter values includes: generating fragment naming corresponding to the naming parameters based on the parameter values; and arranging and combining the plurality of fragment names according to the naming sequence to obtain the target file name.
Optionally, the plurality of naming parameters include a test function, a parameter value of the test function is a standard name of the test function, and generating a fragment name corresponding to the naming parameter based on the parameter value includes: determining a standard name according to a preset test function naming standard; a first fragment name is generated from the standard name.
Optionally, the plurality of naming parameters further include a test map and a driving behavior of the host vehicle, and the naming method of the vehicle function test case further includes: analyzing the test map to obtain road types in the test map; and generating a second fragment name according to the name of the road type and the name of the driving behavior of the host vehicle.
Optionally, the plurality of naming parameters further includes: the method for generating the fragment name corresponding to the naming parameter based on the parameter value comprises the following steps: searching standard naming in a preset interaction behavior naming library; and generating a third fragment name according to the name and standard name of the object type.
Optionally, the plurality of naming parameters further include a host vehicle motion state and a target object motion state, the host vehicle motion state is represented by a plurality of motion information of the host vehicle, the target object is a traffic object interacting with the host vehicle, the target object motion state is represented by a plurality of motion information of the target object, the plurality of motion information includes a plurality of motion parameters and corresponding motion data, and the segment naming further includes: the method comprises the steps of generating a fourth segment name corresponding to the motion state of the main vehicle and a fifth segment name corresponding to the motion state of the target object according to the name codes of various motion parameters and the motion data of the main vehicle, and generating the fifth segment name according to the name codes of various motion parameters and the motion data of the target object.
Optionally, the naming method of the vehicle function test case further includes: repeatedly checking the target file names of all test cases in the test case set to obtain a checking result; responding to the test result to determine that the plurality of target file names are repeated, and carrying out secondary analysis on the test case to be updated corresponding to the plurality of target file names to obtain a secondary analysis result, wherein the secondary analysis result is used for determining standby name parameters and parameter values of the standby name parameters, and the standby name parameters are other named parameters except the plurality of named parameters in the test case to be updated; comparing parameter values of parameters to be named to obtain a comparison result; determining that the parameter values of the standby name parameters are different according to the comparison result, and determining the standby name parameters as additional naming parameters, wherein the additional naming parameters are used for distinguishing repeated test cases of the target file names; generating additional fragment naming according to the parameter value of the additional naming parameter; and updating the target file name of the test case to be updated by using the additional fragment naming to obtain the updated file name.
According to another aspect of the embodiment of the present invention, there is also provided a naming apparatus for a vehicle function test case, including:
The acquisition module is used for acquiring test cases, wherein the test cases are used for carrying out automatic driving function test on the vehicle; the analysis module is used for carrying out content analysis on the test cases to obtain analysis results, wherein the analysis results are used for determining parameter values of a plurality of named parameters; the first generation module is used for generating the target file name of the test case based on the naming sequence of the naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the naming parameters in the test case.
Optionally, the naming device of the vehicle function test case further includes: the statistics module is used for acquiring historical test cases of the vehicle; extracting a plurality of named parameters in the history test case to obtain a parameter set; carrying out probability statistics on all named parameters in the parameter set to obtain a statistical result, wherein the statistical result comprises the occurrence probability of any one named parameter; and determining the naming sequence of the naming parameters according to the occurrence probability.
Optionally, the first generating module is further configured to: generating fragment naming corresponding to the naming parameters based on the parameter values; and arranging and combining the plurality of fragment names according to the naming sequence to obtain the target file name.
Optionally, the plurality of naming parameters include a test function, a parameter value of the test function is a standard name of the test function, and the first generating module is further configured to: determining a standard name according to a preset test function naming standard; a first fragment name is generated from the standard name.
Optionally, the plurality of naming parameters further include a test map and a driving behavior of a host vehicle, and the naming device of the vehicle function test case further includes: the second generation module is used for analyzing the test map to obtain the road types in the test map; and generating a second fragment name according to the name of the road type and the name of the driving behavior of the host vehicle.
Optionally, the plurality of naming parameters further includes: the system comprises a target object type, an interaction behavior of the target object and a host vehicle, wherein the target object is a traffic object which interacts with the host vehicle, a parameter value comprises a name of the target object type and a standard name of the interaction behavior, and the first generation module is further used for: searching standard naming in a preset interaction behavior naming library; and generating a third fragment name according to the name and standard name of the object type.
Optionally, the first generating module is further configured to: the plurality of naming parameters further comprise a main vehicle motion state and a target object motion state, the main vehicle motion state is represented by various motion information of the main vehicle, the target object is a traffic object interacting with the main vehicle, the target object motion state is represented by various motion information of the target object, the various motion information comprises various motion parameters and corresponding motion data, and the segment naming further comprises: the method comprises the steps of generating a fourth segment name corresponding to the motion state of the main vehicle and a fifth segment name corresponding to the motion state of the target object according to the name codes of various motion parameters and the motion data of the main vehicle, and generating the fifth segment name according to the name codes of various motion parameters and the motion data of the target object.
Optionally, the naming device of the vehicle function test case further includes: the updating module is used for carrying out repeatability test on the target file names of all the test cases in the test case set to obtain a test result; responding to the test result to determine that the plurality of target file names are repeated, and carrying out secondary analysis on the test case to be updated corresponding to the plurality of target file names to obtain a secondary analysis result, wherein the secondary analysis result is used for determining standby name parameters and parameter values of the standby name parameters, and the standby name parameters are other named parameters except the plurality of named parameters in the test case to be updated; comparing parameter values of parameters to be named to obtain a comparison result; determining that the parameter values of the standby name parameters are different according to the comparison result, and determining the standby name parameters as additional naming parameters, wherein the additional naming parameters are used for distinguishing repeated test cases of the target file names; generating additional fragment naming according to the parameter value of the additional naming parameter; and updating the target file name of the test case to be updated by using the additional fragment naming to obtain the updated file name.
According to yet another aspect of an embodiment of the present invention, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to run the computer program to perform the naming method of the vehicle function test case of any one of the foregoing.
In the embodiment of the invention, a test case for automatically testing the driving function of the vehicle is firstly obtained, then, content analysis is carried out on the test case to obtain a parameter value analysis result containing a plurality of naming parameters, and finally, the target file name of the test case is generated based on the naming sequence of the naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the naming parameters in the test case. The method comprises the steps of analyzing the content of the test case to obtain parameter values of a plurality of naming parameters, and sequencing and combining the parameter values according to the occurrence probability of the naming parameters in the test case to obtain the target file name, so that the aim of uniformly naming the test case file is fulfilled, the technical effects of improving the information richness of the target file name of the test case and the management efficiency of the test case are realized, and the technical problems of confusion of the name guide deadly names of the test case file and low management efficiency of the test case based on manual random naming in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a hardware block diagram of a vehicle terminal according to an alternative naming method for vehicle function test cases in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of a naming method for a vehicle function test case according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a naming process for a vehicle function test case according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative vehicle function test case object file name in accordance with an embodiment of the invention;
FIG. 5 is a block diagram of an alternative naming device for a vehicle function test case in accordance with an embodiment of the present invention;
FIG. 6 is a block diagram of a naming device for another alternative vehicle function test case in accordance with an embodiment of the present invention;
FIG. 7 is a block diagram of a naming device for yet another alternative vehicle function test case in accordance with an embodiment of the present invention;
FIG. 8 is a block diagram of a naming device for yet another alternative vehicle function test case in accordance with an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided a method embodiment of a naming method for a vehicle function test case, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different from that herein.
FIG. 1 is a block diagram of the hardware architecture of a vehicle terminal, as shown in FIG. 1, of an alternative naming method for a vehicle function test case, according to an embodiment of the present invention, a vehicle terminal 10 (or mobile device 10 associated with a vehicle having communication) may include one or more processors 102 (the processors 102 may include, but are not limited to, a processing means such as a microprocessor (Microcontroller Unit, MCU) or programmable logic device (Field Programmable GATE ARRAY, FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, the method may further include: display device 110, input/output device 108 (i.e., I/O device), universal serial bus (Universal Serial Bus, USB) port (which may be included as one of the ports of a computer bus, not shown), network interface (not shown), power supply (not shown), and/or camera (not shown). It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the vehicle terminal 10 described above. For example, the vehicle terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the vehicle terminal 10 (or mobile device).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the naming method of the vehicle function test case in the embodiment of the present invention, and the processor 102 executes the software programs and modules stored in the memory 104, thereby executing various function applications and data processing, that is, implementing the naming method of the vehicle function test case described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the vehicle terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the vehicle terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
In the above operating environment, the embodiment of the present invention provides a naming method of a vehicle function test case as shown in fig. 2, and fig. 2 is a flowchart of a naming method of a vehicle function test case according to an embodiment of the present invention, as shown in fig. 2, the method includes the following implementation steps:
Step S201, obtaining a test case, wherein the test case is used for carrying out automatic driving function test on a vehicle;
step S202, analyzing the content of the test case to obtain an analysis result, wherein the analysis result is used for determining parameter values of a plurality of named parameters;
Step S203, generating the target file name of the test case based on the naming sequence of the plurality of naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the plurality of naming parameters in the test case.
The above-mentioned autopilot function test is used for testing various functions of an autopilot vehicle to evaluate performances such as safety and stability of the autopilot vehicle, and it should be noted that the autopilot function test may include, but is not limited to: sensor function test, autopilot algorithm test, communication system test, security system test, user interface test.
The above named parameters may be test information that must be included in a test case when a technician performs a vehicle autopilot function test, and specifically, the test information may include, but is not limited to: test function, test map, host behavior, object type, interaction behavior of object and host.
It should be further noted that the occurrence probability of each naming parameter in the test case may be used to characterize the importance of the naming parameter in the test case, and the preceding and following naming sequences may be determined according to the occurrence probability of each naming parameter.
In the embodiment of the invention, a test case for automatically testing the driving function of the vehicle is firstly obtained, then, content analysis is carried out on the test case to obtain a parameter value analysis result containing a plurality of naming parameters, and finally, the target file name of the test case is generated based on the naming sequence of the naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the naming parameters in the test case. The method comprises the steps of analyzing the content of the test case to obtain parameter values of a plurality of naming parameters, and sequencing and combining the parameter values according to the occurrence probability of the naming parameters in the test case to obtain the target file name, so that the aim of uniformly naming the test case file is fulfilled, the technical effects of improving the information richness of the target file name of the test case and the management efficiency of the test case are realized, and the technical problems of confusion of the name guide deadly names of the test case file and low management efficiency of the test case based on manual random naming in the prior art are solved.
The above-described methods of embodiments of the present invention are further described below.
In an optional embodiment, the naming method of the vehicle function test case further includes:
Step S241, acquiring a history test case of a vehicle;
step S242, extracting a plurality of named parameters in the history test case to obtain a parameter set;
Step S243, carrying out probability statistics on all named parameters in the parameter set to obtain a statistical result, wherein the statistical result comprises the occurrence probability of any one named parameter;
step S244, determining naming sequence of naming parameters according to the occurrence probability.
According to the technical scheme provided by the invention, before the automatic driving function test, the target naming parameters in the file names of the test cases and the naming sequence of the target naming parameters can be determined according to the historical test cases of the vehicle, specifically, each naming parameter in each historical test case is extracted, probability statistics is carried out on each naming parameter so as to determine the occurrence probability of any naming parameter in all test cases, the occurrence probability of each naming parameter is arranged from large to small, the sequence of the naming parameter with large occurrence probability in the file names of the test cases is determined before the naming parameter with small occurrence probability, and therefore, after the naming of the subsequent test cases is completed, a tester can conveniently and rapidly find the corresponding target naming parameter value according to the naming sequence, and the automatic driving function test efficiency of the vehicle is improved.
In an alternative embodiment, generating the object file name of the test case based on the naming order of the plurality of naming parameters and the parameter values includes:
Step S231, generating fragment naming corresponding to the naming parameters based on the parameter values;
And step S232, arranging and combining the names of the plurality of fragments according to the naming sequence to obtain the target file name.
The method for generating the fragment name corresponding to the naming parameter based on the parameter value comprises the following steps:
Step S2311, determining standard names according to preset test function naming standards;
Step S2312, generating a first segment name according to the standard name.
The preset test function naming standard may be a national or international vehicle autopilot test function naming standard, for example, the preset test function naming standard is national standard GB/T39263-2020, which defines a term related to advanced driving assistance systems (ADVANCED DRIVER ASSISTANCE SYSTEMS, ADAS) of road vehicles, including standard names of various autopilot test functions (i.e., test objects in test cases), including but not limited to: automatic emergency braking (Automatic Emergency Braking, AEB), traffic congestion assisted driving (Traffic Jam Pilot, TJP), reverse collision test (Reverse Collision Testing, REC).
In the technical scheme provided by the invention, the generation of the first segment name according to the standard name can be to take the English abbreviation (or English full name) of the standard name of any automatic driving test function as the first segment name of the automatic driving test function, for example, the automatic driving test function is automatic emergency braking, and the corresponding first segment is named as AEB.
In an optional embodiment, the plurality of naming parameters further includes a test map and a driving behavior of a host vehicle, and the naming method of the vehicle function test case further includes:
Step S251, analyzing the test map to obtain road types in the test map;
In step S252, a second segment name is generated according to the name of the road type and the name of the driving behavior of the host vehicle.
The above-mentioned test map can provide the test environment that satisfies the test requirement for the host vehicle (or called the tested vehicle) and the object that interacts with the host vehicle in the vehicle automatic driving function test process, in order to simplify the file name of the test case, can draw the key parameter that can distinguish different test maps from the test map, as an optional implementation mode, the key parameter can be the road type, through analyzing the test map of the test case, can obtain the parameter value of the road type in different test maps, the parameter value of the road type can include but is not limited to: straight (named Straight, st), curved (named Cruve, cr), crossing (named Junction, ju), and circular island (named Roundabout, ro).
The above-described main vehicle driving behavior may be, but is not limited to: straight (named SSTRAIGHT, SS), left turn (named TLeft, TL), right turn (named TRight, TR), turn around (named UTurn, UT). The second segment naming may include a combined representation of the name abbreviation (or full name) of the road type and the name abbreviation (or full name) of the parking driving behavior, for example, the road type of the test map is straight, the parking driving behavior is left turn, and the second segment naming may be St-TL.
In an alternative embodiment, the plurality of naming parameters further includes: the method for generating the fragment name corresponding to the naming parameter based on the parameter value comprises the following steps:
Step S2321, searching standard naming in a preset interaction behavior naming library;
step S2322, a third segment name is generated according to the name of the object type and the standard name.
The types of targets described above may include, but are not limited to: automobiles (named Tar), two-wheelers (TW), pedestrians (named Ped). The preset interaction behavior naming library may be a standard database such as a national standard, an industry standard, etc., and standard naming of the interaction behavior between the target object and the host vehicle specified by the preset interaction behavior naming library may include, but is not limited to: front vehicle stationary (name CCRs), front vehicle jogging (CCRm), ghost probe (name Ghost). It should be noted that, for other interaction behaviors than the interaction behaviors specified in the preset interaction behavior naming library, the technician may make a contract before testing, for example, the other interaction behaviors may include, but are not limited to: cut in (name Cutin), cut out (name Cutout).
As an alternative implementation, the object type is an automobile, the interaction behavior of the object and the host is cut-in, and the third segment name generated according to the name and standard name of the object type can be Tar-Cutin.
In an alternative embodiment, the plurality of naming parameters further includes a host vehicle motion state and a target object motion state, the host vehicle motion state is characterized by a plurality of motion information of the host vehicle, the target object is a traffic object interacting with the host vehicle, the target object motion state is characterized by a plurality of motion information of the target object, the plurality of motion information includes a plurality of motion parameters and corresponding motion data, and the segment naming further includes: the method comprises the steps of generating a fourth segment name corresponding to the motion state of the main vehicle and a fifth segment name corresponding to the motion state of the target object according to the name codes of various motion parameters and the motion data of the main vehicle, and generating the fifth segment name according to the name codes of various motion parameters and the motion data of the target object.
The various motion information described above may include, but is not limited to: the initial velocity, the target acceleration, and the initial position may be represented using actual values in the fourth segment naming and the fifth segment naming.
As an alternative embodiment, the initial position may be represented by a distance between the target object and the host vehicle in an abscissa distance location in the host vehicle coordinate system, for example: the initial position of the target is 10 meters in Front of the main vehicle and 5 meters on the Left side, and the initial position of the target can be expressed as F10-L5, wherein F is the initial letter of English full name Front of the Front, and L is the initial letter of English full name Left of the Left.
As another alternative, the initial position may be expressed by a distance between the target object and the host vehicle in the road coordinate system in a transverse-longitudinal direction, for example, X is expressed as a clear distance in the s direction of the road coordinate system, Y is expressed as a clear distance in the t direction of the road coordinate system, and when the initial position of the target object is a position that is 10 meters away in a direction along the road reference line and 5 meters away in a direction perpendicular to the road reference line, the initial position of the target object may be expressed as X10-Y5.
As yet another alternative embodiment, the various motion information of the host vehicle may further include an initial acceleration and a target speed, and the above-mentioned fourth segment name may use a representation of a "host vehicle code and its initial speed [ host vehicle initial acceleration ] -host vehicle target speed [ target acceleration ] -initial position", specifically, the host vehicle code is denoted as S, and when the host vehicle initial speed is 60km/h, the host vehicle initial acceleration is-2 m/S 2, the host vehicle target speed is 30km/h, the host vehicle target acceleration is-5 m/S 2, and the initial position is the origin of the host vehicle coordinate system, the corresponding fourth segment is denoted as "S60 < -2 > -30 < -5 > -0".
In an optional embodiment, the naming method of the vehicle function test case further includes:
step S261, repeatedly checking the target file names of all test cases in the test case set to obtain a checking result;
Step S262, determining that the plurality of target file names are repeated in response to the test result, and performing secondary analysis on the test case to be updated corresponding to the plurality of target file names to obtain a secondary analysis result, wherein the secondary analysis result is used for determining a standby name parameter and parameter values of the standby name parameter, and the standby name parameter is other named parameters except the plurality of named parameters in the test case to be updated;
step S263, comparing the parameter values of the parameters to be named to obtain a comparison result;
step S264, determining the standby name parameters as additional naming parameters in response to the comparison result that the parameter values of the standby name parameters are different, wherein the additional naming parameters are used for distinguishing repeated test cases of the target file names;
step S265, generating additional fragment naming according to the parameter value of the additional naming parameter;
and step S266, updating the target file name of the test case to be updated by using the additional fragment naming to obtain the updated file name.
In the technical scheme provided by the invention, in order to ensure the uniqueness of the file name of each test case in the test case management system, after generating the target file names of the test cases, carrying out repeatability test on the target file names corresponding to all the test cases, when the test cases with repeated names exist (namely, the test cases to be updated), extracting the test cases to be updated, carrying out deep content analysis and analysis result comparison on the test cases to be updated, determining naming parameters (namely, the additional naming parameters) with different parameter values in each test case to be updated, generating additional fragment names according to the parameter values of the additional naming parameters, and updating the file names of the test cases to be updated by utilizing the additional fragment names.
It should be noted that the standby name parameter (or the additional name parameter) may include, but is not limited to: the curve radius and the straight gradient can be used for generating corresponding fragment naming by using English abbreviations (or modes such as name codes) of the parameters and parameter values.
The above method is further described below with reference to fig. 3 and 4.
Fig. 3 is a schematic diagram of a naming procedure of a vehicle function test case according to an embodiment of the present invention, and fig. 4 is a schematic diagram of an optional target file name of the vehicle function test case according to an embodiment of the present invention, as shown in fig. 3, as an optional implementation manner, a plurality of naming parameters and naming sequences are: when the test cases are named, the fragment names corresponding to each naming parameter are described sequentially, then the target file names are generated according to the fragment names, and finally the file names of all the test cases in the test case management system are named in batches, so that unified naming of all the test cases in the test case management system can be realized, and the unified naming of the target file names of part of the test cases in the optional test scene can be shown in fig. 4.
The naming method of the vehicle function test case provided by the embodiment of the invention realizes unified naming of the file names of the vehicle automatic driving function test case, improves naming efficiency and richness of naming information, thereby being beneficial to directly obtaining specific contents of the test case from the file names of the test case, saving time for opening the test case and reconfirming the contents of the test case, and improving vehicle function test efficiency and management efficiency of the test case.
Still as shown in fig. 3, in an application scenario of developing a test case of a vehicle autopilot function, the naming method of the test case of the vehicle function provided by the embodiment can be utilized to uniformly name the developed test case, each named parameter in the file names of all the developed test cases is analyzed to obtain attributes such as a category of each named parameter and a value range of a parameter value, further, based on the attribute of each named parameter, the parameter value of each named parameter can be automatically generalized, and the generalized parameter values of different named parameters are combined to obtain rich test cases, so that the development efficiency of the test case is improved, and the time cost and the resource consumption are reduced.
In this embodiment, a naming device for a vehicle function test case is further provided, and the naming device is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, a combination of software and/or hardware that belongs to a "module" may implement a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 5 is a block diagram of an alternative naming apparatus for a vehicle function test case, in accordance with an embodiment of the present invention, as shown in FIG. 5, including:
The acquiring module 501 is configured to acquire a test case, where the test case is used to perform an automatic driving function test on a vehicle;
The analysis module 502 is configured to analyze the content of the test case to obtain an analysis result, where the analysis result is used to determine parameter values of a plurality of naming parameters;
A first generating module 503, configured to generate the target file names of the test cases based on the naming orders of the plurality of naming parameters and the parameter values, where the naming orders are determined by occurrence probabilities of the plurality of naming parameters in the test cases.
Alternatively, fig. 6 is a block diagram of a naming apparatus for another alternative vehicle function test case according to an embodiment of the present invention, as shown in fig. 6, including, in addition to the above modules: a statistics module 504, configured to obtain a history test case of the vehicle; extracting a plurality of named parameters in the history test case to obtain a parameter set; carrying out probability statistics on all named parameters in the parameter set to obtain a statistical result, wherein the statistical result comprises the occurrence probability of any one named parameter; and determining the naming sequence of the naming parameters according to the occurrence probability.
Optionally, the first generating module 503 is further configured to: generating fragment naming corresponding to the naming parameters based on the parameter values; and arranging and combining the plurality of fragment names according to the naming sequence to obtain the target file name.
Optionally, the plurality of naming parameters include a test function, and a parameter value of the test function is a standard name of the test function, and the first generating module 503 is further configured to: determining a standard name according to a preset test function naming standard; a first fragment name is generated from the standard name.
Optionally, the plurality of naming parameters further includes a test map and a host driving behavior, and fig. 7 is a block diagram of a naming device of another alternative vehicle function test case according to an embodiment of the present invention, as shown in fig. 7, where the device includes, in addition to the above modules: the second generating module 505 is configured to parse the test map to obtain a road type in the test map; and generating a second fragment name according to the name of the road type and the name of the driving behavior of the host vehicle.
Optionally, the plurality of naming parameters further includes: the first generation module 503 is further configured to: searching standard naming in a preset interaction behavior naming library; and generating a third fragment name according to the name and standard name of the object type.
Optionally, the first generating module 503 is further configured to: the plurality of naming parameters further comprise a main vehicle motion state and a target object motion state, the main vehicle motion state is represented by various motion information of the main vehicle, the target object is a traffic object interacting with the main vehicle, the target object motion state is represented by various motion information of the target object, the various motion information comprises various motion parameters and corresponding motion data, and the segment naming further comprises: the method comprises the steps of generating a fourth segment name corresponding to the motion state of the main vehicle and a fifth segment name corresponding to the motion state of the target object according to the name codes of various motion parameters and the motion data of the main vehicle, and generating the fifth segment name according to the name codes of various motion parameters and the motion data of the target object.
Optionally, fig. 8 is a block diagram of a naming device for a further alternative vehicle function test case according to an embodiment of the present invention, where, as shown in fig. 8, the device includes, in addition to the above modules: the updating module 506 is configured to perform repeatability test on the target file names of all test cases in the test case set, so as to obtain a test result; responding to the test result to determine that the plurality of target file names are repeated, and carrying out secondary analysis on the test case to be updated corresponding to the plurality of target file names to obtain a secondary analysis result, wherein the secondary analysis result is used for determining standby name parameters and parameter values of the standby name parameters, and the standby name parameters are other named parameters except the plurality of named parameters in the test case to be updated; comparing parameter values of parameters to be named to obtain a comparison result; determining that the parameter values of the standby name parameters are different according to the comparison result, and determining the standby name parameters as additional naming parameters, wherein the additional naming parameters are used for distinguishing repeated test cases of the target file names; generating additional fragment naming according to the parameter value of the additional naming parameter; and updating the target file name of the test case to be updated by using the additional fragment naming to obtain the updated file name.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; or the above modules may be located in different processors in any combination.
According to yet another aspect of the embodiments of the present invention, there is also provided a vehicle including an on-board memory in which a computer program is stored, and an on-board processor configured to run the computer program to execute the naming method of the vehicle function test case of any one of the foregoing.
Alternatively, in the present embodiment, the above-described memory may be configured to store a computer program for performing the steps of:
Step S1, acquiring a test case, wherein the test case is used for automatically testing the driving function of a vehicle;
s2, carrying out content analysis on the test case to obtain an analysis result, wherein the analysis result is used for determining parameter values of a plurality of named parameters;
And step S3, generating the target file name of the test case based on the naming sequence of the plurality of naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the plurality of naming parameters in the test case.
Alternatively, in the present embodiment, the above memory may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media in which a computer program can be stored.
Alternatively, in the present embodiment, the above-described in-vehicle processor may be configured to execute the following steps by a computer program:
Step S1, acquiring a test case, wherein the test case is used for automatically testing the driving function of a vehicle;
s2, carrying out content analysis on the test case to obtain an analysis result, wherein the analysis result is used for determining parameter values of a plurality of named parameters;
And step S3, generating the target file name of the test case based on the naming sequence of the plurality of naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the plurality of naming parameters in the test case.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations thereof, and this embodiment is not described herein.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present invention, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (10)
1. A naming method of a vehicle function test case, comprising:
acquiring a test case, wherein the test case is used for automatically testing the driving function of a vehicle;
Performing content analysis on the test case to obtain an analysis result, wherein the analysis result is used for determining parameter values of a plurality of naming parameters;
And generating the target file name of the test case based on the naming sequence of the naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the naming parameters in the test case.
2. The method according to claim 1, wherein the method further comprises:
Acquiring a history test case of the vehicle;
extracting the named parameters in the history test case to obtain a parameter set;
Carrying out probability statistics on all named parameters in the parameter set to obtain a statistical result, wherein the statistical result comprises the occurrence probability of any one named parameter;
and determining the naming sequence of the naming parameters according to the occurrence probability.
3. The method of claim 1, wherein generating the target file name for the test case based on the naming order of the plurality of naming parameters and the parameter values comprises:
generating fragment naming corresponding to the naming parameter based on the parameter value;
and arranging and combining the plurality of fragment names according to the naming sequence to obtain the target file name.
4. The method of claim 3, wherein the plurality of naming parameters includes a test function, wherein a parameter value of the test function is a standard name of the test function, and wherein generating a fragment name corresponding to the naming parameter based on the parameter value includes:
Determining the standard name according to a preset test function naming standard;
and generating a first fragment name according to the standard name.
5. The method of claim 3, wherein the plurality of naming parameters further includes a test map and host vehicle driving behavior, the method further comprising:
analyzing the test map to obtain road types in the test map;
And generating a second segment name according to the name of the road type and the name of the driving behavior of the host vehicle.
6. The method of claim 3, wherein the plurality of naming parameters further comprises: the method comprises the steps of generating a fragment name corresponding to a named parameter based on a parameter value, wherein the fragment name comprises a target type, and interaction behavior of the target and a host vehicle, the target is a traffic object which interacts with the host vehicle, the parameter value comprises a name of the target type and standard naming of the interaction behavior, and the step of generating the fragment name corresponding to the named parameter based on the parameter value comprises the following steps:
Searching the standard naming in a preset interaction behavior naming library;
And generating a third fragment name according to the name of the object type and the standard name.
7. The method of claim 3, wherein the plurality of naming parameters further includes a host vehicle motion state and a target object motion state, the host vehicle motion state characterized by a plurality of motion information of the host vehicle, the target object being a traffic object interacting with the host vehicle, the target object motion state characterized by a plurality of motion information of the target object, the plurality of motion information including a plurality of motion parameters and corresponding motion data, the segment naming further comprising: the method comprises the steps of generating a fourth segment name corresponding to the motion state of a main vehicle and a fifth segment name corresponding to the motion state of a target object according to the name codes of various motion parameters and the motion data of the main vehicle, and generating the fifth segment name according to the name codes of the various motion parameters and the motion data of the target object.
8. The method according to claim 1, wherein the method further comprises:
repeatedly checking the target file names of all test cases in the test case set to obtain a checking result;
responding to the test result to determine that a plurality of target file names are repeated, and performing secondary analysis on the test case to be updated corresponding to the plurality of target file names to obtain a secondary analysis result, wherein the secondary analysis result is used for determining standby name parameters and parameter values of the standby name parameters, and the standby name parameters are other named parameters except the plurality of named parameters in the test case to be updated;
Comparing the parameter values of the standby name parameters to obtain a comparison result;
determining that the parameter values of the standby name parameters are different in response to the comparison result, and determining the standby name parameters as additional naming parameters, wherein the additional naming parameters are used for distinguishing repeated test cases of the target file names;
generating additional fragment naming according to the parameter value of the additional naming parameter;
And updating the target file name of the test case to be updated by using the additional fragment naming to obtain an updated file name.
9. A naming device for a vehicle function test case, comprising:
The system comprises an acquisition module, a test module and a control module, wherein the acquisition module is used for acquiring a test case, wherein the test case is used for automatically testing the driving function of a vehicle;
The analysis module is used for carrying out content analysis on the test case to obtain an analysis result, wherein the analysis result is used for determining parameter values of a plurality of named parameters;
And the first generation module is used for generating the target file name of the test case based on the naming sequence of the naming parameters and the parameter values, wherein the naming sequence is determined by the occurrence probability of the naming parameters in the test case.
10. An electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor being arranged to run the computer program to perform the naming method of the vehicle function test case of any one of the claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311790961.2A CN117931639A (en) | 2023-12-22 | 2023-12-22 | Naming method and device for vehicle function test cases and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311790961.2A CN117931639A (en) | 2023-12-22 | 2023-12-22 | Naming method and device for vehicle function test cases and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117931639A true CN117931639A (en) | 2024-04-26 |
Family
ID=90756579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311790961.2A Pending CN117931639A (en) | 2023-12-22 | 2023-12-22 | Naming method and device for vehicle function test cases and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117931639A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118838851A (en) * | 2024-09-24 | 2024-10-25 | 上海孤波科技有限公司 | Test case generation method and device, electronic equipment and storage medium |
-
2023
- 2023-12-22 CN CN202311790961.2A patent/CN117931639A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118838851A (en) * | 2024-09-24 | 2024-10-25 | 上海孤波科技有限公司 | Test case generation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Hauer et al. | Did we test all scenarios for automated and autonomous driving systems? | |
CN111813095A (en) | Vehicle diagnosis method, device and medium | |
CN112558584B (en) | Diagnostic data acquisition method and device and diagnostic equipment | |
CN111765904B (en) | Test method and device for automatic driving vehicle, electronic equipment and medium | |
CN112445797B (en) | Vehicle diagnosis data reference method, device, terminal equipment and storage medium | |
CN110909110B (en) | Address standardization method and device, storage medium and processor | |
CN111369790B (en) | Vehicle passing record correction method, device, equipment and storage medium | |
CN117931639A (en) | Naming method and device for vehicle function test cases and electronic equipment | |
CN113011852A (en) | Vehicle maintenance reminder method, device, in-vehicle equipment and storage medium | |
CN113655776B (en) | Vehicle detection method and device, electronic equipment and storage medium | |
CN112559272A (en) | Quality information determination method and device of vehicle-mounted equipment, equipment and storage medium | |
CN114896325A (en) | A scenario test evaluation method and system for expected functional safety | |
CN115373366B (en) | Interactive diagnostic system, diagnostic method and storage medium | |
CN109697883A (en) | Bus reporting station method and equipment | |
CN116481560B (en) | Vehicle driving mileage calculation method, device, terminal and storage medium | |
CN118227512A (en) | Method and device for generating test case and terminal equipment | |
CN115311861B (en) | Highway fatigue driving judging method and device, electronic equipment and storage medium | |
CN112216133B (en) | Information pushing method, device, equipment and medium | |
CN119604877A (en) | Vehicle chassis health management method, device and system | |
CN110782114B (en) | Driving behavior mining method and device, electronic equipment and storage medium | |
CN113961657A (en) | A vehicle fleet identification method, device, computer equipment and storage medium | |
CN113656425A (en) | Electronic map updating method and device, electronic equipment, storage medium and product | |
CN110718088B (en) | Bus running state monitoring method and device | |
CN115063905B (en) | Method and device for processing vehicle data, storage medium and electronic device | |
Tollner et al. | Dynamic Data extraction from vehicles through OBD connector |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |