Automatic test data screening method and device, storage medium and electronic device

Through the automated test data screening method, the program algorithm is used to screen automobile test data, which solves the problem of time-consuming and labor-intensive and prone to errors in traditional manual methods, and realizes efficient and accurate test data screening.

CN119473870APending Publication Date: 2025-02-18CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411388168.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Traditional manual method of screening and extracting automobile test data is not only time-consuming and labor-intensive, but also prone to errors, affecting subsequent testing steps.

Method used

The automated test data filtering method is adopted to traverse and filter the target naming rules of the test data through program algorithms to extract test data that meets the requirements.

Benefits of technology

It reduces the test time cost and labor cost, avoids omissions and errors caused by manual screening and extraction of test data, and ensures the accuracy and reliability of the test data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473870A_ABST
    Figure CN119473870A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic test data screening method and device, a storage medium and an electronic device, and relates to the technical field of vehicles. The method comprises the following steps: performing a function safety test on a target vehicle to obtain initial test data; initial number information of the initial test data is determined, and the initial number information comprises a test case number corresponding to any initial test data; the initial number information is screened based on a first screening rule to obtain target number information, the first screening rule carries out screening according to the test case numbers, and the test case numbers in the target number information are different from one another; and determining target test data based on the target number information. According to the method, the technical problems that time and labor are wasted and errors are easy to occur when the test data is screened and extracted manually in related technologies are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to an automated test data screening method, device, storage medium and electronic device. Background Art

[0002] As the functions of automotive electronics and electrical appliances become increasingly complex and the level of automotive intelligence continues to improve, the systems contained in the car, such as the automatic driving system, lane keeping system and adaptive cruise control system, are becoming increasingly intelligent, and the software programs contained in the system are also becoming more complex. In order to avoid unexpected hazards caused by the failure of the automotive system, functional safety testing of the car is the key to ensuring that the electronic and software systems inside the vehicle can provide safe and reliable functions under various circumstances.

[0003] When performing functional safety testing on vehicles, a large amount of test data will be generated, and screening and extracting the test data is a necessary step. Traditional screening and extraction methods usually use manual extraction, which not only wastes manpower, material resources, and time, but also causes errors in test data screening and extraction due to human negligence, which in turn has a negative impact on subsequent test steps.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiment of the present invention provides an automated test data screening method, device, storage medium and electronic device, which uses a program algorithm to traverse and screen the target naming rules customized for test data, and extracts test data that meets the requirements. A computer program is used to replace manual screening and extraction of test data, so as to at least solve the technical problem that when the related technology uses manual screening and extraction of test data, it is not only time-consuming and labor-intensive, but also prone to errors.

[0006] According to one embodiment of the present invention, there is provided an automated test data screening method, comprising: performing a functional safety test on a target vehicle to obtain initial test data, wherein any initial test data in the initial test data corresponds to a test case, the test case is used to perform a functional safety test on any function of the target vehicle, and the initial test data is named based on a target naming rule, the target naming rule comprising the following rules: naming the test data based on the test case number; determining initial numbering information of the initial test data, wherein the initial numbering information comprises a test case number corresponding to any initial test data; screening the initial numbering information based on a first screening rule to obtain target numbering information, wherein the first screening rule screens according to the test case number, and the test case numbers in the target numbering information are different from each other; and determining the target test data based on the target numbering information.

[0007] Optionally, performing a functional safety test on the target vehicle to obtain initial test data includes: setting a target naming rule in a functional safety test system; and performing a functional safety test on the target vehicle based on the functional safety test system to obtain initial test data.

[0008] Optionally, determining the initial numbering information of the initial test data includes: determining a data naming file of the initial test data, wherein the data naming file is used to represent the data name of any initial test data; and determining the initial numbering information based on the data naming file.

[0009] Optionally, filtering the initial numbering information based on the first filtering rule to obtain the target numbering information includes: determining the naming times of any test case number in the initial numbering information to obtain the naming times information; filtering the initial numbering information based on the naming times information to obtain the target numbering information.

[0010] Optionally, the target naming rule also includes the following rules: naming the test data based on the test time, filtering the initial numbering information based on the naming number information, and obtaining the target numbering information includes: determining the first number in the initial numbering information based on the naming number information, wherein the first number is used to represent the test case number that is named once; determining the second number in the initial numbering information based on the naming number information, wherein the second number is used to represent the test case number that is named multiple times; filtering the second number based on the second filtering rule to obtain a third number, wherein the second filtering rule filters according to the test time; obtaining the target numbering information based on the first number and the third number.

