Test data processing method and device, equipment, storage medium and program product
By extracting and classifying the test data of the vehicle control system and automatically verifying the system functions, the problems of low efficiency and poor quality of test data processing in the existing technology are solved, the processing efficiency and quality of test data are improved, and manual errors are reduced .
Patent Information
- Application Number
- CN202411143272.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-12-13
AI Technical Summary
Existing test data processing methods are inefficient, resulting in poor test quality of vehicle control systems, and due to manual errors, system failures and defects may be left behind.
By obtaining the test data and system functions of the vehicle control system, feature extraction and classification are performed, and the extracted features are used for verification, so as to automatically process the test data and improve processing efficiency and quality.
It realizes automated processing of test data, improves processing efficiency, ensures the quality of software testing of control system, reduces manual errors, and ensures the integrity and reliability of the system.
Smart Images

Figure CN119126745A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to a test data processing method, device, equipment, storage medium and program product. Background Art
[0002] Currently, when testing a vehicle's control system, test engineers will obtain a lot of test data. The processing of the test data mainly requires manual import, signal analysis and selection, and review and reporting of existing problems.
[0003] However, the existing test data processing methods have the following problems: the screening of problem data and the reporting of problems need to be performed manually by engineers. When this method is applied to the processing of large amounts of test data, it will increase the workload of test engineers, and due to the different technical levels of engineers, it will lead to inconsistencies in the analysis and reporting of test problems; and in the existing data processing methods, many key data in the testing process are missed due to the negligence of test engineers, which will lead to the failure of legacy systems and the existence of defects.
[0004] In summary, the existing test data processing methods have the problems of low processing efficiency and poor test quality. Summary of the invention
[0005] The purpose of the present invention is to provide a test data processing method, device, equipment, storage medium and program product to solve the problems of low processing efficiency and poor test quality in the existing test data processing methods.
[0006] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a test data processing method, comprising:
[0008] Obtain test data and system functions of vehicle control systems;
[0009] Performing feature extraction on the test data to obtain test features of the test data;
[0010] Classifying the system functions to obtain different categories of system functions;
[0011] The test features are used to perform verification on different types of system functions to obtain verification results.
[0012] Optionally, performing feature extraction on the test data to obtain test features of the test data includes at least one of the following:
[0013] Extracting features from the test data according to preset control requirements to obtain test features corresponding to the preset control requirements in the test data;
[0014] Extracting features from the test data according to the control strategy of the system function to obtain test features of whether the test data satisfies the control strategy;
[0015] The test data is subjected to feature extraction using a controller area network (CAN) protocol to obtain test features corresponding to fault information in the test data.
[0016] Optionally, feature extraction is performed on the test data according to a preset control requirement to obtain a test feature corresponding to the preset control requirement in the test data, including:
[0017] Obtaining a characteristic scenario in the preset control requirement;
[0018] Feature extraction is performed on the test data according to the feature scenario to obtain test features corresponding to the feature scenario in the test data.
[0019] Optionally, the system functions are classified to obtain different types of system functions, including:
[0020] Obtaining the importance of the system function according to the functional impact of the system function;
[0021] Among them, system functions of different importance correspond to different categories of system functions;
[0022] The functional impact includes at least one of the following:
[0023] It affects the safety of the entire vehicle, the driving experience, and the feelings of the driver and passengers.
[0024] Optionally, for different types of system functions, verification is performed using the test features to obtain verification results, including:
[0025] Obtain key statements of the test case of the system function;
[0026] The key sentences corresponding to the system functions of different categories are verified using the test features to obtain verification results.
[0027] Optionally, for the key statements corresponding to the system functions of different categories, verification is performed using the test feature to obtain a verification result, including at least one of the following:
[0028] For the threshold information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0029] Verify the trigger condition information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results;
[0030] Verify the delayed trigger information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results;
[0031] For the fault trigger information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0032] The state jump information in the key statements corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
[0033] Optionally, after performing verification using the test feature and obtaining a verification result, the method further includes:
[0034] In the case that the verification result does not meet the preset test requirement, a test report is generated according to the test data corresponding to the verification result that does not meet the preset test requirement.
[0035] In a second aspect, an embodiment of the present invention provides a test data processing device, including:
[0036] A first acquisition module, used to acquire test data and system functions of a vehicle control system;
[0037] A first processing module is used to extract features from the test data to obtain test features of the test data;
[0038] A second processing module is used to classify the system functions to obtain system functions of different categories;
[0039] The third processing module is used to verify different types of system functions using the test features to obtain verification results.
[0040] In a third aspect, an embodiment of the present invention provides a file security detection device, comprising: a transceiver, a processor, a memory, and a program or instruction stored on the memory and executable on the processor; when the processor executes the program or instruction, it implements the steps in the test data processing method described in any one of the first aspects.
[0041] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a program or instruction stored thereon, wherein the program or instruction, when executed by a processor, implements the steps in the test data processing method as described in any one of the first aspects.
[0042] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the test data processing method as described in any one of the first aspects.
[0043] The beneficial effects of the above technical solution of the present invention are as follows:
[0044] The test data processing method provided by the solution of the present invention obtains the test data and system functions of the vehicle control system, and extracts features from the test data to obtain test features of the test data and classifies the system functions to obtain different categories of system functions. The test features are used to perform verification on the different categories of system functions to obtain verification results, thereby realizing automated processing of test data, improving processing efficiency, and ensuring the quality of control system software testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flow chart of a test data processing method provided by an embodiment of the present invention;
[0046] Figure 2 A specific flow chart of the test data processing method provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of the structure of a test data processing device provided by an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of the structure of a test data processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0050] In order to solve the problems of low processing efficiency and poor test quality in existing test data processing methods, embodiments of the present invention provide a test data processing method, apparatus, device, storage medium and program product.
[0051] like Figure 1 As shown, an embodiment of the present invention provides a test data processing method, including:
[0052] Step 101: Acquire test data and system functions of a vehicle control system.
[0053] That is, in this step, the test data of the vehicle control system is imported, which specifically includes: obtaining the format of the test data, the time of the test data, the collector of the test data, the size of the test data and the project to which the test data belongs.
[0054] The system function may also be referred to as a control function, and different system functions correspond to different control requirements and different control strategies.
[0055] Step 102: extract features from the test data to obtain test features of the test data.
[0056] In this step, by performing feature extraction on the test data, test features of the test data are obtained, and the test features can be used to subsequently verify whether the test data conforms to the system function.
[0057] Step 103: Classify the system functions to obtain system functions of different categories.
[0058] In this step, by classifying the system functions, it is convenient to verify the system functions using different test features later, thereby improving the verification efficiency.
[0059] Step 104: Verify different types of system functions using the test features to obtain verification results.
[0060] In this step, the test features are used to verify different system functions, which can conveniently verify the system functions, has a high input-output ratio, can well reuse test resources, save test time, and improve test efficiency.
[0061] In an optional embodiment, the test data analysis method includes at least one of the following: extracting features from the test data to obtain test features of the test data includes at least one of the following:
[0062] According to the preset control requirements (i.e., the control requirements mentioned above), the test data is feature extracted to obtain the test features corresponding to the preset control requirements in the test data, that is, the required test data can be quickly screened according to the conditions set by the control requirements, and the test data that meets the conditions is extracted to support the location and analysis of test problems. For example, the required torque output when the motor temperature is greater than 50°C and the accelerator pedal opening is greater than 50%, etc. Through data comparison and analysis, the required torque curves under different motor temperatures and different accelerator pedal openings can be quickly obtained, which is convenient for engineers to analyze the rationality and correctness of the required torque control logic;
[0063] Feature extraction is performed on the test data according to the control strategy of the system function to obtain the test features of whether the test data meets the control strategy. That is, when testing a specific control function, the compliance of the control strategy needs to be manually checked and verified. The accuracy of the verification is closely related to the technical level of the engineer, which will lead to inconsistency in the test. The test data can be batch processed to verify the function of the control strategy. The format of the control function definition can be a text description or a constraint or a table. For example, during the working condition torque verification test, the correctness of the required torque at different openings, different speeds, different motors and Insulate Gate Bipolar Transistor (IGBT) temperatures can be verified. The torque demand table is imported, and the test data is traversed by the program and verified with the specific data in the torque demand table to determine the compliance of the strategy;
[0064] The test data is feature extracted using the Controller Area Network (CAN) protocol to obtain test features corresponding to the fault information in the test data, that is, the CAN network protocol is imported to screen and analyze the message information in the fault message, and the fault information in the message is extracted: the time when the fault occurred and the relevant message information corresponding to the fault are recorded (the specific signal corresponding to each fault needs to be set in advance), and the changes in the relevant message information before and after the fault occurs are automatically identified, which is convenient for test engineers to locate the cause of the fault.
[0065] Further, feature extraction is performed on the test data according to the preset control requirement to obtain test features corresponding to the preset control requirement in the test data, including:
[0066] Obtaining a characteristic scenario in the preset control requirement;
[0067] Feature extraction is performed on the test data according to the feature scenario to obtain test features corresponding to the feature scenario in the test data.
[0068] Specifically, when designing control functions, sometimes some function designs may not take into account user habits or scenarios, which may lead to inconvenience or failure of the functions. Import test data into the system, decompose the control requirements into specific items and import them into the system, check whether there are feature scenarios not included in the control requirements, and extract the specific information in these scenarios for the optimization of the control strategy in the later stage.
[0069] In an optional embodiment, the system functions are classified to obtain different types of system functions, including:
[0070] Obtaining the importance of the system function according to the functional impact of the system function;
[0071] Among them, system functions of different importance correspond to different categories of system functions;
[0072] The functional impact includes at least one of the following:
[0073] It affects the safety of the entire vehicle, the driving experience, and the feelings of the driver and passengers.
[0074] It should be noted that the vehicle control system includes many system functions. The importance (or priority) of the system functions is strongly related to the safety of the entire vehicle, driving experience, and personnel perception. Therefore, when using the same test data to verify the control strategies of different system functions, different choices need to be made based on the importance of the system functions.
[0075] Among them, the importance of system functions is defined as follows:
[0076] System functions that affect the safety of the entire vehicle are important; system functions that affect the driving experience are severe or moderate; and system functions that cannot be directly felt by the driver and passengers are mild.
[0077] In an optional embodiment, the test features are used to perform verification for different types of system functions to obtain verification results, including:
[0078] Obtain key statements of the test case of the system function, wherein the key statements may include one or more of a threshold class, a condition class, a delay trigger class, and a fault trigger class branch class;
[0079] The key sentences corresponding to the system functions of different categories are verified using the test features to obtain verification results.
[0080] That is, the key statements of the system functions are classified, and different test features are called for verification for key statements of different categories to obtain verification results.
[0081] It should be noted that in this embodiment, the key statements are verified using the test features to obtain the verification results, and verification can also be performed in combination with the above-mentioned importance levels, that is, the key statements corresponding to the system functions of different categories are verified using the test features to obtain the verification results, including:
[0082] The test features are used to verify key statements corresponding to system functions of different importance to obtain verification results.
[0083] Furthermore, the key statements corresponding to the system functions of different categories are verified using the test features to obtain verification results, including at least one of the following:
[0084] The threshold information in the key sentences corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
[0085] Specifically, the key statement of the system function is A≤X≤B, and the principle of extracting test data is to extract according to the threshold information (A, B), and verify whether the test data meets the key statement. It is also possible to combine the importance and threshold information, set the threshold boundary, extract the test data according to the threshold boundary and threshold information, obtain the corresponding test features, and determine whether the test data meets the control requirements corresponding to the system function according to the corresponding test features for verification. Exemplarily, the extraction principle is as shown in Table 1 below:
[0086] Table 1
[0087]
[0088] The precision value can be selected according to the requirements, and the middle value is equal to (A+B) / 2.
[0089] For example, the control requirement corresponding to the system function is: when the motor temperature is greater than 200°C, the output of the required torque is limited.
[0090] The trigger condition information in the key statements corresponding to different categories of the system functions is verified using the test features to obtain verification results, wherein the trigger condition information includes at least one of the following: conditions and information, conditions or information, conditions and information can be understood as satisfying condition 1 & condition 2 & condition 3 to achieve this system function, and conditions or information can be understood as satisfying condition 1 || condition 2 || condition 3 to achieve this system function.
[0091] Specifically, when the trigger condition information is a condition and information, the extraction and verification principles adopted by the importance of the system function are the same, both of which are Modified Condition / Decision Coverage (MCDC). The extraction method and expected verification results are shown in Table 2 below:
[0092] Table 2
[0093] Condition 1 Condition 2 Condition 3 Expected Results T T T Establishment T T F Not established T F T Not established F T T Not established
[0094] Among them, "T" means the condition is met, and "F" means the condition is not met.
[0095] For example, the control requirements corresponding to the system function are: the vehicle jumps from the initial state to the torque output state when any of the following conditions is met: 1) the KL15 wake-up signal is 1; 2) the vehicle READY signal is 1; 3) the vehicle's maximum output torque is greater than 5.
[0096] Specifically, when the trigger condition information is a conditional OR information, the extraction and verification principles for the importance level of the system function are the same, both being MCDC. The extraction method and the expected verification results are shown in Table 3 below:
[0097] Table 3
[0098] Condition 1 Condition 2 Condition 3 Expected Results T F F Establishment F T F Establishment F F T Establishment F F F Not established
[0099] Among them, "T" indicates that the condition is satisfied, and "F" indicates that the condition is not satisfied.
[0100] For example, the control requirement corresponding to the system function is that when one of the following conditions is met, the vehicle jumps from the sleep state to the power-on state: 1) The KL15 wake-up signal is 1; 2) The slow charge wake-up signal is 1; 3) The remote wake-up signal is 1.
[0101] When the trigger condition information is conditional AND information and conditional OR information, an example of the system requirement is to satisfy the condition 1 && (condition 2 || condition 3) && condition 4 to implement this function. The extraction and verification principles for the importance level of the system function are the same, both being MCDC.
[0102] For the delayed trigger information in the key statements corresponding to different categories of the system functions, the test features are used for verification to obtain the verification results.
[0103] It can be understood that the control requirement corresponding to the system function is that the duration of a certain condition is greater than the preset duration. To implement this system function, the extraction principle of the test data sets the number of boundary values according to the importance level of the system function, and verifies the compliance of the test data with the requirements.
[0104] Exemplarily, the key statement of the system requirement is to satisfy some single conditions or condition combinations (such as condition 1) and the duration >= T1 to implement this system function. The extraction principle of the data sets the number of boundary values according to the importance level of the system function, and verifies the compliance of the test data with the requirements. The extraction principles are as follows:
[0105] 1. Satisfy condition 1 and the duration < T1, and this system function is not implemented.
[0106] 2. Do not satisfy condition 1, and the duration >= T1, and this system function is not implemented.
[0107] 3. Satisfy condition 1, and the duration < T1, and this system function is not implemented. Verify whether the time counter is cleared.
[0108] 4. Satisfy condition 1, and the duration >= T1, and this system function is implemented.
[0109] For example, the control requirement corresponding to the system function is: when the temperature of the motor controller is greater than 200°C, the motor output torque is limited to 0 after a delay of 8 seconds.
[0110] The fault triggering information in the key sentences corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
[0111] Exemplarily, the key statement of the control requirement corresponding to the system function is that if condition 1 is met, a fault is triggered, a test feature is extracted from the test data, and verification is performed using the test feature to obtain a verification result.
[0112] Specifically, the key statement of the control requirement corresponding to the system function is that if condition 1 is met, a fault is triggered. The data extraction principle sets the number of extraction boundary values according to the importance of the system function, and verifies the compliance of the test data with the requirements. The extraction principle is as follows:
[0113] 1. Condition 1 is not met and the fault phenomenon is not triggered;
[0114] 2. Condition 1 is met, triggering the fault phenomenon;
[0115] 3. Restore the fault and test whether the phenomenon exists according to the functional definition;
[0116] 4. If condition 1 is met again, the fault is triggered;
[0117] For example, the control requirement corresponding to the system function is: the motor speed exceeds the motor overspeed limit value of 15000 rpm for a specified time of 0.1S continuously.
[0118] The state jump information in the key statements corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
[0119] Exemplarily, the key statement of the control requirement corresponding to the system function is to perform a state jump when the condition is met, extract test features from the test data, and perform verification using the test features to obtain a verification result.
[0120] Specifically, the key statement of the control requirement corresponding to the system function is to jump to the state when the condition is met. The data extraction principle sets the number of extraction boundary values according to the importance of the system function, and verifies the compliance of the test data with the requirements. The extraction principle is as follows:
[0121] 1. Add all transitions and states to the tree according to the state transition method.
[0122] 2. Test the conditions for state transition.
[0123] 3. Test each branch.
[0124] For example, the control requirement corresponding to the system function is: the motor speed exceeds the motor overspeed limit value of 15000 rpm for a specified time of 0.1S continuously.
[0125] It should be noted that the information in the above key sentences can be obtained by selecting one or more combinations thereof, and the combined information can be verified using the test features to obtain a verification result.
[0126] Furthermore, after performing verification using the test feature and obtaining a verification result, the method further includes:
[0127] In the case that the verification result does not meet the preset test requirement, a test report is generated according to the test data corresponding to the verification result that does not meet the preset test requirement.
[0128] That is, by using the above steps, the system test requirements are classified according to different functional types and functional priorities, and different verification methods are selected to verify the test data according to different requirement types. If it is found that the test results are inconsistent with the control strategy (that is, the preset test requirements), the specific information and phenomena of the inconsistency (that is, how the preset test requirements are not met) are extracted (the extraction of fault information is completed automatically, and the extracted information includes the problem time, data collector, key signals, content inconsistent with the requirements, etc.), and the test problem needs to be reported after confirmation by the control engineer.
[0129] After the test problem is reported, the test data is archived and sent to the development engineer, and the development engineer is reminded to complete the problem closure. After the development engineer completes the problem rectification, the test engineer verifies the test problem and verifies the rationality of the control strategy again to ensure that all test problems are closed.
[0130] Combine the following Figure 2 , specifically describe the specific process of the test data processing method provided by the embodiment of the present invention:
[0131] Data import: obtain test data and system functions;
[0132] Test data analysis: extracting features from the test data to obtain test features of the test data, including:
[0133] (1) Data extraction and comparison: extracting features from the test data according to preset control requirements to obtain test features corresponding to the preset control requirements in the test data;
[0134] (2) Requirement algorithm verification: extracting features from the test data according to the control strategy of the system function to obtain test features of whether the test data meets the control strategy;
[0135] (3) Fault message analysis: extracting features from the test data using the Controller Area Network (CAN) protocol to obtain test features corresponding to the fault information in the test data;
[0136] (4) Feature scenario analysis: extracting features from the test data according to the feature scenario to obtain test features corresponding to the feature scenario in the test data.
[0137] System function classification: according to the functional impact of the system function, the importance of the system function is obtained; wherein, system functions of different importance correspond to different categories of system functions.
[0138] Obtain key statements of the test case of the system function;
[0139] The key statements corresponding to the system functions of different categories are verified using the test features to obtain verification results, including:
[0140] (1) Threshold category: for the threshold information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0141] (2) Trigger condition category: for trigger condition information in the key sentences corresponding to different categories of the system functions, the test features are used to perform verification to obtain verification results;
[0142] (3) Delay trigger category: for delay trigger information in the key sentences corresponding to different categories of the system functions, the test features are used to perform verification to obtain verification results;
[0143] (4) Fault trigger category: for the fault trigger information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0144] (5) Branch category: The state jump information in the key statements corresponding to different categories of the system functions is verified using the test features to obtain verification results.
[0145] Reporting of test issues: If it is found that the test results are inconsistent with the control strategy (i.e., the preset test requirements), the specific information and phenomena of the inconsistency (i.e., how the preset test requirements are not met) will be extracted (the extraction of fault information is completed automatically, and the extracted information includes the problem time, data collector, key signals, content inconsistent with the requirements, etc.), and the test problem will be reported after confirmation by the control engineer.
[0146] Test problem closure and test data archiving: After the test problem is reported, the test data is archived and sent to the development engineer, and the development engineer is reminded to complete the problem closure. After the development engineer completes the problem rectification, the test engineer verifies the test problem and verifies the rationality of the control strategy again to ensure that all test problems are closed.
[0147] The following is a specific example to illustrate the specific implementation of the present invention:
[0148] System application description:
[0149] According to the above process, the data collected during the vehicle test is verified and test problems or optimization suggestions are reported based on the test verification results.
[0150] System function: energy recovery function.
[0151] Control requirements of system functions: Under the D-gear coasting energy recovery condition, if the energy recovery gear is 1, the energy recovery torque is related to the motor speed. The required torque is looked up in a one-dimensional table based on the motor speed, and the motor speed and corresponding torque table are selected based on whether there is creep.
[0152] Test data analysis: Required algorithm verification is required.
[0153] Importance of the control system function: This function affects the safety of the entire vehicle, so the importance of the function is heavy.
[0154] Validated Strategy Classification: The torque table is presented as a threshold class.
[0155] Verification purpose: According to the importance of system functions and the verification strategy classification, verify the torque table under the D gear coasting energy recovery condition, the energy recovery gear is 1, and the motor speed range is between 500rpm and 2000rpm. The details of the torque table are shown in Table 4 below:
[0156] Table 4
[0157] Speed 0 100 500 2000 2250 2750 3250 3500 4000 5000 6000 7000 Torque 0 -10 -20 -30 -40 -40 -40 -40 -40 -30 -20 -10
[0158] Threshold values: According to the system importance classification, the motor speed values are: 499.9 (minimum accuracy is 0.1), 500, 500.1, 1000, 1999.9, 2000, 2000.1, 2200 and 400.
[0159] Torque value verification: According to the above motor speed value, the matching test data is extracted from the test data, and the expected torque value is verified with the actual torque value. The control strategy can be quickly verified using the actual vehicle test data.
[0160] Through the verification of the above scenarios, it can be determined that this patent can easily verify the control strategy, has a high input-output ratio, can reuse test resources well, and save test time.
[0161] The embodiment of the present invention provides a method for processing test data at a certain point, which can process the test data and perform secondary processing on the test data, extract the corresponding test data to verify the correctness and rationality of the control strategy, and the corresponding test scenario can be used for later strategy development. It can automatically analyze the test data and verify the accuracy of the control strategy based on the selected test data, which reduces the workload of the test project and can effectively improve the processing efficiency of the automobile test data, ensuring the quality of the control system software test. It verifies the correctness of the control strategy for the control requirements corresponding to the system functions.
[0162] like Figure 3 As shown, an embodiment of the present invention provides a test data processing device, including:
[0163] A first acquisition module 301 is used to acquire test data and system functions of a vehicle control system;
[0164] A first processing module 302 is used to extract features from the test data to obtain test features of the test data;
[0165] The second processing module 303 is used to classify the system functions to obtain system functions of different categories;
[0166] The third processing module 304 is used to perform verification on different types of system functions using the test features to obtain verification results.
[0167] Optionally, the first processing module 302 includes: a first processing unit;
[0168] The first processing unit is used for at least one of the following:
[0169] Extracting features from the test data according to preset control requirements to obtain test features corresponding to the preset control requirements in the test data;
[0170] Extracting features from the test data according to the control strategy of the system function to obtain test features of whether the test data satisfies the control strategy;
[0171] The test data is subjected to feature extraction using a controller area network (CAN) protocol to obtain test features corresponding to fault information in the test data.
[0172] Optionally, the first processing unit is specifically configured to:
[0173] Obtaining a characteristic scenario in the preset control requirement;
[0174] Feature extraction is performed on the test data according to the feature scenario to obtain test features corresponding to the feature scenario in the test data.
[0175] Optionally, the second processing module 303 includes:
[0176] A second processing unit, configured to obtain the importance of the system function according to the functional impact of the system function;
[0177] Among them, system functions of different importance correspond to different categories of system functions;
[0178] The functional impact includes at least one of the following:
[0179] It affects the safety of the entire vehicle, the driving experience, and the feelings of the driver and passengers.
[0180] Optionally, the second processing module 303 includes: a third processing unit;
[0181] The third processing unit is used for at least one of the following:
[0182] Obtain key statements of the test case of the system function;
[0183] The key sentences corresponding to the system functions of different categories are verified using the test features to obtain verification results.
[0184] Optionally, the third processing unit is specifically used for at least one of the following:
[0185] For the threshold information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0186] Verify the trigger condition information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results;
[0187] Verify the delayed trigger information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results;
[0188] For the fault trigger information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0189] The state jump information in the key statements corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
[0190] Optionally, the device further comprises:
[0191] The fourth processing module is used to generate a test report according to the test data corresponding to the verification result that does not meet the preset test requirement when the verification result does not meet the preset test requirement.
[0192] It should be noted that the test data processing device provided in the embodiment of the present invention is a device capable of executing the above-mentioned test data processing method, and all embodiments of the above-mentioned test data processing method are applicable to the device and can achieve the same or similar technical effects.
[0193] like Figure 4 As shown, an embodiment of the present invention also provides a file security detection device, including: a processor 401; and a memory 403 connected to the processor 401 through a bus interface 402, the memory 403 is used to store programs and data used by the processor 401 when performing operations, and the processor 401 calls and executes the programs and data stored in the memory 403.
[0194] The transceiver 404 is connected to the bus interface 402 and is used to receive and send data under the control of the processor 401. Specifically, the processor 401 is used to read the program in the memory 403 and execute the following process:
[0195] Obtain test data and system functions of vehicle control systems;
[0196] Performing feature extraction on the test data to obtain test features of the test data;
[0197] Classifying the system functions to obtain different categories of system functions;
[0198] The test features are used to perform verification on different types of system functions to obtain verification results.
[0199] Optionally, the processor 401 is configured to perform at least one of the following:
[0200] Extracting features from the test data according to preset control requirements to obtain test features corresponding to the preset control requirements in the test data;
[0201] Extracting features from the test data according to the control strategy of the system function to obtain test features of whether the test data satisfies the control strategy;
[0202] The test data is subjected to feature extraction using a controller area network (CAN) protocol to obtain test features corresponding to fault information in the test data.
[0203] Optionally, the processor 401 is specifically configured to:
[0204] Obtaining a characteristic scenario in the preset control requirement;
[0205] Feature extraction is performed on the test data according to the feature scenario to obtain test features corresponding to the feature scenario in the test data.
[0206] Optionally, the processor 401 is configured to:
[0207] Obtaining the importance of the system function according to the functional impact of the system function;
[0208] Among them, system functions of different importance correspond to different categories of system functions;
[0209] The functional impact includes at least one of the following:
[0210] It affects the safety of the entire vehicle, the driving experience, and the feelings of the driver and passengers.
[0211] Optionally, the processor 401 is configured to:
[0212] Obtain key statements of the test case of the system function;
[0213] The key sentences corresponding to the system functions of different categories are verified using the test features to obtain verification results.
[0214] Optionally, the processor 401 is specifically configured to perform at least one of the following:
[0215] For the threshold information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0216] Verify the trigger condition information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results;
[0217] Verify the delayed trigger information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results;
[0218] For the fault trigger information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results;
[0219] The state jump information in the key statements corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
[0220] Optionally, the processor 401 is further configured to:
[0221] In the case that the verification result does not meet the preset test requirement, a test report is generated according to the test data corresponding to the verification result that does not meet the preset test requirement.
[0222] Among them, Figure 4 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 401 and memory represented by memory 403. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides a user interface 405. The transceiver 404 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 401 is responsible for managing the bus architecture and general processing, and the memory 403 may store data used by the processor 401 when performing operations.
[0223] A readable storage medium according to an embodiment of the present invention stores a program or instruction thereon. When the program or instruction is executed by a processor, the steps in the test data processing method as described above are implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0224] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0225] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0226] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0227] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0228] A specific embodiment of the present invention further provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0229] The above is 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 principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A test data processing method, characterized in that: include: Obtain test data and system functions of vehicle control systems; Performing feature extraction on the test data to obtain test features of the test data; Classifying the system functions to obtain different categories of system functions; The test features are used to perform verification on different types of system functions to obtain verification results.
2. The method according to claim 1, characterized in that Performing feature extraction on the test data to obtain test features of the test data includes at least one of the following: Extracting features from the test data according to preset control requirements to obtain test features corresponding to the preset control requirements in the test data; Extracting features from the test data according to the control strategy of the system function to obtain test features of whether the test data satisfies the control strategy; The test data is subjected to feature extraction using a controller area network (CAN) protocol to obtain test features corresponding to fault information in the test data.
3. The method according to claim 2, characterized in that Extracting features from the test data according to preset control requirements to obtain test features corresponding to the preset control requirements in the test data includes: Obtaining a characteristic scenario in the preset control requirement; Feature extraction is performed on the test data according to the feature scenario to obtain test features corresponding to the feature scenario in the test data.
4. The method according to claim 1, characterized in that: The system functions are classified into different categories, including: Obtaining the importance of the system function according to the functional impact of the system function; Among them, system functions of different importance correspond to different categories of system functions; The functional impact includes at least one of the following: It affects the safety of the entire vehicle, the driving experience, and the feelings of the driver and passengers.
5. The method according to claim 1, characterized in that The test features are used to perform verification for different types of system functions, and verification results are obtained, including: Obtain key statements of the test case of the system function; The key sentences corresponding to the system functions of different categories are verified using the test features to obtain verification results.
6. The method according to claim 5, characterized in that The key statements corresponding to the system functions of different categories are verified using the test features to obtain verification results, including at least one of the following: For the threshold information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results; Verify the trigger condition information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results; Verify the delayed trigger information in the key sentences corresponding to the system functions of different categories using the test features to obtain verification results; For the fault trigger information in the key sentences corresponding to the system functions of different categories, the test features are used to perform verification to obtain verification results; The state jump information in the key statements corresponding to the system functions of different categories is verified using the test features to obtain a verification result.
7. The method according to any one of claims 1, 5 and 6, characterized in that After performing verification using the test feature and obtaining a verification result, the method further includes: In the case that the verification result does not meet the preset test requirement, a test report is generated according to the test data corresponding to the verification result that does not meet the preset test requirement.
8. A test data processing device, characterized in that: include: A first acquisition module, used to acquire test data and system functions of a vehicle control system; A first processing module is used to extract features from the test data to obtain test features of the test data; A second processing module is used to classify the system functions to obtain system functions of different categories; The third processing module is used to verify different types of system functions using the test features to obtain verification results.
9. A document security detection device, comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; characterized in that when the processor executes the program or instruction, the steps in the test data processing method as described in any one of claims 1 to 7 are implemented.
10. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps in the test data processing method according to any one of claims 1 to 7 are implemented.
11. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the test data processing method according to any one of claims 1 to 7.
