Automobile intelligent cockpit agent test case generation method and device

By acquiring and processing user interaction data to generate structured sequences, and combining pattern mining and interference factor injection, the problem of low efficiency and insufficient accuracy in generating test cases for intelligent agents in automotive intelligent cockpits is solved, achieving efficient and accurate testing.

CN123157600APending Publication Date: 2026-11-24TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611420979.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the generation of test cases for intelligent agents in automotive intelligent cockpits is inefficient and inaccurate, making it impossible to effectively test their functional correctness and robustness in real-world usage environments.

Method used

By acquiring user interaction data with the car's smart cockpit and processing it into structured behavior sequences, including time tags, operation tags, and scenario tags, target test cases are generated based on these sequences. Through pattern mining and interference factor injection, test cases with coverage that meet the threshold are generated.

Benefits of technology

It improves the efficiency and accuracy of test case generation, reflects the diversity and scenario dependence of real user behavior, and enables effective testing of intelligent agents in automotive intelligent cockpits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157600A_ABST
    Figure CN123157600A_ABST
Patent Text Reader

Abstract

This application relates to the field of automotive intelligent cockpit evaluation technology, and provides a method and apparatus for generating test cases for automotive intelligent cockpit intelligent agents. The method includes: acquiring interaction behavior data generated when a user interacts with various cockpit functions in the automotive intelligent cockpit; processing the interaction behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; and generating target test cases for the automotive intelligent cockpit intelligent agent based on the structured behavior sequence, which are used to test the automotive intelligent cockpit intelligent agent. Using the technical solution provided in this application, test cases can be generated efficiently and accurately, thereby achieving effective testing of automotive intelligent cockpit intelligent agents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive intelligent cockpit evaluation technology, and in particular to a method and apparatus for generating test cases for automotive intelligent cockpit intelligent agents. Background Technology

[0002] With the development of automotive intelligence, the intelligent cockpit has evolved into an intelligent space integrating multimodal interactions such as voice, touch, and gestures. As the core control unit of the cockpit, the intelligent agent in the automotive intelligent cockpit is responsible for uniformly understanding the user's multimodal input and coordinating the execution of various functional domains. Therefore, efficiently and accurately generating test cases to effectively test the intelligent agent in the automotive intelligent cockpit is crucial.

[0003] Test cases for automotive intelligent cockpit agents primarily rely on manual writing or automated generation based on idealized scenarios. Manual writing requires testers to possess knowledge in multiple areas, including voice interaction, scenario understanding, and functional logic, resulting in high labor costs and a single complete test cycle of 7-10 days, leading to low generation efficiency. While automated generation can improve efficiency, it is typically based on pre-set idealized scenario templates, failing to reflect the diversity, dynamism, and scenario dependence of real user interactions. This results in low accuracy of the generated test cases, making it unsuitable for effectively testing the functional correctness and robustness of automotive intelligent cockpit agents in real-world usage environments.

[0004] Therefore, how to efficiently and accurately generate test cases to effectively test the intelligent agents in automotive smart cockpits is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] This application provides a method and apparatus for generating test cases for intelligent agents in automotive intelligent cockpits, which can generate test cases efficiently and accurately, thereby realizing effective testing of intelligent agents in automotive intelligent cockpits.

[0006] This application provides a method for generating test cases for intelligent agents in automotive intelligent cockpits, including: Acquire interaction behavior data generated when users interact with various cockpit functions in the car's smart cockpit; The interactive behavior data is processed to obtain a structured behavior sequence; wherein, the structured behavior sequence includes time tags, operation tags, and scene tags; Based on the structured behavior sequence, target test cases are generated for the intelligent cockpit agent of the car, and the target test cases are used to test the intelligent cockpit agent of the car.

[0007] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of generating target test cases for the intelligent cockpit agent based on the structured behavior sequence includes: Pattern mining is performed on the structured behavior sequence to identify key behavior patterns, wherein the frequency of occurrence of the key behavior patterns is greater than a preset frequency. Based on the core functions of the intelligent cockpit of the car, the behavior patterns to be tested are determined from the key behavior patterns. Based on the behavior pattern to be tested, multiple executable scripts are generated, and based on the multiple executable scripts, the target test case is generated.

[0008] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of generating the target test cases based on the plurality of executable scripts includes: The test cases corresponding to the multiple executable scripts are executed on the intelligent cockpit of the car to obtain multiple first execution results; Among the plurality of first execution results, the test cases whose first execution results indicate a successful response are used as the basic test case set; Based on the aforementioned base test case set, the target test cases are generated.

[0009] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of generating the target test cases based on the basic test case set includes: Add interference factors to the test cases in the basic test case set to generate multiple test cases with interference; wherein, the interference factors include at least one of noise interference, fuzzy processing, or word order change; The multiple test cases with interference are executed on the intelligent cockpit of the car to obtain multiple second execution results; Among the plurality of second execution results, the test cases in which the second execution result indicates a successful response are used as a set of interference test cases; Based on the base test case set and the interference test case set, the target test case is generated.

[0010] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of generating the target test cases based on the basic test case set and the interference test case set includes: The coverage of the basic test case set and the interference test case set for the target test function is statistically analyzed to obtain a first coverage rate, and the coverage of the edge scenario of the intelligent cockpit of the car is analyzed to obtain a second coverage rate. If the first coverage rate is greater than or equal to the first threshold, test cases covering the target test function are included in the basic test case set and the interference test case set; and / or, if the second coverage rate is greater than or equal to the second threshold, test cases covering the edge scenario are included in the basic test case set and the interference test case set, and are determined as the first target test cases; wherein, the target test function is determined based on the importance of each function in the automotive intelligent cockpit and the frequency of user use, and the edge scenario includes at least one of extreme environmental conditions, low-frequency user behavior, or system boundary state; Based on the first target test case, the target test case is determined.

[0011] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of determining the target test case based on the first target test case includes: The first target test case is determined as the target test case; or, Based on the first target test case and the set of failed test cases, the target test case is determined; wherein, the set of failed test cases includes at least one of the following: test cases indicating response failure in the plurality of first execution results, interfering test cases indicating response failure in the plurality of second execution results, test cases in the basic test case set and the interfering test case set that do not cover the target test function when the first coverage is less than the first threshold, and test cases in the basic test case set and the interfering test case set that do not cover the edge scenario when the second coverage is less than the second threshold.

[0012] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of determining the target test case based on the first target test case and the set of failed test cases includes: Generate supplementary test cases based on the set of failed test cases; The first target test case and the supplementary test case are determined as the target test case.