[0011] Optionally, filtering the second number based on the second filtering rule to obtain the third number includes: determining the test data corresponding to the second number to obtain problem test data; determining initial time information of the problem test data, wherein the initial time information includes the test time corresponding to any problem test data in the problem test data; classifying the initial time information based on the test case number to obtain at least one classification group, wherein any classification group corresponds to the same test case number; filtering at least one classification group based on the third filtering rule to obtain target time information, wherein the third filtering rule filters according to the time interval between the test time and the current time; and determining the third number based on the target time information.

[0012] Optionally, at least one classification group is filtered based on a third filtering rule to obtain target time information including: determining an initial time interval between any test time in any classification group and the current time; determining a target time interval based on the initial time interval, wherein the target time interval is the time interval with the shortest interval length in the initial time interval; and determining the target time information based on the target time interval.

[0013] Optionally, the target naming rule also includes the following rules: naming the test data based on the project number, naming the test data based on the test function, and naming the test data based on the remark information.

[0014] According to one embodiment of the present invention, a test data screening device is also provided, including: a test module, the test module is used to perform functional safety testing on a target vehicle to obtain initial test data, wherein any initial test data in the initial test data corresponds to a test case, the test case is used to perform functional safety testing on any function of the target vehicle, and the initial test data is named based on a target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number; a first determination module, used to determine initial numbering information of the initial test data, wherein the initial numbering information includes a test case number corresponding to any initial test data; a screening module, used to screen the initial numbering information based on a first screening rule to obtain target numbering information, wherein the first screening rule screens according to the test case number, and the test case numbers in the target numbering information are different from each other; a second determination module, used to determine the target test data based on the target numbering information.

[0015] Optionally, the test module is further used to set a target naming rule in a functional safety test system; perform a functional safety test on the target vehicle based on the functional safety test system to obtain initial test data.

[0016] Optionally, the first determination module is further used to determine a data naming file of the initial test data, wherein the data naming file is used to represent the data name of any initial test data; and to determine the initial numbering information based on the data naming file.

[0017] Optionally, the screening module is further used to determine the naming times of any test case number in the initial numbering information to obtain the naming times information; and screen the initial numbering information based on the naming times information to obtain the target numbering information.

[0018] Optionally, the filtering module is also used to determine the first number in the initial numbering information based on the naming number information, wherein the first number is used to represent the test case number that is named once; determine the second number in the initial numbering information based on the naming number information, wherein the second number is used to represent the test case number that is named multiple times; filter the second number based on the second filtering rule to obtain a third number, wherein the second filtering rule filters according to the test time; and obtain the target numbering information based on the first number and the third number.

[0019] Optionally, the screening module is also used to determine the test data corresponding to the second number to obtain problem test data; determine the initial time information of the problem test data, wherein the initial time information includes the test time corresponding to any problem test data in the problem test data; classify the initial time information based on the test case number to obtain at least one classification group, wherein any classification group corresponds to the same test case number; filter at least one classification group based on a third screening rule to obtain target time information, wherein the third screening rule filters according to the time interval between the test time and the current time; determine the third number based on the target time information.

[0020] Optionally, the screening module is also used to determine the initial time interval between any test time in any classification group and the current time; determine the target time interval based on the initial time interval, wherein the target time interval is the time interval with the shortest interval length in the initial time interval; and determine the target time information based on the target time interval.

[0021] Optionally, the target naming rule also includes the following rules: naming the test data based on the project number, naming the test data based on the test function, and naming the test data based on the remark information.

[0022] According to one embodiment of the present invention, a vehicle is provided, and the vehicle is used to execute any of the above-mentioned automatic test data screening methods.

[0023] According to one embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute any of the above-mentioned automated test data screening methods when running on a computer or a processor.

[0024] According to one embodiment of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above-mentioned automated test data screening methods.

[0025] According to one embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned automated test data screening methods.

[0026] In an embodiment of the present invention, initial test data is obtained by performing functional safety test on a target vehicle, wherein any initial test data in the initial test data corresponds to a test case, the test case is used to perform functional safety test on any function of the target vehicle, and the initial test data is named based on a target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number; determining the initial numbering information of the initial test data, wherein the initial numbering information includes the test case number corresponding to any initial test data; filtering the initial numbering information based on a first screening rule to obtain target numbering information, wherein the first screening rule filters according to the test case number, and the test case numbers in the target numbering information are different from each other; and determining the target test data based on the target numbering information. The purpose of using a computer program to replace manual screening and extraction of test data is achieved, thereby reducing the test time cost and labor cost, while avoiding omissions, errors, etc. caused by manual screening and extraction of test data, and preventing the technical effect of affecting subsequent steps, thereby solving the technical problem that the related technology uses manual screening and extraction of test data, which is not only time-consuming and labor-intensive, but also prone to errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0028] Figure 1 is a flow chart of an automated test data screening method according to one embodiment of the present invention;

