Automatic test method and device of vehicle, vehicle and storage medium
By acquiring and executing vehicle test instructions, and utilizing natural language processing and machine learning algorithms, vehicle test cases and tasks are automatically generated and executed, solving the problem of low accuracy of large models in automated vehicle testing and achieving an efficient and accurate testing process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, large models are used for automated vehicle testing. However, due to the susceptibility of large models to illusions, the testing accuracy is low, making it difficult to adapt to complex and ever-changing automotive testing scenarios and the needs of rapid iterative R&D.
By acquiring multiple vehicle test instructions and user test requirements, and utilizing test case generation instructions, task generation instructions, and test case execution instructions, vehicle test cases and tasks are automatically generated and executed. By combining natural language processing and machine learning algorithms, test resource allocation and result analysis are optimized, thereby achieving intelligent and automated testing.
It significantly improves testing efficiency and accuracy, reduces human intervention, minimizes human error, ensures the reliability and consistency of test results, and adapts to the characteristics and needs of different testing stages.
Smart Images

Figure CN121655901A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automation control technology, and more specifically, to an automated testing method, apparatus, vehicle, and storage medium for vehicles. Background Technology
[0002] In the field of vehicle testing technology, especially in automotive testing driven by the trends of intelligence and connectivity, traditional manual testing methods are struggling to keep pace with rapid R&D iterations and increasingly stringent quality requirements. As market competition intensifies and the launch cycle for new models shortens significantly, this presents automakers with even greater challenges to testing efficiency and accuracy.
[0003] In the application of artificial intelligence technology, especially large models, for automated vehicle testing, while large models can significantly improve the speed and coverage of testing, their inherent limitations become a major obstacle. The decisions and predictions of large models rely heavily on historical data. Once the coverage of the training dataset is insufficient or biased, the so-called "illusion" problem will occur, that is, the model may make incorrect judgments or unreasonable predictions when processing unseen data, thus exacerbating the risks when the car is in motion.
[0004] Furthermore, the complexity and diversity of automotive testing scenarios require testing solutions to be highly flexible and adaptable. However, existing technologies often struggle to maintain testing accuracy while simultaneously considering the characteristics and needs of different testing stages, leading to uneven resource allocation and low efficiency during the testing process.
[0005] Therefore, there is an urgent need for an innovative automated testing method for vehicles to make up for the shortcomings of existing technologies. Summary of the Invention
[0006] This invention provides an automated testing method, apparatus, vehicle, and storage medium for vehicles, to at least address the technical problem of low testing accuracy caused by the susceptibility of large models to illusions when using them for automated vehicle testing in the prior art.
[0007] According to one embodiment of the present invention, an automated testing method for a vehicle is provided, comprising: acquiring multiple vehicle testing instructions and user testing requirements, wherein the multiple vehicle testing instructions include: test case generation instructions, task generation instructions, and test case execution instructions; generating vehicle test cases according to the user testing requirements and test case generation instructions; generating vehicle test tasks according to the vehicle test cases and task generation instructions; and performing automated testing on the vehicle according to the vehicle test tasks and test case execution instructions.
[0008] Optionally, the automated vehicle testing method further includes: obtaining vehicle test results in response to performing automated testing on the vehicle; generating a vehicle test report based on the vehicle test results; and analyzing the vehicle test report according to report analysis instructions to obtain analysis results.
[0009] Optionally, the automated testing method for vehicles also includes: generating vehicle test requirements based on user test needs and analysis results; and generating problem test cases based on the requirements and vehicle test requirements.
[0010] Optionally, the automated testing method for vehicles also includes: generating a test requirement file based on user testing requirements; and parsing the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0011] Optionally, the automated testing method for vehicles also includes: generating a vehicle testing environment based on user testing requirements; and generating vehicle testing tasks based on the vehicle testing environment, vehicle test cases, and task generation instructions.
[0012] Optionally, the automated testing method for vehicles further includes: generating problem test tasks based on problem test cases and task generation instructions; and performing problem testing on the vehicle based on the problem test tasks and test case execution instructions.
[0013] According to one embodiment of the present invention, an automated testing device for vehicles is also provided, comprising: a first acquisition module, configured to acquire multiple vehicle testing instructions and user testing requirements, wherein the multiple vehicle testing instructions include: test case generation instructions, task generation instructions, and test case execution instructions; a first generation module, configured to generate vehicle test cases according to user testing requirements and test case generation instructions; a second generation module, configured to generate vehicle test tasks according to vehicle test cases and task generation instructions; and a first testing module, configured to perform automated testing on the vehicle according to the vehicle test tasks and test case execution instructions.
[0014] Optionally, the automated vehicle testing device further includes: a second acquisition module for acquiring vehicle test results in response to automated vehicle testing; a third generation module for generating a vehicle test report based on the vehicle test results; and an analysis module for analyzing the vehicle test report according to report analysis instructions to obtain analysis results.
[0015] Optionally, the automated vehicle testing device further includes: a fourth generation module for generating vehicle testing requirements based on user testing needs and analysis results; and a fifth generation module for generating instruction and problem test cases based on the requirements and vehicle testing needs.
[0016] Optionally, the first generation module includes: a first generation unit, used to generate a test requirement file according to user test requirements; and a parsing unit, used to parse the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0017] Optionally, the second generation module includes: a second generation unit for generating a vehicle testing environment based on user testing requirements; and a third generation unit for generating vehicle testing tasks based on the vehicle testing environment, vehicle test cases, and task generation instructions.
[0018] Optionally, the automated testing device for vehicles further includes: a sixth generation module, used to generate problem test tasks based on problem test cases and task generation instructions; and a second testing module, used to perform problem testing on the vehicle based on problem test tasks and test case execution instructions.
[0019] According to one embodiment of the present invention, a vehicle is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the automated testing method for the vehicle described in any of the preceding claims.
[0020] According to one embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the automated testing method for the vehicle described in any of the preceding claims.
[0021] According to one embodiment of the present invention, a non-volatile storage medium is also provided, wherein a computer program is stored in the non-volatile storage medium, wherein the computer program is configured to execute the automated testing method for the vehicle described in any of the above embodiments when running.
[0022] According to one embodiment of the present invention, a computer program product is also provided, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the automated vehicle testing method described in any of the above claims.
[0023] In this embodiment of the invention, multiple vehicle test instructions and user test requirements are obtained. The multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions. Vehicle test cases are generated based on user test requirements and test case generation instructions. This achieves the goal of generating vehicle test tasks based on vehicle test cases and task generation instructions, thereby achieving the technical effect of automating vehicle testing based on vehicle test tasks and test case execution instructions. This can solve the technical problem in the prior art where large models are prone to illusions when automating vehicle testing, resulting in low test accuracy. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0025] Figure 1 This is a flowchart of an automated vehicle testing method according to one embodiment of the present invention;
[0026] Figure 2 This is a structural block diagram of an automated vehicle testing device according to one embodiment of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] According to an embodiment of the present invention, an embodiment of an automated testing method for a vehicle is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system containing at least one set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] This method embodiment can also be executed in an electronic device, similar control device, or vehicle-mounted terminal that includes a memory and a processor. Taking a vehicle-mounted terminal as an example, the vehicle-mounted terminal may include one or more processors and a memory for storing data. Optionally, the vehicle-mounted terminal may also include a communication device for communication functions and a display device. Those skilled in the art will understand that the above structural description is merely illustrative and does not limit the structure of the vehicle-mounted terminal. For example, the vehicle-mounted terminal may include more or fewer components than those described above, or have a different configuration than those described above.
[0031] A processor may include one or more processing units. For example, a processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor, a field-programmable gate array (FPGA), a neural network processing unit (NPU), a tensor processing unit (TPU), or an artificial intelligence (AI) type processor. Different processing units may be independent components or integrated into one or more processors. In some instances, electronic devices may also include one or more processors.
[0032] The memory can be used to store computer programs, such as the computer program corresponding to the automated vehicle testing method in this embodiment of the invention. The processor implements the aforementioned automated vehicle testing method by running the computer program stored in the memory. The memory may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to electronic devices via a grid. Examples of such grids include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0033] The communication device is used to receive or transmit data via a grid. Specific examples of the aforementioned grid may include a wireless grid provided by the mobile terminal's communication provider. In one example, the communication device includes a network interface controller (NIC), which can connect to other grid devices via a base station to communicate with the Internet. In another example, the communication device may be a radio frequency (RF) module used for wireless communication with the Internet. In some embodiments of this solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, enabling the mobile device to send commands to the vehicle-mounted terminal.
[0034] The display device can be a touchscreen liquid crystal display (LCD) or a touch display (also referred to as a "touchscreen" or "touch display screen"). This LCD allows the user to interact with the user interface of the in-vehicle terminal. In some embodiments, the in-vehicle terminal has a graphical user interface (GUI), allowing the user to interact with the GUI through finger contact and / or gestures on a touch-sensitive surface. The human-machine interaction function may include a vehicle gear shifting function, and executable instructions for performing these functions are configured / stored in one or more processor-executable computer program products or readable storage media.
[0035] Figure 1 This is a flowchart of an automated vehicle testing method according to one embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0036] Step S102: Obtain multiple vehicle test instructions and user test requirements. The multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions.
[0037] Optionally, the execution subject in this embodiment is a vehicle testing system. It should be noted that other electronic devices and processors can also serve as the execution subject, and no further limitations are imposed here.
[0038] In the technical solution provided by step S102 of the present invention, multiple vehicle test commands are first obtained, and the multiple vehicle test commands can be used to control a large model to perform automated vehicle testing.
[0039] Specifically, the test case generation instruction is a process that automatically generates a series of test cases based on an understanding of the vehicle testing requirements document. It involves natural language processing and machine learning algorithms to parse and understand documents of various formats (such as Excel, Word, and PDF), thereby generating structured test cases, including test scenarios, expected results, and allowable deviation ranges. This reduces the time spent manually writing test cases and improves work efficiency.
[0040] Specifically, after receiving the test cases generated by the test case generation instruction, the task generation instruction is responsible for arranging the execution order and method of the test cases according to the test environment, resources, and time constraints, forming a detailed test plan. The task generation instruction utilizes scheduling algorithms and optimization strategies to maximize the use of available resources and ensure the efficient execution of the testing process. Furthermore, those skilled in the art can review and revise the initial test plan to ensure its rationality and feasibility.
[0041] Specifically, test case execution instructions trigger the actual execution of test cases. Through automated testing frameworks or tools, various test tasks are executed according to a predetermined test plan, and raw test data is collected. Test case execution instructions typically involve interface interactions with test equipment, sensors, and other automated testing tools to achieve automated execution of test cases while ensuring the accuracy and repeatability of test results.
[0042] As an optional implementation, upon receiving a test case generation instruction, the system first parses the test requirements document to generate a preliminary set of test cases. Technical personnel can then review these test cases to ensure their comprehensiveness. Next, the system automatically orchestrates a test plan based on resource status and test priorities, categorizing test cases for sequential or parallel execution. Finally, the test case execution instruction drives automated testing equipment to execute all test cases, while simultaneously recording detailed results.
[0043] It is worth noting that the acquisition and execution of the aforementioned instructions have enabled the automation and intelligentization of the vehicle testing process, significantly improving testing efficiency. Specifically, test case generation instructions reduce test preparation time, task generation instructions optimize the allocation of test resources, and test case execution instructions ensure the accuracy and consistency of testing. The combined use of these instructions reduces the degree of human intervention, minimizes human error, and provides technical support for large-scale, standardized automotive testing.
[0044] Step S104: Generate vehicle test cases based on user test requirements and test case generation instructions.
[0045] In the technical solution provided in step S104 of the present invention, the system first parses the user's test requirement document. This document may contain various formats (such as Excel, Word, PDF, etc.). Through natural language processing technology, the system can understand the key test points, expected results, and possible deviation ranges in the document. Furthermore, natural language processing technology enables the system to automatically extract the test requirements from the document and convert them into structured data for easier subsequent processing.
[0046] Furthermore, based on the parsed user testing requirements, the system automatically generates a series of specific test cases using test case generation instructions. These test cases not only include detailed descriptions of the test scenarios, such as the time taken to accelerate testing from 0 km / h to different speed ranges, but also script files that can be executed by automated testing tools. By transforming the abstract concepts in the requirements document into actionable test instructions, the efficiency and accuracy of test preparation are improved.
[0047] Specifically, natural language processing enables computers to understand, parse, and process human natural language. In this application, natural language processing technology is used to parse and understand textual information in a user's test requirements document, converting it into a computer-manufacturing data format.
[0048] Specifically, a test case is a set of test instructions designed in software or hardware testing to verify whether a specific function or feature works as expected. Each test case typically includes test inputs, expected outputs, and test steps, used to guide test execution and evaluate test results.
[0049] As an optional implementation, upon receiving user testing requirements, the system uses natural language processing technology to parse the requirements document. Then, a test case generation command automatically generates test cases based on the parsed test points. The generated test cases are first presented in text form for manual review to ensure they conform to the actual business scenario and security standards. After approval, these test cases are then converted into automated test scripts for execution by automated testing tools.
[0050] As an alternative implementation, the system can also incorporate a rule-based feedback mechanism during the test case generation phase. After generating initial test cases, the system performs a preliminary evaluation based on preset rules, such as checking for test scenarios that exceed the vehicle's performance range or violate traffic regulations. If a problem is detected, the system automatically adjusts the test cases until all test cases meet the rule requirements. These test cases are then further reviewed manually and converted into scripts for execution.
[0051] It's worth noting that automated test case generation significantly reduces the time required for the test preparation phase, replacing the traditional manual process of writing test cases with efficient and rapid system generation. Furthermore, natural language processing technology ensures that the system accurately understands user needs, resulting in test cases that are closer to actual requirements and reducing testing errors caused by misunderstandings. In addition, automated test case generation helps establish unified testing standards, making the format and content of test cases more standardized, facilitating test process management and review.
[0052] Step S106: Generate vehicle test tasks based on vehicle test cases and task generation instructions.
[0053] In the technical solution provided by step S106 of the present invention, the system first receives and analyzes multiple previously generated vehicle test cases, specifically including understanding and quantifying the priority, resource requirements, and execution conditions of the test cases. Then, through machine learning algorithms, the system can identify which test cases are more critical or which require special test resources, and based on this, sort the test cases. Next, the system determines how to most effectively execute each test case based on the current available resources and test environment conditions, specifically including the allocation and adjustment of hardware resources (such as test vehicles, sensors, and execution platforms) and software resources (such as test script versions and operating system compatibility) to ensure that each test can be performed under optimal conditions.
[0054] Furthermore, based on the order of test cases and resource adaptation, the system generates a specific list of test tasks. Each task not only includes the test cases to be executed but also specifies the execution time window, the type and quantity of required resources, and the relationship with any preceding or subsequent tasks, ensuring a smooth testing process. Based on the defined test tasks, the system automatically creates or updates test scripts to adapt to the specific needs of each task. These scripts cover functions such as test instructions, data capture, and result processing, ensuring the standardization and repeatability of the testing process.
[0055] Specifically, an automated test script is a set of predefined instructions used to automate the execution of a specific test process. Scripts typically include modules for test settings, execution steps, data collection, and result verification to ensure the consistency and accuracy of the tests.
[0056] As an optional implementation, the system acts as a central controller, comprehensively analyzing all test cases and current resource status to generate a complete list of test tasks in one go. This approach is suitable for scenarios with sufficient resources and a relatively stable testing environment, maximizing the parallel execution of test cases and shortening the overall testing cycle.
[0057] As an alternative implementation, the system monitors test resources and execution progress in real time, dynamically generating and adjusting test tasks based on test case priority and immediate resource availability. This approach is suitable for test environments with limited or fluctuating resources, enabling flexible responses to unforeseen circumstances such as test equipment failure or changes in the external environment, ensuring that test efficiency is not affected.
[0058] It is worth noting that the above technical steps can significantly improve the efficiency and accuracy of test task planning. Specifically, this approach enables effective management and prioritization of test cases, ensuring optimal allocation of test resources and thus accelerating the test execution process. Furthermore, the generation of automated scripts further reduces manual intervention, lowering the risk of human error during testing. Overall, it promotes the optimization of test task planning, improves the efficiency and reliability of test execution, and lays a solid foundation for subsequent test task execution.
[0059] Step S108: Perform automated testing on the vehicle according to the vehicle test task and test case execution instructions.
[0060] In the technical solution provided in step S108 of the present invention, the system first parses the detailed information of the vehicle test task, including the vehicle model to be tested, the test scenario, the expected results, and any specific test conditions. Then, based on the parsed information, the system automatically configures the test environment, such as setting up a simulated driving environment, connecting sensors and the execution platform, and loading the corresponding test scripts.
[0061] Furthermore, the system initiates an automated testing process according to predefined test case execution instructions. This includes running test scripts, simulating real or virtual driving conditions, and recording vehicle behavior data under different test scenarios. The test scripts interact with the vehicle interface to execute specific test actions, such as acceleration, braking, and steering, and collect vehicle response data in real time. During test execution, the system synchronously captures and records key vehicle data, including speed, acceleration, braking distance, and steering angle. This data is then processed and analyzed to determine whether the vehicle performance meets the expected standards of the test task.
[0062] Specifically, test case execution instructions are a set of predefined instructions used to guide automated testing tools or platforms to execute specific test cases. These instructions typically include the specific steps of the test, the expected behavior, and the result evaluation criteria.
[0063] Specifically, an automated testing platform is a system that integrates hardware and software resources to execute and monitor automated testing processes, collect and analyze test data, and generate test result reports. Automated testing platforms typically possess high configurability and scalability to adapt to different types of testing needs.
[0064] As an optional implementation, the system uploads test cases and task instructions to an integrated automated testing platform. This platform is pre-configured with the hardware and software resources required for vehicle testing, such as driving simulators, sensor arrays, and data processing modules. The platform automatically executes test cases, collects data, and generates preliminary test result reports for subsequent analysis and manual review.
[0065] As an alternative implementation, in a distributed network architecture, the system distributes vehicle testing tasks and test case instructions to multiple test execution nodes. Each node is responsible for executing specific test cases and then uploading the collected data to a central data analysis server. This model utilizes the resources of multiple test sites, enabling parallel processing of a large number of test tasks and significantly improving testing efficiency.
[0066] It is worth noting that the above technical steps enable the independent automation of test case execution, significantly improving testing efficiency and data collection accuracy. This reduces reliance on manual testing and lowers the risk of human error. Furthermore, real-time data capture ensures the objectivity and reliability of test results. In addition, the introduction of automated testing maintains the continuity and consistency of the testing process amidst rapid changes in the testing environment, laying a solid foundation for subsequent test data analysis and result evaluation.
[0067] Steps S102 to S108 above show that in this invention, multiple vehicle test instructions and user test requirements are obtained. The multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions. Vehicle test cases are generated based on user test requirements and test case generation instructions, thereby achieving the purpose of generating vehicle test tasks based on vehicle test cases and task generation instructions. This achieves the technical effect of automating vehicle testing based on vehicle test tasks and test case execution instructions, and solves the technical problem in the prior art where large models are prone to illusions when automating vehicle testing, resulting in low test accuracy.
[0068] The method described in this embodiment will now be described in further detail.
[0069] Step S110: In response to performing automated testing on the vehicle, obtain the vehicle test results;
[0070] Step S112: Generate a vehicle test report based on the vehicle test results;
[0071] Step S114: Analyze the vehicle test report according to the report analysis instructions to obtain the analysis results.
[0072] In this embodiment, when the automated test is completed, the system automatically collects all generated data from the test equipment or sensors, including but not limited to vehicle performance indicators, driving parameters, abnormal event records, etc. Specifically, it usually involves data capture, transmission and storage technologies to ensure that all data in the test process is accurately and completely recorded.
[0073] Furthermore, report generation software or scripting tools automatically generate detailed vehicle test reports based on the collected test data. Specifically, report generation involves data parsing, statistical analysis, and formatting techniques to transform raw data into easily interpretable formats such as charts, graphs, and summary texts for technical personnel to analyze and understand.
[0074] Furthermore, specialized analysis tools or algorithms can be used to perform in-depth analysis of the generated test reports, including data comparison, anomaly detection, and trend prediction. These analysis tools execute specific instructions (report analysis instructions) to extract useful information from the test reports, such as test pass rates, performance bottlenecks, and potential design problems.
[0075] Specifically, report analysis instructions are a set of predefined instructions that guide a report analysis system or algorithm on how to process and interpret test result data to obtain specific analytical perspectives and output results.
[0076] As an optional implementation, after completing automated testing, the system automatically uploads the test data to an integrated report analysis system. This system has multiple built-in data analysis models and can automatically select the appropriate model for data analysis based on different report analysis commands, generating clear test reports and analysis results. Technical personnel can select different commands through the interface, such as viewing the overall pass rate or analyzing trends in specific performance indicators, and the system will then generate corresponding analysis reports.
[0077] As another alternative implementation, AI technology, particularly machine learning models, can be used to intelligently analyze vehicle test reports. These AI models, trained on large amounts of vehicle test data, can identify key patterns and anomalies in the test data based on report analysis instructions, adding intelligent annotations and analysis results to the test reports.
[0078] It is worth noting that the aforementioned technical steps automate the testing process and enable intelligent analysis of test results. This improves the processing speed and depth of test data, reduces the burden of manual analysis, and ensures the traceability and transparency of test results through a standardized report generation process. Furthermore, AI-assisted analysis enhances the ability to identify potential vehicle problems, providing strong support for optimizing vehicle design and improving product quality.
[0079] Step S116: Generate vehicle test requirements based on user test requirements and analysis results;
[0080] Step S118: Generate problem test cases based on the requirements for generating instructions and vehicle testing requirements.
[0081] In this embodiment, the system first receives and parses the test requirements submitted by the user, which may include aspects such as vehicle performance, functional safety, and user experience. Next, combining the analysis results of previous automated tests, the system can identify which aspects of the vehicle already meet the standards and which aspects require further testing or optimization. Through intelligent algorithms and data models, the system generates a detailed list of vehicle test requirements, each clearly defining the test objectives, conditions, and expected results, ensuring the comprehensiveness and relevance of the tests.
[0082] Furthermore, upon receiving the refined vehicle testing requirements, the system generates instructions based on those requirements—a set of rules or templates guiding the creation of test cases. The system utilizes Natural Language Processing (NLP) technology to determine the requirements, combining historical test data and standard test libraries to automatically design and generate problem test cases. Each test case is designed for specific testing requirements, including execution steps, expected results, and acceptance criteria, to detect whether the vehicle's behavior under specific conditions meets the requirements.
[0083] Specifically, a problem test case is a test case designed to detect whether a vehicle behaves as expected under specific conditions. It is typically used to verify a vehicle's boundary conditions, exception handling, and safety features.
[0084] As an optional implementation, the system uses a set of predefined rules and templates (i.e., requirement generation instructions) to automatically generate vehicle testing requirements for the next stage based on user-inputted test requirements and feedback from previous tests. The requirement generation instructions must consider vehicle design specifications, regulatory requirements, and historical test data to ensure that the generated requirements not only comply with safety standards but also possess practicality and innovation for testing. Subsequently, the system generates specific test cases based on these requirements for subsequent automated testing.
[0085] As an alternative implementation, leveraging machine learning and deep learning technologies, the system can learn vehicle behavior patterns under different conditions from a large amount of historical test data. When receiving new user testing requirements and analysis results, the system uses AI models to predict which testing requirements are most critical and how to design the most effective test cases to verify these requirements.
[0086] It is worth noting that the above technical steps enable the precise formulation of test requirements and the automated generation of test cases, thereby reducing the uncertainty in the test design phase, improving the accuracy of test requirements and the applicability of test cases, and thus ensuring the efficiency and effectiveness of subsequent automated testing.
[0087] Step S1041: Generate a test requirement document based on the user's test requirements;
[0088] Step S1042: Parse the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0089] In this embodiment, users submit test requirements via a standardized test requirement form or a free-format document. The system then utilizes natural language understanding and document analysis technologies to identify and parse key parameters in the user's requirements, such as test scenarios, expected performance metrics, and security standards. This information is then formatted into a structured test requirement file. Furthermore, the system reads the test requirement file and uses AI algorithms and a rule engine to transform the abstract test requirements into concrete test cases.
[0090] Optionally, test case generation instructions can be a set of preset rules or dynamically generated guidelines to instruct the system on how to map information from the test requirements file to test steps and conditions at the execution level. The system will generate a series of test cases, each of which details the test scenario, operation steps, expected results, and evaluation criteria, ensuring the executability and effectiveness of the testing process.
[0091] As an optional implementation, the system uses predefined test case templates, which contain various types of test scenarios and parameters. When parsing the user requirements file, the system automatically matches a suitable template, fills in the specific requirements details, and generates corresponding test cases. This method is suitable for highly standardized testing requirements and can quickly generate test cases that conform to specifications.
[0092] As an alternative implementation, the system can dynamically generate test cases based on past testing experience and the specific context of user needs. By learning the correlation between different needs and testing scenarios, the AI model predicts which test cases are most critical to the current needs, thereby generating test cases in a targeted manner and improving testing efficiency.
[0093] It's worth noting that the above technical steps transform vague user requirements into concrete test cases. This process not only improves the clarity and operability of test requirements but also reduces the time and effort required for manual test case design through automation, thereby accelerating the entire testing process.
[0094] Step S1061: Generate the vehicle testing environment according to the user's testing requirements;
[0095] Step S1062: Generate vehicle test tasks based on the vehicle test environment, vehicle test cases, and task generation instructions.
[0096] In this embodiment, after receiving a user's testing request, the system analyzes the user's requirements for the testing environment, such as the necessary infrastructure, hardware and software configuration, and security conditions. Through environment configuration scripts and virtualization technology, the system can automatically or semi-automatically build a testing environment that meets the requirements, including resource allocation, setting specific network conditions, and installing or updating testing software, ensuring that the testing environment is highly matched with the testing requirements.
[0097] Furthermore, after the test environment is prepared, the system plans specific test tasks based on the predetermined test cases and task generation instructions, combined with the current test environment status. This includes defining test priorities, determining the execution order of tests, allocating test resources, and setting test parameters. The system uses a task scheduling algorithm to ensure that test cases can be executed efficiently and orderly in the prepared test environment, while also considering dependencies between test cases and environmental constraints.
[0098] Specifically, the vehicle testing environment refers to a simulated or real environment built according to vehicle testing requirements, including but not limited to hardware and software configuration, network conditions, physical layout, etc., to ensure the execution conditions of test cases.
[0099] As an optional implementation, the system utilizes virtualization technology, such as virtual machines, to quickly configure a virtual testing environment based on user testing needs. Through predefined environment templates and parameters, the system can automatically adjust network topology, system configuration, and software version to meet the needs of different testing scenarios. Subsequently, based on test cases and generation instructions, the system intelligently plans test tasks, such as batch testing and parallel execution, ensuring an efficient and consistent testing process.
[0100] As an alternative implementation, when testing requirements target a specific physical environment, the system interacts with the automated equipment at the testing site to automatically adjust the site's physical layout, sensor configuration, and safety measures. Simultaneously, the system utilizes task scheduling software to generate an optimal test task execution plan, taking into account both site resource utilization efficiency and test case complexity. This approach is suitable for testing scenarios requiring a realistic physical environment, such as road driving tests and extreme weather simulation tests.
[0101] It is worth noting that the above technical steps enable automated configuration of the vehicle testing environment and intelligent planning of test tasks. This process significantly improves test preparation efficiency and reduces the time and risk of errors associated with manually configuring the testing environment. Simultaneously, through optimization of the task scheduling algorithm, test cases are executed in the optimal order, maximizing the utilization of test resources and ensuring high efficiency in test execution and reliability of test results.
[0102] Step S120: Generate a problem test task based on the problem test cases and the task generation instructions;
[0103] Step S122: Perform problem testing on the vehicle according to the problem testing task and test case execution instructions.
[0104] In this embodiment, upon receiving the problem test cases and task generation instructions, the system begins to analyze the details of the test cases, such as performance metrics, operation procedures, and expected results. Subsequently, guided by the task generation instructions, the system comprehensively considers factors such as test resources, environmental conditions, and test priorities to generate specific problem test tasks. This includes parsing test case parameters, configuring the execution environment, allocating test resources, and setting the execution order to ensure that each test case can be executed under appropriate conditions.
[0105] Furthermore, once a test task is generated, the system initiates the corresponding test process based on the test case execution instructions. These instructions include the execution details of the test cases, such as starting the test equipment, setting test parameters, performing test operations, and capturing test data. The system executes these instructions automatically or semi-automatically, monitoring and adjusting variables during the testing process to ensure the smooth execution of the test task and the collection of accurate test data.
[0106] Specifically, a problem test case is a detailed set of test instructions designed to verify a specific function or performance metric. These test cases typically target known or hypothetical potential problems and need to ensure that all necessary test scenarios are covered.
[0107] Specifically, test case execution instructions contain specific execution steps and conditions for test cases, guiding test equipment or automated systems on how to execute test cases and ensuring that each step in the testing process achieves the expected goals.
[0108] As an alternative implementation, leveraging the powerful computing capabilities and elastic resources of cloud computing platforms, the system can remotely generate and execute problem testing tasks. Test cases and task instructions are uploaded to the cloud server, and the cloud platform automatically allocates resources, such as virtual machines, test equipment, and network environments, to execute the tests according to the instructions. After the tests are completed, the data is transmitted back to local or cloud storage in real time for subsequent analysis. This method is particularly suitable for testing scenarios requiring substantial resources and high computing power, such as large-scale performance testing and distributed functional verification.
[0109] As an alternative implementation, a test range equipped with automated testing robots allows the system to directly send test tasks and execution instructions to the robots. Based on these instructions, the robots automatically adjust their position, sensor configuration, and test parameters to precisely execute each test case. Test data is captured by the robots and transmitted in real-time to the central control system via a wireless network, achieving full automation of the testing process. This approach is suitable for tests requiring physical intervention, such as crash tests and road driving performance evaluations.
[0110] It is worth noting that the above technical steps have enabled the automation and efficiency of issue testing, which can significantly reduce preparation time before testing and intervention during the execution process, thereby accelerating the issue testing cycle and improving the accuracy and consistency of testing.
[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or grid device, etc.) to execute the methods of the various embodiments of the present invention.
[0112] This embodiment also provides an automated testing device for vehicles, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0113] Figure 2 This is a structural block diagram of an automated vehicle testing device 200 according to one embodiment of the present invention, such as... Figure 2As shown, the device includes: a first acquisition module 201, a first generation module 202, a second generation module 203, and a first test module 204.
[0114] The first acquisition module 201 is used to acquire multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions and test case execution instructions;
[0115] The first generation module 202 is used to generate vehicle test cases according to user test requirements and test case generation instructions;
[0116] The second generation module 203 is used to generate vehicle test tasks based on vehicle test cases and task generation instructions.
[0117] The first test module 204 is used to perform automated testing on the vehicle according to the vehicle test tasks and test case execution instructions.
[0118] Optionally, the automated vehicle testing device 200 further includes: a second acquisition module for acquiring vehicle test results in response to performing automated vehicle testing; a third generation module for generating a vehicle test report based on the vehicle test results; and an analysis module for analyzing the vehicle test report according to report analysis instructions to obtain analysis results.
[0119] Optionally, the automated vehicle testing device 200 further includes: a fourth generation module for generating vehicle testing requirements based on user testing needs and analysis results; and a fifth generation module for generating instruction and problem test cases based on the requirements and vehicle testing needs.
[0120] Optionally, the first generation module 202 includes: a first generation unit, used to generate a test requirement file according to user test requirements; and a parsing unit, used to parse the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0121] Optionally, the second generation module 203 includes: a second generation unit for generating a vehicle testing environment according to user testing requirements; and a third generation unit for generating vehicle testing tasks according to the vehicle testing environment, vehicle test cases, and task generation instructions.
[0122] Optionally, the vehicle automated testing device 200 further includes: a sixth generation module, used to generate problem test tasks based on problem test cases and task generation instructions; and a second testing module, used to perform problem testing on the vehicle based on problem test tasks and test case execution instructions.
[0123] Embodiments of the present invention also provide a vehicle, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the above-described automated testing method for the vehicle.
[0124] Optionally, in this embodiment, the vehicle may be configured to store a computer program for performing the following steps:
[0125] Step S102: Obtain multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions;
[0126] Step S104: Generate vehicle test cases based on user test requirements and test case generation instructions;
[0127] Step S106: Generate vehicle test tasks based on vehicle test cases and task generation instructions;
[0128] Step S108: Perform automated testing on the vehicle according to the vehicle test task and test case execution instructions.
[0129] Optionally, the processor may also perform the following steps when executing the program: in response to performing automated testing on the vehicle, obtain vehicle test results; generate a vehicle test report based on the vehicle test results; and analyze the vehicle test report according to the report analysis instructions to obtain analysis results.
[0130] Optionally, the processor also performs the following steps when executing the program: generating vehicle test requirements based on user test requirements and analysis results; generating instruction generation based on the requirements and generating problem test cases based on the vehicle test requirements.
[0131] Optionally, the processor may also perform the following steps when executing the program: generating a test requirement file based on user test requirements; and parsing the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0132] Optionally, the processor may also perform the following steps when executing the program: generating a vehicle test environment based on user test requirements; and generating vehicle test tasks based on the vehicle test environment, vehicle test cases, and task generation instructions.
[0133] Optionally, the processor may also perform the following steps when executing the program: generating a problem test task based on the problem test cases and the task generation instructions; and performing problem testing on the vehicle based on the problem test task and the test case execution instructions.
[0134] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0135] Embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the above-described automated vehicle testing method.
[0136] Optionally, in this embodiment, the electronic device may be configured to store a computer program for performing the following steps:
[0137] Step S102: Obtain multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions;
[0138] Step S104: Generate vehicle test cases based on user test requirements and test case generation instructions;
[0139] Step S106: Generate vehicle test tasks based on vehicle test cases and task generation instructions;
[0140] Step S108: Perform automated testing on the vehicle according to the vehicle test task and test case execution instructions.
[0141] Optionally, the processor may also perform the following steps when executing the program: in response to performing automated testing on the vehicle, obtain vehicle test results; generate a vehicle test report based on the vehicle test results; and analyze the vehicle test report according to the report analysis instructions to obtain analysis results.
[0142] Optionally, the processor also performs the following steps when executing the program: generating vehicle test requirements based on user test requirements and analysis results; generating instruction generation based on the requirements and generating problem test cases based on the vehicle test requirements.
[0143] Optionally, the processor may also perform the following steps when executing the program: generating a test requirement file based on user test requirements; and parsing the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0144] Optionally, the processor may also perform the following steps when executing the program: generating a vehicle test environment based on user test requirements; and generating vehicle test tasks based on the vehicle test environment, vehicle test cases, and task generation instructions.
[0145] Optionally, the processor may also perform the following steps when executing the program: generating a problem test task based on the problem test cases and the task generation instructions; and performing problem testing on the vehicle based on the problem test task and the test case execution instructions.
[0146] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0147] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program configured to execute the above-described automated vehicle testing method when run on a computer or processor.
[0148] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0149] Step S102: Obtain multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions;
[0150] Step S104: Generate vehicle test cases based on user test requirements and test case generation instructions;
[0151] Step S106: Generate vehicle test tasks based on vehicle test cases and task generation instructions;
[0152] Step S108: Perform automated testing on the vehicle according to the vehicle test task and test case execution instructions.
[0153] Optionally, the storage medium is configured to store program code for performing the following steps: in response to automating vehicle testing, obtaining vehicle test results; generating a vehicle test report based on the vehicle test results; and analyzing the vehicle test report according to report analysis instructions to obtain analysis results.
[0154] Optionally, the storage medium is configured to store program code for performing the following steps: generating vehicle test requirements based on user test requirements and analysis results; generating problem test cases based on the requirements and vehicle test requirements.
[0155] Optionally, the storage medium is configured to store program code for performing the following steps: generating a test requirement file based on user test requirements; parsing the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0156] Optionally, the storage medium is configured to store program code for performing the following steps: generating a vehicle test environment based on user test requirements; and generating vehicle test tasks based on the vehicle test environment, vehicle test cases, and task generation instructions.
[0157] Optionally, the storage medium is configured to store program code for performing the following steps: generating a problem test task based on the problem test cases and task generation instructions; and performing problem testing on the vehicle based on the problem test task and test case execution instructions.
[0158] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0159] Embodiments of the present invention also provide a computer program product, including a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-described automated vehicle testing method.
[0160] Optionally, in this embodiment, the computer program product described above may be configured to store a computer program for performing the following steps:
[0161] Step S102: Obtain multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions;
[0162] Step S104: Generate vehicle test cases based on user test requirements and test case generation instructions;
[0163] Step S106: Generate vehicle test tasks based on vehicle test cases and task generation instructions;
[0164] Step S108: Perform automated testing on the vehicle according to the vehicle test task and test case execution instructions.
[0165] Optionally, the computer program may also perform the following steps when executing the program: in response to performing automated testing on the vehicle, obtain vehicle test results; generate a vehicle test report based on the vehicle test results; and analyze the vehicle test report according to the report analysis instructions to obtain analysis results.
[0166] Optionally, when the computer program executes the program, it also performs the following steps: generating vehicle test requirements based on user test requirements and analysis results; generating problem test cases based on the requirements and vehicle test requirements.
[0167] Optionally, when the computer program executes the program, it also performs the following steps: generating a test requirement file based on user test requirements; and parsing the test requirement file according to the test case generation instructions to obtain vehicle test cases.
[0168] Optionally, when the computer program executes the program, it also performs the following steps: generating a vehicle testing environment based on user testing requirements; and generating vehicle testing tasks based on the vehicle testing environment, vehicle test cases, and task generation instructions.
[0169] Optionally, when the computer program executes the program, it also performs the following steps: generating a problem test task based on the problem test cases and task generation instructions; and performing problem testing on the vehicle based on the problem test task and test case execution instructions.
[0170] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0171] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0172] In the embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0173] 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 units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0174] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0175] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. 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 grid device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0176] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. An automated testing method for vehicles, characterized in that, include: Obtain multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions; Generate vehicle test cases based on the user's testing requirements and the test case generation instructions; Generate a vehicle test task based on the vehicle test cases and the task generation instructions; The vehicle is tested automatically according to the vehicle test task and the test case execution instructions.
2. The automated testing method for vehicles according to claim 1, characterized in that, The plurality of vehicle test instructions also include: a report analysis instruction, and the method further includes: In response to performing the automated test on the vehicle, obtain the vehicle test results; A vehicle test report is generated based on the vehicle test results. The vehicle test report is analyzed according to the report analysis instructions to obtain the analysis results.
3. The automated testing method for vehicles according to claim 2, characterized in that, The plurality of vehicle test instructions also include: a requirement generation instruction, and the method further includes: Vehicle testing requirements are generated based on the user testing requirements and the analysis results. Based on the requirements, generate instruction and vehicle testing requirements to generate problem test cases.
4. The automated testing method for vehicles according to claim 1, characterized in that, Generating the vehicle test cases based on the user testing requirements and the test case generation instructions includes: Generate a test requirement document based on the user's test requirements; The test requirement file is parsed according to the test case generation instructions to obtain the vehicle test cases.
5. The automated testing method for vehicles according to claim 1, characterized in that, Generating the vehicle test task based on the vehicle test cases and the task generation instructions includes: A vehicle testing environment is generated based on the user's testing requirements. The vehicle test task is generated based on the vehicle test environment, the vehicle test cases, and the task generation instructions.
6. The automated testing method for vehicles according to claim 3, characterized in that, The method further includes: Generate a problem test task based on the problem test cases and the task generation instructions; The vehicle is subjected to problem testing based on the problem testing task and the test case execution instructions.
7. An automated testing device for vehicles, characterized in that, include: The first acquisition module is used to acquire multiple vehicle test instructions and user test requirements, wherein the multiple vehicle test instructions include: test case generation instructions, task generation instructions, and test case execution instructions; The first generation module is used to generate vehicle test cases according to the user's test requirements and the test case generation instructions. The second generation module is used to generate vehicle test tasks based on the vehicle test cases and the task generation instructions. The first testing module is used to perform automated testing on the vehicle according to the vehicle testing task and the test case execution instructions.
8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the automated testing method for the vehicle as described in any one of claims 1 to 6.
9. A vehicle comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the automated testing method for the vehicle as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the automated testing method for the vehicle as described in any one of claims 1 to 6 when run on a computer or processor.