[0013] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of generating supplementary test cases based on the failed test case set includes: Aggregate analysis is performed on the failed test cases in the set of failed test cases to identify the common failure reasons of the failed test cases, and the functions or scenarios that are not covered by the first target test cases and pointed to by the common failure reasons are identified as test gaps. A supplementary plan is automatically generated based on the test gap using a large model. The supplementary plan includes the type of behavioral sequence to be supplemented and / or the adjustment value of the interference factor parameter. Based on the supplementary scheme, the supplementary test cases are generated.

[0014] According to the test case generation method for an intelligent cockpit smart agent provided in this application, the step of generating the supplementary test cases based on the supplementary scheme includes: If the supplementary scheme includes the behavior sequence type to be supplemented, a new structured behavior sequence is supplemented based on the behavior sequence type to be supplemented, and pattern mining is performed to generate a supplementary executable script; If the supplementary solution includes the interference factor parameter adjustment value, the type or parameter of the interference factor is adjusted based on the interference factor parameter adjustment value, and interference is re-added to the existing executable script to generate a supplementary test script with interference. The test cases corresponding to the supplementary executable script, and / or the test cases corresponding to the supplementary interfering test script, are determined as the supplementary test cases.

[0015] According to the test case generation method for an intelligent cockpit agent in an automobile provided in this application, the step of processing the interaction behavior data to obtain a structured behavior sequence includes: The interaction behavior data is filtered to select valid interaction behavior data. The effective interaction data is standardized. By leveraging the natural language understanding capabilities of large models, the standardized interactive behavior data is subjected to sequence structuring to obtain structured behavior sequences.

[0016] This application also provides a test case generation device for automotive intelligent cockpit intelligent agents, including: The acquisition unit is used to acquire interaction behavior data generated when the user interacts with various cockpit functions in the car's smart cockpit; The processing unit is used to process the interactive behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; The generation unit is used to generate target test cases for the intelligent cockpit agent of the car based on the structured behavior sequence, and the target test cases are used to test the intelligent cockpit agent of the car.

[0017] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the test case generation method for an intelligent cockpit agent as described above.

[0018] This application also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the test case generation method for an intelligent vehicle cockpit as described above.

[0019] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the test case generation method for an automotive intelligent cockpit intelligent agent as described above.

[0020] The method and apparatus for generating test cases for intelligent cockpit agents in this application acquire interactive behavior data generated when users interact with various cockpit functions. This data is then processed to obtain a structured behavior sequence, which includes time tags, operation tags, and scene tags. Based on this structured behavior sequence, target test cases are generated for the intelligent cockpit agents in the vehicles. These target test cases are used to test the intelligent cockpit agents. By using real user interaction behavior data as a driving force, and by acquiring structured behavior sequences including time tags, operation tags, and scene tags, and automatically generating target test cases, the target test cases can reflect the diversity, dynamism, and scene dependence of real user behavior. This avoids the high cost and low efficiency of manually writing test cases, as well as the low accuracy of test cases generated based on idealized scenarios due to the difficulty in reflecting the diversity, dynamism, and scene dependence of real user interaction behavior. This improves the efficiency and accuracy of target test case generation, thereby achieving effective testing of intelligent cockpit agents in vehicles. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart illustrating a method for generating test cases for an intelligent cockpit agent in an automotive application, as provided in an embodiment of this application.

[0023] Figure 2 This is a schematic diagram of a method for generating target test cases for intelligent agents in an automotive intelligent cockpit, provided in an embodiment of this application.

[0024] Figure 3 This is a schematic diagram of a framework for generating target test cases provided in an embodiment of this application.

[0025] Figure 4This is a schematic diagram of the structure of a test case generation device for an intelligent cockpit agent in an embodiment of this application.

[0026] Figure 5 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0029] The technical solution provided in this application can be applied to various scenarios requiring testing of intelligent agents in automotive intelligent cockpits, such as version iteration testing during the intelligent cockpit R&D phase, regression testing before mass production, and compatibility testing after intelligent agent function upgrades. Alternatively, the technical solution of this application can be deployed in a test case generation platform or automated testing platform as an independent test case generation module, providing high-quality test case input for the upper-level test execution system.

[0030] Taking the testing of intelligent cockpit agents in automobiles as an example, test cases mainly rely on manual writing or automated generation based on idealized scenarios. Manual writing requires testers to possess knowledge in multiple fields, including voice interaction, scenario understanding, and functional logic, resulting in high labor costs and a single complete test cycle of 7-10 days, leading to low generation efficiency. While automated generation can improve efficiency, it is usually based on preset idealized scenario templates, making it difficult to reflect the diversity, dynamism, and scenario dependence of real user interactions. This results in low accuracy of the generated test cases, failing to effectively test the functional correctness and robustness of intelligent cockpit agents in real-world usage environments.

[0031] To efficiently and accurately generate test cases for effective testing of intelligent agents in automotive smart cockpits, this application provides a method for generating test cases for intelligent agents in automotive smart cockpits. The following specific embodiments will provide a detailed description of this method. It is understood that these specific embodiments can be combined with each other, and similar concepts or processes may not be repeated in some embodiments.

[0032] Figure 1 A flowchart illustrating a test case generation method for an intelligent cockpit agent in an automotive application, as provided in this embodiment, is shown below. Figure 1 As shown, the test case generation method for this automotive intelligent cockpit intelligent agent may include: S101. Obtain interaction behavior data generated when the user interacts with various cockpit functions in the car's intelligent cockpit.

[0033] For example, interaction behavior data may include operation type data, operation time data, operation sequence data, and interaction result data.

[0034] The operation types include voice interaction, touch operation, and physical button pressing; the interaction results include successful function call, failed function call, and no response after timeout. Voice interaction refers to the user interacting with the intelligent cockpit agent through voice commands, corresponding to the agent's voice recognition and semantic understanding capabilities; touch operation refers to the user interacting through the touchscreen by clicking, swiping, etc., corresponding to the agent's graphical interface response and touch parsing capabilities; physical button pressing refers to the user interacting by pressing steering wheel buttons, center console physical buttons, etc., corresponding to the agent's button signal processing and function execution capabilities.

[0035] For example, interactive behavior data may also include user identifiers, vehicle status information such as vehicle speed, gear, and battery level, and environmental information such as in-vehicle temperature and external light intensity, in order to extract richer scene labels in subsequent processing.