[0029] Figure 2 is a flow chart of a functional safety test according to one embodiment of the present invention;

[0030] Figure 3 is a system schematic diagram of an automated test data screening method according to one embodiment of the present invention;

[0031] Figure 4 is a structural block diagram of an automated test data screening method according to one embodiment of the present invention; DETAILED DESCRIPTION

[0032] To facilitate understanding, some descriptions of concepts related to the embodiments of the present invention are exemplarily provided for reference.

[0033] As shown below:

[0034] Vehicle functional safety testing: Functional safety testing of vehicles refers to testing the various electronic control systems and functions of the vehicle to ensure that the vehicle can ensure safety in normal use and emergency situations. This test usually includes testing the vehicle's braking system, steering system, vehicle stability control system, airbag system, etc. to verify their reliability and safety in various situations.

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In the description of this embodiment, unless otherwise specified, the meaning of "multiple" is two or more. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0037] According to one embodiment of the present invention, an embodiment of an automated test data screening method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] The method embodiment can be executed in an electronic device including a memory and a processor, a similar control device or a system. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by a person of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.

[0039] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a programmable logic device (field-programmable gate array, FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated in one or more processors. In some instances, the electronic device may also include one or more processors.

[0040] The memory can be used to store computer programs, such as storing the computer program corresponding to the automated test data screening method in the embodiment of the present invention, and the processor implements the automated test data screening method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0041] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0042] The display device may be, for example, a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or a "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contact and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.

[0043] In this embodiment, a method for automatically screening test data running on an electronic device is provided. Figure 1 is a flow chart of an automated test data screening method according to one embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0044] Step S10, performing a functional safety test on the target vehicle to obtain initial test data, wherein any initial test data in the initial test data corresponds to a test case, the test case is used to perform a functional safety test on any function of the target vehicle, and the initial test data is named based on a target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number;

[0045] In the embodiment of the present invention, the target vehicle can be understood as an autonomous driving vehicle, and the target vehicle can include an autonomous driving system, a lane keeping system, an adaptive cruise control system, etc., which are not limited here.

[0046] Functional safety testing of the target vehicle can be understood as testing the various systems and components of the target vehicle to ensure that the vehicle can maintain safety performance under normal use. For example, functional safety testing can be performed on the target vehicle's autonomous driving system, lane keeping system, adaptive cruise system, braking system, steering system, drive system, etc. Functional safety testing can also be performed on sensors, controllers, networks, etc. carried in the target vehicle to verify their reliability and safety under various circumstances, which is not limited here.

[0047] It is understandable that functional safety testing of the target vehicle can be carried out through various methods, such as field testing, simulation testing, virtual testing, etc., to ensure the safety performance of the vehicle on the road, which is not limited here.

[0048] Performing functional safety testing on the target vehicle can obtain initial test data, and the initial test data includes all data obtained when performing functional safety testing on the target vehicle. Exemplarily, the initial test data may include various sensor data of the target vehicle, such as environmental information and vehicle status information collected by sensors such as cameras, radars, and lidars. The initial test data may also include data from various controllers of the vehicle, such as the operating status, output signals, and other data of controllers such as engine controllers, brake controllers, and steering controllers. The initial test data may also include data transmitted between various modules inside the target vehicle through the vehicle network, such as data communications such as controller area networks (CAN) buses and Ethernet, which are not limited here.

[0049] Any of the initial test data corresponds to a test case, and the test case is used to perform a functional safety test on any function of the target vehicle. It is understandable that when performing a functional safety test on the target vehicle, the corresponding function of the target vehicle will be tested according to the pre-set test case, thereby obtaining test data corresponding to the test case.

[0050] It should be noted that when testing the corresponding functions of the target vehicle according to the test case, the test data may be inaccurate due to inaccurate settings of the control conditions or parameters of the test case. In this case, the control conditions or parameters of the test case will be adjusted again, and the test will be repeated according to the test case until accurate test data is obtained. Therefore, in the initial test data, the test data corresponding to the same test case may include multiple test data.

[0051] When the initial test data is obtained through testing, the initial test data will also be named based on the target naming rules. The target naming rules include the following rules: Name the test data based on the test case number. It is understandable that each test case corresponds to a test case number, and the initial test data will be named according to the corresponding test case number. For example, assuming that the test case number is TC001, the corresponding test data can be named TC001, which is not limited here.

[0052] In an embodiment of the present invention, initial test data is obtained by performing functional safety tests on a target vehicle, and the initial test data is named based on the corresponding test case number, so that the test case according to which the initial test data is obtained can be accurately located according to the naming of the initial test data, so that the data can be quickly and accurately screened subsequently.

[0053] Step S11, determining initial numbering information of initial test data, wherein the initial numbering information includes a test case number corresponding to any initial test data;