[0036] For example, operation type data in the interaction behavior data can be obtained through the touch screen operation recording module, voice command collector, and physical button status sensor respectively; operation time data can be obtained through the timestamp field corresponding to each operation record in the vehicle log system, which is usually automatically generated by the system clock when the event is triggered; operation sequence data can be obtained by sorting each operation record in the vehicle log system in ascending order by timestamp, thereby restoring the temporal relationship of user interaction behavior; interaction result data can be obtained through the function call return code and response status field in the vehicle log system, such as response success / response failure indicators, or system error logs, such as a return code of 0 when the function call is successful, a corresponding error code when it fails, and a timeout indicator when there is no response within a timeout period.

[0037] It should be noted that if the interaction behavior data contains user privacy information, such as sensitive personal content in user voice commands or user identification information, the user identification information in the interaction behavior data can be anonymized or desensitized to ensure compliance with relevant data security and privacy protection requirements.

[0038] S102. Process the interaction behavior data to obtain a structured behavior sequence; wherein, the structured behavior sequence includes time tags, operation tags and scene tags.

[0039] Among them, the structured behavior sequence is used to characterize the real behavioral patterns of users interacting with various functional domains of the smart cockpit in specific scenarios.

[0040] Timestamps are used to indicate the time information when a user performs an interaction, such as the specific point in time or the relative position of the action, so as to reconstruct the sequence and temporal relationship of the user's interaction. For example, timestamps can be represented as "10:30:15" or relative time formats such as "T+0ms" or "T+2000ms".

[0041] Operation labels are used to indicate the specific operation performed by the user, such as the operation type (e.g., voice interaction, touch operation, physical button press operation, etc.) and operation parameters (e.g., the specific content of the voice command, the coordinate position of the touch screen click, the key value of the physical button, etc.). For example, operation labels can be represented as "Voice command: Navigate to the company", "Touch click: Coordinates (100, 200)", "Button press: Volume +", etc.

[0042] Scene tags are used to indicate the background environment and context state when a user performs an interaction, such as vehicle driving status, cabin environment state, external and system scenarios, etc., so as to restore the user's isolated operation behavior to a specific driving or cabin scenario. For example, scene tags can be represented as "Driving status: highway cruising; outside temperature: 5°C; navigation in progress".

[0043] Understandably, by combining time tags, operation tags, and scenario tags, a complete sequence of user behavior in a specific scenario can be depicted, enabling the subsequently generated test cases to more realistically reflect the user's interaction patterns in the actual driving environment.

[0044] For example, in some embodiments, processing the interaction behavior data to obtain a structured behavior sequence may include: The interaction behavior data is filtered to select valid interaction behavior data. This valid data is then standardized. Finally, leveraging the natural language understanding capabilities of the large-scale model, the standardized interaction behavior data is processed into a sequence structure, resulting in a structured behavior sequence. This process involves filtering out invalid interaction behavior data, standardization unifying the format of data from different sources, and the large-scale model automatically converting unstructured interaction behavior data into structured behavior sequences, providing a basis for generating subsequent test cases.

[0045] Standardization processing refers to converting timestamps recorded by different devices into a unified time zone and mapping operation types to standardized labels to unify the data format of behavior sequences. Sequence structuring processing refers to using the natural language understanding (NLU) and semantic analysis capabilities of large models to parse unstructured interactive behavior data, such as voice command text and fuzzy operation records, and organize continuous interactive behaviors in chronological order into structured behavior sequences containing time labels, operation labels, and scene labels.

[0046] S103. Based on the structured behavior sequence, generate target test cases for the intelligent agent in the automotive intelligent cockpit. The target test cases are used to test the intelligent agent in the automotive intelligent cockpit.

[0047] Among them, target test cases refer to the final set of test cases generated and used to execute on the intelligent agent of the automotive intelligent cockpit to test its functional correctness.

[0048] For example, the target test case may include at least one test case, each test case including an executable script and a corresponding expected result. The executable script is used to simulate user interaction with the intelligent cockpit according to specific operation types, operation sequences, and time intervals; the expected result is used to compare with the actual response generated by the intelligent agent after executing the executable script to determine whether the test case was executed successfully.

[0049] Understandably, the target test cases are used to test the intelligent agent in the car's intelligent cockpit. That is, by executing the target test cases on the intelligent agent in the car's intelligent cockpit, the test cases are used to verify whether the agent responds correctly and whether the functions are executed normally under various user behavior scenarios, so as to achieve effective testing of the intelligent agent in the car's intelligent cockpit.

[0050] As can be seen, in this embodiment, interactive behavior data generated when a user interacts with various cockpit functions in a car's intelligent cockpit is acquired; the interactive behavior data is processed to obtain a structured behavior sequence; wherein, the structured behavior sequence includes time tags, operation tags, and scene tags; based on the structured behavior sequence, target test cases are generated for the intelligent agent of the car's intelligent cockpit, and these target test cases are used to test the intelligent agent of the car's intelligent cockpit. By using real user interaction behavior data as a driver, and by acquiring structured behavior sequences including time tags, operation tags, and scene tags and automatically generating target test cases, the target test cases can reflect the diversity, dynamism, and scene dependence of real user behavior. This avoids the high cost and low generation efficiency of manually writing test cases, as well as the low accuracy of test cases generated based on idealized scenarios due to the difficulty in reflecting the diversity, dynamism, and scene dependence of real user interaction behavior. This improves the generation efficiency and accuracy of target test cases, thereby achieving effective testing of the intelligent agent of the car's intelligent cockpit.

[0051] Based on the above Figure 1 The illustrated embodiment, for example, describes the implementation of generating target test cases for the intelligent agent of the automotive intelligent cockpit based on structured behavior sequences in S103 above, as shown below. Figure 2 The example shown.

[0052] Figure 2 This application provides a flowchart illustrating a method for generating target test cases for intelligent agents in automotive smart cockpits. The method may include: S201. Perform pattern mining on the structured behavior sequence to identify key behavior patterns. The frequency of occurrence of key behavior patterns is greater than the preset frequency.

[0053] For example, when performing pattern mining on structured behavioral sequences, sequence pattern mining algorithms can be used, such as Transformer-based sequence models, PrefixSpan algorithms, or SPADE algorithms, to mine frequently occurring behavioral patterns from a large number of structured behavioral sequences and identify them as key behavioral patterns.

[0054] For example, the preset frequency can be flexibly set according to actual testing needs. For example, the preset frequency can be set to 50 times / week or 100 times / month.

[0055] It should be noted that, in the embodiments of this application, the specific values ​​of the above sequence pattern mining algorithm and preset frequency are only illustrative examples. In practical applications, they can be flexibly selected and adjusted according to the functional characteristics of the intelligent cockpit agent under test, the scale of user behavior data, and testing requirements.

[0056] S202. Based on the core functions of the intelligent cockpit of the car, determine the behavior patterns to be tested from key behavior patterns.

[0057] For example, a car's intelligent cockpit may include multiple functions, such as navigation, air conditioning control, voice interaction, and driver assistance. Some of these functions relate to key indicators of driving safety or user experience and are considered core functions. This application identifies and tests behavioral patterns related to these core functions by associating and matching key behavioral patterns with a pre-defined list of core functions for the car's intelligent cockpit.

[0058] It should be noted that the list of core functions can be dynamically adjusted based on actual application scenarios, vehicle positioning, or user frequency. For example, for vehicles designed for cold regions, seat heating may be included in the list of core functions; for ride-hailing vehicles, passenger control functions may be included.

[0059] S203. Based on the behavior pattern to be tested, generate multiple executable scripts, and based on the multiple executable scripts, generate target test cases.

[0060] For example, in some embodiments, generating target test cases based on multiple executable scripts may include: Multiple executable scripts and their corresponding test cases are executed on the intelligent cockpit agent of the vehicle, obtaining multiple first execution results. The test cases whose first execution results indicate a successful response are selected as the base test case set. Target test cases are then generated based on this base test case set. By executing and verifying the executable scripts on the intelligent cockpit agent, only test cases corresponding to scripts with successful responses are included in the base test case set. This ensures that the test cases in the base test case set have the correct expected results and are executable, providing an accurate and reliable test benchmark for subsequent interference injection and coverage evaluation.

[0061] For example, in some embodiments, to verify the robustness of the intelligent cockpit agent in real-world complex environments, interference factors can be added to the test cases in the basic test case set to generate interfering test cases. For example, generating target test cases based on the basic test case set may include: Multiple interfering test cases are generated by adding interfering factors to the test cases in the basic test case set. These interfering factors include at least one of noise interference, fuzzy processing, or changes in word order. The multiple interfering test cases are then executed on the intelligent cockpit agent, yielding multiple second execution results. The test cases whose second execution results indicate a successful response are designated as the interfering test case set. Based on the basic test case set and the interfering test case set, the target test case is generated. By injecting noise interference, fuzzy processing, or changes in word order into the basic test cases, interference factors such as noise, accidental touches, and delays in the real driving environment can be accurately simulated. This effectively simulates situations that users may encounter in real driving environments, such as accidental touches, environmental noise, inaccurate expressions, or changes in the order of operations. It effectively tests the functional correctness and fault tolerance of the intelligent cockpit agent under non-ideal conditions, avoiding test blind spots caused by only covering standard operating scenarios, thereby improving the scenario coverage of test cases and the reliability of test results.

[0062] The noise interference, used to simulate user accidental touches and environmental interference (such as in-vehicle noise), can be achieved by setting noise parameters. For example, an offset of ±5% to 15% in the touchscreen operation coordinates is used to simulate user accidental touches; a random delay of 0.5 to 2 seconds is added to physical button operation triggers; and 5% to 20% background noise is added to voice commands to simulate environmental interference. It should be noted that the values ​​of the above noise parameters can be adjusted according to actual testing needs, and this application does not impose specific limitations on them.

[0063] Fuzzy processing is used to obfuscate key information in behavioral sequences to test the automotive intelligent cockpit agent's ability to understand imprecise inputs. For example, precise time points can be modified to time ranges, such as changing "after 3 minutes" to "in a little while," or precise numerical inputs can be modified to numerical ranges, such as changing "temperature 26 degrees" to "temperature adjusted to around 26 degrees," thereby testing the automotive intelligent cockpit agent's understanding and tolerance for fuzzy semantics.

[0064] Phrasal order variation is used to test the adaptability of the automotive intelligent cockpit agent to changes in the order of user actions and its logical fault tolerance. Specifically, by adjusting the order of operations in a sequence of actions, it can be tested whether the automotive intelligent cockpit agent can correctly understand the user's intent and respond appropriately without errors or failures due to changes in the order of operations. For example, adjusting the order of non-time-sensitive action sequences, such as playing music before setting navigation, has little impact on function execution. However, partially reversing a time-sensitive sequence, such as shifting gears before fastening the seatbelt, may lead to abnormal function execution or safety risks. Therefore, for disturbances such as grammatical order variation, the logical reasoning ability of a large model can be used to determine the temporal dependencies between operations in the action sequence, thereby identifying which action sequences are sensitive to order changes and which are not, and implementing differentiated grammatical order adjustment strategies accordingly to avoid meaningless grammatical order adjustments to time-sensitive sequences.

[0065] In some embodiments, an automated interference injection tool can be used to add interference factors to test cases in a basic test case set. For example, this automated interference injection tool adopts a modular architecture design and may include a data interface module, an interference strategy configuration module, a behavior type identification module, an interference injection core module, and a test case generation and output module. Specifically, the data interface module is used to read test cases from the basic test case set; the interference strategy configuration module is used to configure the type and parameters of the interference factors; the behavior type identification module is used to identify the behavior sequence type corresponding to the current test case; the interference injection core module is used to add corresponding interference factors to the test cases according to the behavior sequence type and the configured interference strategy, generating test cases with interference; and the test case generation and output module is used to convert the test cases with added interference into executable test scripts and output them.

[0066] For example, in some embodiments, target test cases are generated based on a base test case set and a distractor test case set, including: The coverage of the basic test case set and the interference test case set for the target test function is statistically analyzed to obtain a first coverage rate, and the coverage of the edge scenarios of the automotive intelligent cockpit is analyzed to obtain a second coverage rate. If the first coverage rate is greater than or equal to a first threshold, test cases covering the target test function are selected from the basic test case set and the interference test case set. And / or, if the second coverage rate is greater than or equal to the second threshold, test cases covering edge scenarios are selected from the basic test case set and the interference test case set and determined as the first target test cases. The target test function is determined based on the importance of each function in the automotive intelligent cockpit and the frequency of user use. Edge scenarios include at least one of extreme environmental conditions, low-frequency user behavior, or system boundary states. Target test cases are determined based on the first target test cases. By calculating the first coverage rate of the basic test case set and the second coverage rate of the interference test case set for the target test function and for edge scenarios respectively, a two-dimensional quantitative evaluation of the adequacy of the test case set coverage is achieved. Based on this, by filtering through the first and second thresholds, when the coverage rate of a certain dimension meets the standard, the functions or scenarios covered in that dimension can be objectively identified. When the coverage rate does not meet the standard, the functions or scenarios that have not yet been covered can be identified, providing a clear direction for subsequent targeted supplementation of test cases.

[0067] Low-frequency user behavior refers to interactive operations that occur at a significantly lower frequency than regular behavior patterns during user interaction with the car's smart cockpit.