[0054] In an embodiment of the present invention, after obtaining the initial test data, it is necessary to determine the initial numbering information of the initial test data, the initial numbering information includes the test case number corresponding to any initial test data, that is, it is necessary to determine the test case number corresponding to each initial test data.

[0055] Exemplarily, since the initial test data is named based on the test case number, the initial numbering information of the initial test data can be accurately determined based on the file naming of the initial test data.

[0056] Step S12, screening the initial numbering information based on a first screening rule to obtain target numbering information, wherein the first screening rule screens according to the test case numbers, and the test case numbers in the target numbering information are different from each other;

[0057] In the embodiment of the present invention, the first screening rule is a screening rule for screening the initial numbering information, that is, screening the initial numbering information according to the test case number.

[0058] The initial numbering information is filtered based on the first filtering rule to obtain the target numbering information. It can be understood that after obtaining the initial numbering information, the initial numbering information needs to be filtered based on the first filtering rule to obtain the target numbering information, that is, the target numbering information is obtained after filtering the initial numbering information according to the first filtering rule.

[0059] It should be noted that, since the test data corresponding to the same test case in the initial test data may include multiple test data, that is, the same test case number may exist in the initial numbering information. Therefore, it is necessary to filter the initial numbering information through the first filtering rule to obtain the target numbering information. Moreover, the test case numbers in the target numbering information are different from each other, that is, the test case numbers in the target numbering information are unique.

[0060] Step S13, determining target test data based on the target number information.

[0061] In the embodiment of the present invention, after the target number information is obtained, the target test data is determined based on the target number information.

[0062] Exemplarily, the test case number in the target number information is unique, and based on the target number information, it can be quickly determined based on which test case the target test data is obtained, thereby saving time cost.

[0063] In an embodiment of the present invention, when screening test data, a functional safety test can be performed on a target vehicle to obtain initial test data, and the initial test data is named based on the test case number, so that the initial test data can be accurately located based on which test case the initial test data is obtained. Then, the initial numbering information corresponding to the initial test data is determined, and then the initial numbering information is screened based on the test case number to obtain the target numbering information, and finally the target test data is determined based on the target numbering information, so that the test case number in the target numbering information is unique, so that the target test data can be quickly determined based on which test case the target test data is obtained, saving time and cost, and thus avoiding omissions when screening and extracting test data, and avoiding errors and the like.

[0064] Through the above steps, the functional safety test is performed on the target vehicle to obtain the initial test data, wherein any initial test data in the initial test data corresponds to a test case, the test case is used to perform a functional safety test on any function of the target vehicle, and the initial test data is named based on the target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number; determining the initial numbering information of the initial test data, wherein the initial numbering information includes the test case number corresponding to any initial test data; filtering the initial numbering information based on the first screening rule to obtain the target numbering information, wherein the first screening rule is filtered according to the test case number, and the test case numbers in the target numbering information are different from each other; and determining the target test data based on the target numbering information. The purpose of automatically filtering the data based on the test case number is achieved, thereby reducing the test time cost and labor cost, while avoiding the occurrence of omissions, errors, etc. caused by manual screening and extraction of test data, and preventing the technical effect of affecting the subsequent steps, thereby solving the technical problem that the manual screening and extraction of test data in the related technology is not only time-consuming and labor-intensive but also prone to errors.

[0065] Optionally, in step S10, performing a functional safety test on the target vehicle to obtain initial test data may include the following execution steps:

[0066] Step S101, setting a target naming rule in a functional safety test system;

[0067] Step S102: Perform a functional safety test on the target vehicle based on the functional safety test system to obtain initial test data.

[0068] In the embodiment of the present invention, the functional safety test system can be understood as being used to test various systems of the target vehicle, to help evaluate the safety performance of the system, to discover potential problems and risks, and to make corresponding improvements and optimizations. For example, the functional safety test system can be used to simulate various possible dangerous situations and failure situations, and analyze the reaction and performance of the test system (including the braking system, steering system, vehicle stability control system, airbag system, etc.) when facing these situations, which is not limited here.

[0069] In an embodiment of the present invention, a functional safety test is performed on a target vehicle to obtain initial test data. The following steps can be performed: first, a target naming rule is pre-set in a functional safety test system; then, a functional safety test is performed on the target vehicle through the functional safety test system to obtain initial test data; and then, the initial test data is named based on the target naming rule, so that the initial test data can be accurately located according to the naming of the initial test data, so that the test data can be managed quickly and accurately subsequently.

[0070] Optionally, in step S11, determining the initial serial number information of the initial test data may include the following execution steps:

[0071] Step S111, determining a data naming file of the initial test data, wherein the data naming file is used to represent the data name of any initial test data;