[0068] For example, low-frequency user behaviors may include at least one of the following: The operation occurs only a few times over a relatively long period of time, such as the user repeatedly performing the same invalid voice wake-up operation multiple times in a row; Behavioral sequences that deviate from most users' usual operating habits, such as frequently switching navigation destinations while reversing.

[0069] For example, the determination of target test functions can include: identifying target test functions based on the importance of each function in the smart cockpit and the frequency of user usage. The importance of a function can be comprehensively assessed based on factors such as whether it relates to driving safety, whether it is a regulatory requirement, and whether it affects the core user experience; the frequency of user usage can be obtained through statistical analysis of the number of times each function is invoked in the vehicle log system. Furthermore, large-scale models can be used to learn industry standards and user feedback data, such as user satisfaction survey data and complaint data, to dynamically update the list of target test functions, ensuring it remains synchronized with actual testing needs.

[0070] For example, when calculating the coverage of the basic test case set and the interference test case set for the target test function, the first coverage rate can be obtained as shown in Formula 1 below: First coverage rate = Formula 1 in, This indicates the number of target test functions covered by test cases in both the base test case set and the distractor test case set. This represents the total number of target test functions, if the first coverage... , This represents the first threshold, indicating that the current test case set meets the coverage requirement in the first dimension. For example, The value can range from 85% to 90%, and can be set according to actual testing needs. This application does not impose any specific limitations on this.

[0071] For example, the determination of edge scenarios may include: identifying and determining edge scenarios based on the actual use scenarios and security requirements of the automotive intelligent cockpit. Edge scenarios may include at least one of extreme environmental conditions, low-frequency user behaviors, or system boundary states.

[0072] For example, extreme environmental conditions may include: -30℃ low temperature environment, vehicle driving at ultra-high speed, severe weather conditions such as heavy rain or fog, etc., and the specific settings can be set according to actual needs.

[0073] For example, low-frequency user behaviors may include: operations that occur only a few times over a longer period of time, such as users repeatedly performing the same invalid voice wake-up operation multiple times in a row, or behavioral sequences that deviate from the usual operating habits of most users, such as frequently changing navigation destinations while reversing. The specific settings can be configured according to actual needs.

[0074] For example, system boundary states may include: function calls when system memory is insufficient, file read / write operations when storage space is full, and multi-task parallel processing when the processor is under high load, etc. The specific settings can be configured according to actual needs.

[0075] Furthermore, large models can be used to analyze the distribution characteristics of user behavior data, automatically identify abnormal or low-frequency interaction patterns located at the edge of the behavior distribution, and add these patterns to the edge scenario list to keep it in sync with actual testing requirements.

[0076] For example, when calculating the coverage of the basic use case set and the interference use case set for edge scenarios in automotive smart cockpits, the second coverage rate can be obtained as shown in Formula 2 below: Second coverage rate = Formula 2 in, This indicates the number of edge scenarios covered by test cases in both the base test case set and the interference test case set. This represents the total number of edge scenes, if the second coverage... , If the second threshold is specified, then the current test case set is determined to meet the coverage requirement in the second dimension. For example, The value can range from 80% to 85%, and can be set according to actual testing needs. This application does not impose any specific limitations on this.

[0077] For example, in some embodiments, determining the target test case based on the first target test case may include: The first target test case is determined as the target test case; or, the target test case is determined based on the first target test case and the set of failed test cases; wherein, the set of failed test cases includes at least one of the following: multiple test cases that indicate response failure in multiple first execution results, multiple test cases with interference that indicate response failure in multiple second execution results, test cases that do not cover the target test function in the basic test case set and the set of interference test cases when the first coverage is less than the first threshold, and test cases that do not cover edge scenarios in the basic test case set and the set of interference test cases when the second coverage is less than the second threshold.

[0078] It is understood that in the embodiments of this application, the first method described above corresponds to the situation where both the first coverage rate and the second coverage rate have reached or exceeded their respective thresholds, and there are no test cases that fail to respond. In this case, no additional iterative optimization is required, and the first target test case can be directly determined as the target test case.

[0079] The second approach described above addresses the situation where a set of failed test cases exists. Relying solely on the first target test case is insufficient to fully test the functional correctness and robustness of the intelligent cockpit agent. It is necessary to determine the basis for the target test cases based on both the first target test case and the set of failed test cases. The set of failed test cases includes: Test cases that fail to respond when executing basic test cases reflect the functional defects of the agent in standard operating scenarios. Test cases that fail to respond when executing test cases with interference reflect the agent's lack of robustness in complex environments or under non-ideal input conditions. Test cases corresponding to target test functions that are not covered in the coverage assessment. These test cases reflect the gaps in the functional coverage of the current test case set. Test cases that are not covered in the coverage assessment for edge scenarios reflect the current test case set’s inadequate coverage in extreme conditions, low-frequency behaviors, or system boundaries.

[0080] For example, in some embodiments, determining the target test case based on the first target test case and the set of failed test cases may include: Supplementary test cases are generated based on the failed test case set; the first target test case and the supplementary test cases are then identified as target test cases. By jointly identifying the first target test case and the supplementary test cases generated from the failed test case set as target test cases, the final generated target test cases not only cover the verified functions and scenarios but also specifically supplement the test requirements corresponding to failed test cases and coverage gaps. This achieves closed-loop optimization of the test case set for the intelligent cockpit agent, improving the completeness of the test case set and the ability to verify the correctness and robustness of the agent's functions.

[0081] For example, in some embodiments, when generating supplementary test cases based on a set of failed test cases, the failed test cases in the set can be aggregated and analyzed to identify common failure causes. The functions or scenarios not covered by the first target test case and pointed to by these common failure causes are identified as test gaps. A large model is then used to automatically generate supplementary solutions based on these test gaps. These supplementary solutions include the type of behavior sequence to be supplemented and / or adjusted values ​​for interfering factor parameters. Supplementary test cases are then generated based on these supplementary solutions. By aggregating and analyzing the failed test cases in the set, common patterns among multiple failed test cases can be identified, common failure causes can be located, and the functions or scenarios not covered by existing test cases and pointed to by these common failure causes can be identified as test gaps. This allows subsequent supplementary solutions to address these test gaps in a targeted manner, avoiding indiscriminate supplementation.

[0082] For example, a large model can be used to automatically generate supplementary solutions based on test gaps. Specifically, the large model can combine the type of test gap—such as the lack of a certain behavioral sequence or insufficient interference strength of existing behavioral sequences—to automatically generate targeted supplementary solutions. For instance, if the test gap points to touch operation scenarios in low-temperature environments, the large model can generate a supplementary solution of "supplementing 10 touch operation sequences in low-temperature environments and adding 15% touch coordinate offset interference." This automatic reasoning and generation capability of the large model enables intelligent iterative optimization, eliminating the need for manual gap analysis and supplementary solution design. This gives the generation of supplementary test cases a clear direction and feasibility, avoiding blind supplementation.

[0083] For example, in some embodiments, when generating supplementary test cases based on a supplementary scheme, if the supplementary scheme includes a behavior sequence type to be supplemented, a new structured behavior sequence is added based on the behavior sequence type to be supplemented for pattern mining, generating a supplementary executable script; if the supplementary scheme includes interference factor parameter adjustment values, the type or parameter of the interference factor is adjusted based on the interference factor parameter adjustment values, and interference is re-added to the existing executable script, generating a supplementary test script with interference; the test cases corresponding to the supplementary executable script, and / or the test cases corresponding to the supplementary test script with interference, are determined as supplementary test cases. In this way, the finally generated supplementary test cases can specifically cover testing gaps, and together with the first target test case, constitute a more complete target test case set, achieving closed-loop optimization of the test case set.

[0084] The supplementary behavior sequence type guides the addition of new structured behavior sequences from user behavior data, generating supplementary executable scripts through pattern mining. These scripts primarily cover previously uncovered functions or scenarios. The interference factor parameter adjustment value guides adjustments to the interference intensity and type of existing executable scripts, generating supplementary test scripts with interference. This enhances the testing depth of existing functions or scenarios under complex conditions. By specifying the supplementation plan as operable behavior sequence types and interference factor parameter adjustment values, the generation of supplementary test cases has a clear direction and is executable, avoiding blind supplementation.

[0085] It is understood that the above two supplementary methods can be implemented individually or in combination, depending on the type of test gap and the content of the supplementary scheme generated by the large model. This application does not make any specific limitations on this.

[0086] Based on any of the above embodiments, for example, after generating target test cases, an automated testing framework can be built. By integrating the executable scripts of the target test cases, the intelligent cockpit simulator, and the data acquisition module, the batch execution of the target test cases and the automatic recording of response data can be achieved. For example, the automated testing framework may include a test case management module, a test case execution engine, a data acquisition module, and a report generation module; this application does not specifically limit these components.

[0087] Specifically, target test cases can be input into an automated testing framework and executed in batches in a smart cockpit simulator or real vehicle environment, automatically recording the response data of the smart cockpit agent to each target test case. For example, response data may include functional execution results, execution pass / fail, response time, resource usage, etc. After the response data is collected, the automated testing framework generates a visual report based on the recorded response data. For example, this visual report may include, but is not limited to: target test case execution results, smart cockpit agent response metrics (e.g., accuracy, response time), and coverage (high-optimal coverage and edge coverage). This visual report provides testers or developers with an intuitive display of test results, providing data support for further optimization of the smart cockpit agent.

[0088] Furthermore, based on test reports, large models can be used to predict potential defects of the intelligent cockpit agent in untested scenarios. For example, the large model can infer potential problems of the intelligent cockpit agent in untested scenarios based on coverage gaps and execution failure modes in the current test report, such as predicting navigation lag in untested mountain road + low battery scenarios. This allows testers to proactively supplement test cases, thereby further improving the comprehensiveness of testing and the reliability of the agent, realizing an end-to-end closed-loop testing process from test case generation to automated execution, result analysis, and potential defect prediction.

[0089] For example, see Figure 3 As shown, Figure 3 This application provides a schematic diagram of a framework for generating target test cases. The process of generating target test cases can be divided into four stages: The first phase is the basic test case generation phase. In this phase, interaction behavior data generated when the user interacts with various cockpit functions in the car's intelligent cockpit is first acquired; the interaction behavior data is processed to obtain a structured behavior sequence; pattern mining is performed based on the structured behavior sequence to identify key behavior patterns, and the behavior patterns to be tested are identified from the key behavior patterns; an executable script is generated based on the behavior patterns to be tested; the test cases corresponding to the executable script are executed on the intelligent agent of the car's intelligent cockpit; based on whether the response is successful, test cases with successful responses are assigned to the basic test case set, and test cases with failed responses are assigned to the failed test case set.

[0090] The second stage is the interference test case generation stage. In this stage, interference factors are added to the test cases in the basic test case set to generate interference test cases. The interference test cases are then executed on the intelligent cockpit agent of the car. Based on whether the response is successful, the interference test cases with successful responses are assigned to the interference test case set, and the interference test cases with unsuccessful responses are assigned to the failure test case set.

[0091] The third stage is the coverage assessment stage. In this stage, the first coverage rate of the basic test case set and the interference test case set for the target test function, and the second coverage rate for the edge scenario are calculated. The test cases corresponding to the functions and scenarios that meet the coverage target are used as the first target test cases, and the target test functions and test requirements corresponding to the edge scenarios that are not covered are classified into the failed test case set.

[0092] The fourth stage is the iterative optimization stage. In this stage, supplementary test cases are generated based on the set of failed test cases, and these supplementary test cases, together with the first target test case, are determined as the target test cases.

[0093] Through the four stages described above, the technical solution provided in this application can, driven by real user interaction behavior data, sequentially complete the generation of basic test case sets, the generation of interference test case sets, the quantitative evaluation of coverage, and the iterative optimization of failed test cases, ultimately forming a complete target test case set. In this process, pattern mining and interference injection enable test cases to truly reflect the diversity, dynamism, and scenario dependence of user behavior, avoiding the subjectivity and limitations of manual coding. The dual-dimensional coverage evaluation and the iterative optimization mechanism driven by failed test cases ensure that test cases fully cover the target core functions and edge scenarios, avoiding testing blind spots caused by idealized scenario templates. Furthermore, the closed-loop linkage between the above stages ensures that test case generation no longer relies on human experience but is driven by real user interaction behavior data and quantitative indicators. Therefore, it can effectively improve the efficiency and accuracy of test case generation, enabling the final generated target test cases to more comprehensively and accurately verify the functional correctness and robustness of the automotive intelligent cockpit agent under various real user behavior scenarios, thereby efficiently and accurately generating test cases and achieving effective testing of the automotive intelligent cockpit agent.

[0094] The test case generation device for the intelligent cockpit of the car provided in this application is described below. The test case generation device for the intelligent cockpit of the car described below and the test case generation method for the intelligent cockpit of the car described above can be referred to in correspondence.