[0072] Step S112, determining initial numbering information based on the data naming file.

[0073] In the embodiment of the present invention, the data naming file can be understood as a file named for any initial test data, and is composed of the file name of any initial test data. It can be understood that each data name of the initial test data is set with a corresponding data naming file.

[0074] Optionally, the initial test data may also be stored in a designated storage path. Exemplarily, the initial test data storage path may be, for example, "C: / ProgramData", which is not limited here.

[0075] Exemplarily, determining the initial numbering information of the initial test data can be achieved by executing the following steps. First, the data name of the initial test data is determined and made into a data naming file. Then, the initial numbering information of the initial test data is determined based on the data naming file. The use of the data naming file can improve the readability and comprehensibility of the data, thereby facilitating the management and analysis of the test data. The initial numbering information is used to facilitate the organization and screening of the initial test data obtained in subsequent testing work, thereby improving testing efficiency.

[0076] Optionally, in step S12, screening the initial numbering information based on the first screening rule to obtain the target numbering information may include the following execution steps:

[0077] Step S121, determining the naming times of any test case number in the initial numbering information, and obtaining naming times information;

[0078] Step S122, screening the initial numbering information based on the naming times information to obtain the target numbering information.

[0079] In the embodiment of the present invention, further, the first screening rule can be understood as a screening rule for screening the initial test data according to the naming number information.

[0080] The naming frequency information is used to record the naming frequency used for each test case number when naming the initial test data. It is understandable that since the same test case may correspond to multiple test data, there is more than one naming frequency information for the same test case number in the initial numbering information.

[0081] In an embodiment of the present invention, the initial numbering information is filtered based on the first filtering rule to obtain the target numbering information by executing the following steps: first, the number of times the same test case number in the initial numbering information is named is determined to obtain the naming number information; then, the initial numbering information is filtered based on the naming number information to obtain the target numbering information; the number of times the same test case number in the initial numbering information is named can help to better understand the importance and frequency of each test case, so that testing can be performed in a more targeted manner.

[0082] Optionally, the target naming rule further includes the following rule: the test data is named based on the test time. In step S122, the initial numbering information is screened based on the naming times information, and obtaining the target numbering information may include the following execution steps:

[0083] Step S1221, determining a first number in the initial numbering information based on the naming times information, wherein the first number is used to represent a test case number that is named once;

[0084] Step S1222, determining a second number in the initial numbering information based on the naming times information, wherein the second number is used to represent the number of the test case that has been named multiple times;

[0085] Step S1223, filtering the second number based on a second filtering rule to obtain a third number, wherein the second filtering rule filters according to a test time;

[0086] Step S1224, obtaining target number information based on the first number and the third number.

[0087] In an embodiment of the present invention, the target naming rule also includes the following rule: naming the test data based on the test time, which can be understood as the target naming rule for naming the initial test data includes two rules: naming the test data based on the test case number and naming the test data based on the test time. For example, assuming that the test case number is TC001 and the test time is October 15, 2022, the corresponding initial test data can be named TC001_October 15, 2022, which is not limited here.

[0088] A test case number named once can be understood as a test case number used only once when naming the initial test data, and it can be understood that the initial test data corresponding to the test case number named once is unique. A test case number named multiple times can be understood as a test case number used multiple times when naming the initial test data, and it can be understood that the initial test data corresponding to the test case number named multiple times is not unique.

[0089] Determining the first number in the initial numbering information based on the naming number information can be understood as using the naming number information to determine the test case number that is named once in the initial numbering information. Determining the second number in the initial numbering information based on the naming number information can be understood as using the naming number information to determine the test case number that is named multiple times in the initial numbering information.

[0090] The second screening rule can be understood as a rule for screening the second number based on the test time. It can be understood that since the second number is a test case number named multiple times, that is, the initial test data corresponding to the second number is not unique, there may be inaccurate initial test data. Therefore, the second number is screened by the second screening rule, so that the inaccurate initial test data corresponding to the second number is eliminated, and finally the third number is obtained, that is, the third number corresponding to the unique initial test data is obtained.

[0091] In an embodiment of the present invention, the initial numbering information is screened based on the naming number information to obtain the target numbering information, which can be achieved by executing the following steps: first, the naming number information is used to determine the test case number that is named once in the initial numbering information, then the test case number that is named multiple times in the initial numbering information is determined, and the second number is screened according to the test time to obtain the third number, and finally the target number information is obtained from the first number and the third number. The target numbering information obtained by filtering based on the naming number information can exclude some wrong or repeated numbers, thereby improving the accuracy and reliability of the data, and filtering the test data based on the test time can effectively filter out the latest test data, thereby better reflecting the safety performance of the current vehicle function, and the latest test data can often more accurately reflect the latest status of the vehicle function, so filtering based on the test time can improve the accuracy and reliability of the test results.

[0092] Optionally, in step S1223, filtering the second number based on the second filtering rule to obtain the third number may include the following execution steps:

[0093] Step S12231, determining the test data corresponding to the second number, and obtaining the problem test data;

[0094] Step S12232, determining initial time information of the problem test data, wherein the initial time information includes a test time corresponding to any problem test data in the problem test data;

[0095] Step S12233, classifying the initial time information based on the test case number to obtain at least one classification group, wherein any classification group corresponds to the same test case number;

[0096] Step S12234, filtering at least one classification group based on a third filtering rule to obtain target time information, wherein the third filtering rule filters according to the time interval between the test time and the current time;

[0097] Step S12235, determining a third number based on the target time information.

[0098] In the embodiment of the present invention, the problem test data can be understood as multiple test data corresponding to the same test case number. The third screening rule can be understood as a screening rule for screening at least one classification group according to the time interval between the test time and the current time.

[0099] Determine the initial time information of the problem test data, where the initial time information includes the test time corresponding to any problem test data in the problem test data, which can be understood as determining the initial test time of multiple test data corresponding to the same test case.

[0100] The initial time information is classified based on the test case number to obtain at least one classification group. Any classification group corresponds to the same test case number. It can be understood as classifying the initial time information of multiple test data corresponding to the same test case number, and then classifying the initial time of multiple test data corresponding to the same test case into the same classification group.

[0101] At least one classification group is screened based on the third screening rule to obtain target time information. The third screening rule is screened according to the time interval between the test time and the current time. It can be understood that at least one classification group is screened according to the time interval between the test time and the current time. Exemplarily, the initial time information with the smallest time interval with the current time in the same classification group is selected, that is, the test time closest to the current time is selected, and then the target time information is obtained.

[0102] Exemplarily, the second number is screened based on the second screening rule, and the third number can be obtained by executing the following steps. First, the corresponding problem test data can be obtained through the second number, and the test time corresponding to any problem test data in the problem test data is determined. Then, the initial time information of all problem test data is classified according to the test case number, and at least one test case number can be obtained. The same classification group corresponding to the same test case can be obtained. After classification, the test data corresponding to the same test case can be more easily identified, so that the test can be performed more efficiently. Then, at least one classification group is screened according to the time interval between the test time and the current time, and the target time information is obtained. Finally, the third number is determined using the obtained target time information. Screening test data through screening rules can improve the efficiency of the test, reduce the blindness and arbitrariness in the test process, so that problems can be found faster and repaired in time, ensuring that the functional safety performance of the vehicle meets the requirements.

[0103] Optionally, in step S12234, filtering at least one classification group based on the third filtering rule to obtain the target time information may include the following execution steps:

[0104] Step S122341, determining the initial time interval between any test time in any classification group and the current time;

[0105] Step S122342, determining a target time interval based on the initial time interval, wherein the target time interval is the time interval with the shortest interval length among the initial time intervals;

[0106] Step S122343, determining target time information based on the target time interval.

[0107] In the embodiment of the present invention, determining the initial time interval between any test time in any classification group and the current time can be understood as obtaining the current time, obtaining any test time in the selected classification group, and calculating the initial time interval between the current time and the selected test time.

[0108] The target time interval is determined based on the initial time interval. The target time interval is the time interval with the shortest interval length among the initial time intervals. It can be understood as selecting the test time closest to the current time.

[0109] Exemplarily, at least one classification group is screened based on the third screening rule, and the target time information can be obtained by executing the following steps: first, the current time is obtained, any test time in the selected classification group is obtained, the initial time interval between the current time and the selected test time is calculated, and then the time interval with the smallest interval length in the initial time interval is determined based on the initial time interval, and it is determined as the target time interval, and finally the target time interval is used to determine the target time information. At least one classification group is screened using the third screening rule, and the initial time information with the smallest time interval with the current time interval is used as the target time information, so that the test data obtained by screening are the latest, and the latest test data is more valuable than the old test data.

[0110] Optionally, the target naming rule also includes the following rules: naming the test data based on the project number, naming the test data based on the test function, and naming the test data based on the remark information.

[0111] As mentioned above, the target naming rule can name the test data based on the test case number and the test data based on the test time. In addition, the target naming rule can also name the test data based on the project number, the test data based on the test function, and the test data based on the remark information. For example, if the project number is PROJ001, the test function is the login function, the test case number is TC001, the test time is October 15, 2022, and the remark information is that the demand priority is high, then the corresponding test data can be named PROJ001_login_TC001_high_October 15, 2022, which is not limited here.