[0095] Figure 4 A schematic diagram of a test case generation device for an intelligent cockpit agent in an automotive application provided in this embodiment of the application is shown below. For example, please refer to... Figure 4 As shown, the test case generation device 40 for the intelligent cockpit agent of the car may include: The acquisition unit 401 is used to acquire interaction behavior data generated when the user interacts with the various cockpit functions in the car's intelligent cockpit; The processing unit 402 is used to process the interactive behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; The generation unit 403 is used to generate target test cases for the intelligent cockpit agent of the car based on the structured behavior sequence, and the target test cases are used to test the intelligent cockpit agent of the car.

[0096] For example, in some embodiments, the generation unit 403 is configured to generate target test cases for the intelligent agent of the automotive intelligent cockpit based on the structured behavior sequence, including: Pattern mining is performed on the structured behavior sequence to identify key behavior patterns, wherein the frequency of occurrence of the key behavior patterns is greater than a preset frequency. Based on the core functions of the intelligent cockpit of the car, the behavior patterns to be tested are determined from the key behavior patterns. Based on the behavior pattern to be tested, multiple executable scripts are generated, and based on the multiple executable scripts, the target test case is generated.

[0097] For example, in some embodiments, the generation unit 403 is configured to generate the target test cases based on the plurality of executable scripts, including: The test cases corresponding to the multiple executable scripts are executed on the intelligent cockpit of the car to obtain multiple first execution results; Among the plurality of first execution results, the test cases whose first execution results indicate a successful response are used as the basic test case set; Based on the aforementioned base test case set, the target test cases are generated.

[0098] For example, in some embodiments, the generation unit 403 is configured to generate the target test cases based on the basic test case set, including: Add interference factors to the test cases in the basic test case set to generate multiple test cases with interference; wherein, the interference factors include at least one of noise interference, fuzzy processing, or word order change; The multiple test cases with interference are executed on the intelligent cockpit of the car to obtain multiple second execution results; Among the plurality of second execution results, the test cases in which the second execution result indicates a successful response are used as a set of interference test cases; Based on the base test case set and the interference test case set, the target test case is generated.

[0099] For example, in some embodiments, the generation unit 403 is configured to generate the target test cases based on the basic test case set and the interference test case set, including: The coverage of the basic test case set and the interference test case set for the target test function is statistically analyzed to obtain a first coverage rate, and the coverage of the edge scenario of the intelligent cockpit of the car is analyzed to obtain a second coverage rate. If the first coverage rate is greater than or equal to the first threshold, test cases covering the target test function are included in the basic test case set and the interference test case set; and / or, if the second coverage rate is greater than or equal to the second threshold, test cases covering the edge scenario are included in the basic test case set and the interference test case set, and are determined as the first target test cases; wherein, the target test function is determined based on the importance of each function in the automotive intelligent cockpit and the frequency of user use, and the edge scenario includes at least one of extreme environmental conditions, low-frequency user behavior, or system boundary state; Based on the first target test case, the target test case is determined.

[0100] For example, in some embodiments, the generation unit 403 is configured to determine the target test case based on the first target test case, including: The first target test case is determined as the target test case; or, Based on the first target test case and the set of failed test cases, the target test case is determined; wherein, the set of failed test cases includes at least one of the following: test cases indicating response failure in the plurality of first execution results, interfering test cases indicating response failure in the plurality of second execution results, test cases in the basic test case set and the interfering test case set that do not cover the target test function when the first coverage is less than the first threshold, and test cases in the basic test case set and the interfering test case set that do not cover the edge scenario when the second coverage is less than the second threshold.

[0101] For example, in some embodiments, the generation unit 403 is configured to determine the target test case based on the first target test case and the set of failed test cases, including: Generate supplementary test cases based on the set of failed test cases; The first target test case and the supplementary test case are determined as the target test case.

[0102] For example, in some embodiments, the generation unit 403 is configured to generate supplementary test cases based on the set of failed test cases, including: Aggregate analysis is performed on the failed test cases in the set of failed test cases to identify the common failure reasons of the failed test cases, and the functions or scenarios that are not covered by the first target test cases and pointed to by the common failure reasons are identified as test gaps. A supplementary plan is automatically generated based on the test gap using a large model. The supplementary plan includes the type of behavioral sequence to be supplemented and / or the adjustment value of the interference factor parameter. Based on the supplementary scheme, the supplementary test cases are generated.

[0103] For example, in some embodiments, the generation unit 403 is configured to generate the supplementary test cases based on the supplementary scheme, including: If the supplementary scheme includes the behavior sequence type to be supplemented, a new structured behavior sequence is supplemented based on the behavior sequence type to be supplemented, and pattern mining is performed to generate a supplementary executable script; If the supplementary solution includes the interference factor parameter adjustment value, the type or parameter of the interference factor is adjusted based on the interference factor parameter adjustment value, and interference is re-added to the existing executable script to generate a supplementary test script with interference. The test cases corresponding to the supplementary executable script, and / or the test cases corresponding to the supplementary interfering test script, are determined as the supplementary test cases.

[0104] For example, in some embodiments, the processing unit 402 is configured to process the interaction behavior data to obtain a structured behavior sequence, including: The interaction behavior data is filtered to select valid interaction behavior data. The effective interaction data is standardized. By leveraging the natural language understanding capabilities of large models, the standardized interactive behavior data is subjected to sequence structuring to obtain structured behavior sequences.

[0105] The test case generation device 40 for automotive intelligent cockpit smart agents provided in this application embodiment can execute the technical solution of the test case generation method for automotive intelligent cockpit smart agents in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the above-described test case generation method for automotive intelligent cockpit smart agents. Please refer to the implementation principle and beneficial effects of the above-described test case generation method for automotive intelligent cockpit smart agents. It will not be repeated here.

[0106] Figure 5 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application, such as... Figure 5As shown, the electronic device may include a processor 510, a communications interface 520, a memory 530, and a communication bus 540, wherein the processor 510, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a test case generation method for the intelligent cockpit agent. This method includes: acquiring interaction behavior data generated when a user interacts with various cockpit functions in the intelligent cockpit; processing the interaction behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; and generating target test cases for the intelligent cockpit agent based on the structured behavior sequence, the target test cases being used to test the intelligent cockpit agent.

[0107] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0108] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the test case generation method for the intelligent cockpit agent provided by the above methods. The method includes: acquiring interaction behavior data generated when a user interacts with various cockpit functions in the intelligent cockpit; processing the interaction behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; and generating target test cases for the intelligent cockpit agent based on the structured behavior sequence, wherein the target test cases are used to test the intelligent cockpit agent.

[0109] In another aspect, this application also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a test case generation method for the intelligent cockpit agent provided by the above methods. The method includes: acquiring interaction behavior data generated when a user interacts with various cockpit functions in the intelligent cockpit; processing the interaction behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; and generating target test cases for the intelligent cockpit agent based on the structured behavior sequence, wherein the target test cases are used to test the intelligent cockpit agent.

[0110] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for generating test cases for an intelligent agent in an automotive intelligent cockpit, characterized in that, include: Acquire interaction behavior data generated when users interact with various cockpit functions in the car's smart cockpit; The interactive behavior data is processed to obtain a structured behavior sequence; wherein, the structured behavior sequence includes time tags, operation tags, and scene tags; Based on the structured behavior sequence, target test cases are generated for the intelligent cockpit agent of the car, and the target test cases are used to test the intelligent cockpit agent of the car.

2. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 1, characterized in that, The generation of target test cases for the intelligent agent in the automotive intelligent cockpit based on the structured behavior sequence includes: Pattern mining is performed on the structured behavior sequence to identify key behavior patterns, wherein the frequency of occurrence of the key behavior patterns is greater than a preset frequency. Based on the core functions of the intelligent cockpit of the car, the behavior patterns to be tested are determined from the key behavior patterns. Based on the behavior pattern to be tested, multiple executable scripts are generated, and based on the multiple executable scripts, the target test case is generated.

3. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 2, characterized in that, The generation of the target test cases based on the plurality of executable scripts includes: The test cases corresponding to the multiple executable scripts are executed on the intelligent cockpit of the car to obtain multiple first execution results; Among the plurality of first execution results, the test cases whose first execution results indicate a successful response are used as the basic test case set; Based on the aforementioned base test case set, the target test cases are generated.

4. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 3, characterized in that, The generation of the target test cases based on the basic test case set includes: Add interference factors to the test cases in the basic test case set to generate multiple test cases with interference; wherein, the interference factors include at least one of noise interference, fuzzy processing, or word order change; The multiple test cases with interference are executed on the intelligent cockpit of the car to obtain multiple second execution results; Among the plurality of second execution results, the test cases in which the second execution result indicates a successful response are used as a set of interference test cases; Based on the base test case set and the interference test case set, the target test case is generated.

5. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 4, characterized in that, The generation of the target test cases based on the basic test case set and the interference test case set includes: The coverage of the basic test case set and the interference test case set for the target test function is statistically analyzed to obtain a first coverage rate, and the coverage of the edge scenario of the intelligent cockpit of the car is analyzed to obtain a second coverage rate. If the first coverage rate is greater than or equal to the first threshold, test cases covering the target test function are included in the basic test case set and the interference test case set; and / or, if the second coverage rate is greater than or equal to the second threshold, test cases covering the edge scenario are included in the basic test case set and the interference test case set, and are determined as the first target test cases; wherein, the target test function is determined based on the importance of each function in the automotive intelligent cockpit and the frequency of user use, and the edge scenario includes at least one of extreme environmental conditions, low-frequency user behavior, or system boundary state; Based on the first target test case, the target test case is determined.

6. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 5, characterized in that, The step of determining the target test case based on the first target test case includes: The first target test case is determined as the target test case; or, Based on the first target test case and the set of failed test cases, the target test case is determined; wherein, the set of failed test cases includes at least one of the following: test cases indicating response failure in the plurality of first execution results, interfering test cases indicating response failure in the plurality of second execution results, test cases in the basic test case set and the interfering test case set that do not cover the target test function when the first coverage is less than the first threshold, and test cases in the basic test case set and the interfering test case set that do not cover the edge scenario when the second coverage is less than the second threshold.

7. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 6, characterized in that, The step of determining the target test case based on the first target test case and the set of failed test cases includes: Generate supplementary test cases based on the set of failed test cases; The first target test case and the supplementary test case are determined as the target test case.

8. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 7, characterized in that, The generation of supplementary test cases based on the failed test case set includes: Aggregate analysis is performed on the failed test cases in the set of failed test cases to identify the common failure reasons of the failed test cases, and the functions or scenarios that are not covered by the first target test cases and pointed to by the common failure reasons are identified as test gaps. A supplementary plan is automatically generated based on the test gap using a large model. The supplementary plan includes the type of behavioral sequence to be supplemented and / or the adjustment value of the interference factor parameter. Based on the supplementary scheme, the supplementary test cases are generated.

9. The test case generation method for automotive intelligent cockpit intelligent agents according to claim 8, characterized in that, The process of generating the supplementary test cases based on the supplementary scheme includes: If the supplementary scheme includes the behavior sequence type to be supplemented, a new structured behavior sequence is supplemented based on the behavior sequence type to be supplemented, and pattern mining is performed to generate a supplementary executable script; If the supplementary solution includes the interference factor parameter adjustment value, the type or parameter of the interference factor is adjusted based on the interference factor parameter adjustment value, and interference is re-added to the existing executable script to generate a supplementary test script with interference. The test cases corresponding to the supplementary executable script, and / or the test cases corresponding to the supplementary interfering test script, are determined as the supplementary test cases.

10. The method for generating test cases for an intelligent cockpit agent in an automobile according to any one of claims 1-9, characterized in that, The process of processing the interaction behavior data to obtain a structured behavior sequence includes: The interaction behavior data is filtered to select valid interaction behavior data. The effective interaction data is standardized. By leveraging the natural language understanding capabilities of large models, the standardized interactive behavior data is subjected to sequence structuring to obtain structured behavior sequences.

11. A test case generation device for an intelligent cockpit agent in an automobile, characterized in that, include: The acquisition unit is used to acquire interaction behavior data generated when the user interacts with various cockpit functions in the car's smart cockpit; The processing unit is used to process the interactive behavior data to obtain a structured behavior sequence; wherein the structured behavior sequence includes time tags, operation tags, and scene tags; The generation unit is used to generate target test cases for the intelligent cockpit agent of the car based on the structured behavior sequence, and the target test cases are used to test the intelligent cockpit agent of the car.

12. The test case generation device for an intelligent cockpit agent in an automobile according to claim 11, characterized in that, The generation unit is used to generate target test cases for the intelligent agent of the automotive intelligent cockpit based on the structured behavior sequence, including: Pattern mining is performed on the structured behavior sequence to identify key behavior patterns, wherein the frequency of occurrence of the key behavior patterns is greater than a preset frequency. Based on the core functions of the intelligent cockpit of the car, the behavior patterns to be tested are determined from the key behavior patterns. Based on the behavior pattern to be tested, multiple executable scripts are generated, and based on the multiple executable scripts, the target test case is generated.