[0112] Figure 2 is a flow chart of a functional safety test according to one embodiment of the present invention. Figure 2As shown in the figure, when performing functional safety testing, it is first necessary to pre-customize the test data target naming rules in the functional safety test system. Then determine the initial test data storage path and perform functional safety testing on the target vehicle in the functional safety test system to obtain the initial test data. Then, according to the number of naming times of the test data naming file, the initial test data is filtered by traversal loop to obtain the target test data. Finally, the target test data is stored in the specified path and added to the set to be extracted.

[0113] Figure 3 This is a system schematic diagram of an automated test data screening method according to one embodiment of the present invention, including a path storage module, a test data screening module and a test data extraction module. The path storage module is used to save the storage path of the initial test data, and is also used to save the storage path of the target test data obtained after traversing and cyclically screening the initial test data. For example, the storage path of the initial test data may be in the form of "C: / ProgramData", and the storage path of the target test data may be in the form of "C: / ProgramData_Copy", which is not limited here. The test data screening module is used to filter all the initial test data under the initial test data storage path through a program algorithm and a target naming rule to obtain the target test data. The test data extraction module can extract the filtered target test data to a specified storage path through a program algorithm.

[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0115] In this embodiment, an automatic test data screening device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0116] Figure 4 is a structural block diagram of an automatic test data screening device according to one embodiment of the present invention. Figure 4As shown, an automatic test data screening device 400 is used as an example, and the device includes: a test module 401, which is used to perform a functional safety test on a target vehicle to obtain initial test data, wherein any initial test data in the initial test data corresponds to a test case, and the test case is used to perform a functional safety test on any function of the target vehicle, and the initial test data is named based on a target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number; a first determination module 402, which is used to determine the initial numbering information of the initial test data, wherein the initial numbering information includes the test case number corresponding to any initial test data; a screening module 403, which is used to screen the initial numbering information based on the first screening rule to obtain the target numbering information, wherein the first screening rule screens according to the test case number, and the test case numbers in the target numbering information are different from each other; a second determination module 404, which is used to determine the target test data based on the target numbering information.

[0117] Optionally, the test module 401 is further used to set a target naming rule in the functional safety test system; perform a functional safety test on the target vehicle based on the functional safety test system to obtain initial test data.

[0118] Optionally, the first determining module 402 is further configured to determine a data naming file of the initial test data, wherein the data naming file is used to indicate a data name of any initial test data; and to determine the initial numbering information based on the data naming file.

[0119] Optionally, the screening module 403 is further used to determine the naming times of any test case number in the initial numbering information to obtain the naming times information; and screen the initial numbering information based on the naming times information to obtain the target numbering information.

[0120] Optionally, the filtering module 403 is also used to determine the first number in the initial numbering information based on the naming number information, wherein the first number is used to represent the test case number that is named once; determine the second number in the initial numbering information based on the naming number information, wherein the second number is used to represent the test case number that is named multiple times; filter the second number based on the second filtering rule to obtain a third number, wherein the second filtering rule filters according to the test time; and obtain the target numbering information based on the first number and the third number.

[0121] Optionally, the screening module 403 is also used to determine the test data corresponding to the second number to obtain the problem test data; determine the initial time information of the problem test data, wherein the initial time information includes the test time corresponding to any problem test data in the problem test data; classify the initial time information based on the test case number to obtain at least one classification group, wherein any classification group corresponds to the same test case number; filter at least one classification group based on a third screening rule to obtain target time information, wherein the third screening rule filters according to the time interval between the test time and the current time; determine the third number based on the target time information.

[0122] Optionally, the screening module 403 is also used to determine the initial time interval between any test time in any classification group and the current time; determine the target time interval based on the initial time interval, wherein the target time interval is the time interval with the shortest interval length in the initial time interval; and determine the target time information based on the target time interval.

[0123] Optionally, the target naming rule also includes the following rules: naming the test data based on the project number, naming the test data based on the test function, and naming the test data based on the remark information.

[0124] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0125] An embodiment of the present invention further provides a vehicle, which is used to execute the steps in any of the above method embodiments.

[0126] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when running on a computer or a processor.

[0127] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0128] Step S10, performing functional safety testing on the target vehicle to obtain initial test data;

[0129] Step S11, determining the initial numbering information of the initial test data;

[0130] Step S12: Filter the initial numbering information based on the first filtering rule to obtain target numbering information;

[0131] Step S13: Determine target test data based on the target number information.

[0132] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0133] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0134] Optionally, in this embodiment, the processor in the electronic device may be configured to run a computer program to perform the following steps:

[0135] Step S10, performing functional safety testing on the target vehicle to obtain initial test data;

[0136] Step S11, determining the initial numbering information of the initial test data;

[0137] Step S12: Filter the initial numbering information based on the first filtering rule to obtain target numbering information;

[0138] Step S13: Determine target test data based on the target number information.

[0139] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps in any of the above method embodiments when executed by a processor.

[0140] Optionally, in this embodiment, the computer program in the above computer program product may be configured to perform the following steps when executed by a processor:

[0141] Step S10, performing functional safety testing on the target vehicle to obtain initial test data;

[0142] Step S11, determining the initial numbering information of the initial test data;

[0143] Step S12: Filter the initial numbering information based on the first filtering rule to obtain target numbering information;

[0144] Step S13: Determine target test data based on the target number information.

[0145] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0146] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0147] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0148] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0150] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., various media that can store program codes.

[0152] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An automated test data screening method, characterized in that: include: Performing a functional safety test on a target vehicle to obtain initial test data, wherein any initial test data in the initial test data corresponds to a test case, the test case is used to perform a functional safety test on any function of the target vehicle, and the initial test data is named based on a target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number; Determine initial numbering information of the initial test data, wherein the initial numbering information includes a test case number corresponding to any of the initial test data; Filtering the initial numbering information based on a first filtering rule to obtain target numbering information, wherein the first filtering rule filters according to the test case numbers, and the test case numbers in the target numbering information are different from each other; Target test data is determined based on the target number information.

2. The method according to claim 1, characterized in that The functional safety test of the target vehicle is performed to obtain initial test data including: Setting the target naming rule in the functional safety test system; A functional safety test is performed on the target vehicle based on the functional safety test system to obtain the initial test data.

3. The method according to claim 1, characterized in that The determining of the initial numbering information of the initial test data comprises: Determine a data naming file of the initial test data, wherein the data naming file is used to represent the data name of any initial test data; The initial numbering information is determined based on the data naming file.

4. The method according to claim 1, characterized in that The initial numbering information is screened based on the first screening rule to obtain the target numbering information, including: Determine the naming times of any test case number in the initial numbering information to obtain naming times information; The initial numbering information is screened based on the naming number information to obtain the target numbering information.

5. The method according to claim 4, characterized in that The target naming rules also The following rules are included: the test data is named based on the test time, the initial numbering information is screened based on the naming times information, and the target numbering information is obtained including: Determine a first number in the initial numbering information based on the naming times information, wherein the first number is used to represent the test case number that is named once; Determine a second number in the initial numbering information based on the naming times information, wherein the second number is used to represent the number of the test case that has been named multiple times; The second number is screened based on a second screening rule to obtain a third number, wherein the second screening rule screens according to a test time; The target number information is obtained based on the first number and the third number.

6. The method according to claim 5, characterized in that The filtering of the second number based on the second filtering rule to obtain the third number includes: Determine the test data corresponding to the second number to obtain the problem test data; Determine initial time information of the problem test data, wherein the initial time information includes a test time corresponding to any problem test data in the problem test data; Classifying the initial time information based on the test case number to obtain at least one classification group, wherein any classification group corresponds to the same test case number; Filtering the at least one classification group based on a third filtering rule to obtain target time information, wherein the third filtering rule filters according to the time interval between the test time and the current time; The third number is determined based on the target time information.

7. The method according to claim 6, characterized in that The filtering of the at least one classification group based on the third filtering rule to obtain the target time information includes: Determine an initial time interval between any test time in any classification group and the current time; Determine a target time interval based on the initial time interval, wherein the target time interval is a time interval with a minimum time length among the initial time intervals; The target time information is determined based on the target time interval.

8. The method according to any one of claims 1 to 7, characterized in that The target naming rules also include the following rules: naming the test data based on the project number, naming the test data based on the test function, and naming the test data based on the remark information.

9. An automated test data screening device, characterized in that: include: A test module, used for performing a functional safety test on a target vehicle to obtain initial test data, wherein any initial test data in the initial test data corresponds to a test case, the test case is used for performing a functional safety test on any function of the target vehicle, and the initial test data is named based on a target naming rule, and the target naming rule includes the following rules: naming the test data based on the test case number; A first determining module, configured to determine initial numbering information of the initial test data, wherein the initial numbering information includes a test case number corresponding to any of the initial test data; A screening module, configured to screen the initial numbering information based on a first screening rule to obtain target numbering information, wherein the first screening rule screens according to the test case number, and the test case numbers in the target numbering information are different from each other; The second determination module is used to determine the target test data based on the target number information.

10. A vehicle, characterized in that: The vehicle is used to execute the automated test data screening method described in any one of claims 1 to 8 above.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the automated test data screening method described in any one of claims 1 to 8 when running on a computer or a processor.

12. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the automated test data screening method as claimed in any one of claims 1 to 8.

13. A computer program product, characterized in that The invention comprises a computer program, which implements the automatic test data screening method as claimed in any one of claims 1 to 8 when being executed by a processor.