Real vehicle automatic test technical method and application

Through the practical car automation testing technology methods, including test case analysis, automated script configuration and test task execution, the problems of low efficiency and poor consistency of traditional practical car testing are solved, efficient and accurate real car testing is achieved, and the testing is reduced. cost.

CN119414805APending Publication Date: 2025-02-11ABUP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411428691.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

Traditional real-life tests have problems such as low testing efficiency, unobjective test results, poor consistency of the test process, and lack effective automated testing solutions.

Method used

A practical vehicle automation testing technology method is proposed, including test case analysis and automated collection, automated script configuration, test data configuration, use case association script, test tasks, test task execution and test report. Through these steps, automated control and data collection of the real vehicle can be achieved and comprehensive functional testing is carried out.

Benefits of technology

It improves the efficiency and accuracy of actual vehicle testing, reduces the testing cost, and provides strong guarantees for the smooth progress of cloud diagnosis projects in the automotive industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119414805A_ABST
    Figure CN119414805A_ABST
Patent Text Reader

Abstract

The invention discloses a real vehicle automatic test technology method and application, and the method comprises the following steps: use case analysis, automatic script configuration, test data configuration, test data configuration, use case association script, test task, test task execution and test report. According to the system, automatic testing of a cloud diagnosis RDS software program is carried out on a real vehicle, main application function testing is carried out, and comprehensive testing of the vehicle RDS software function is achieved by compiling an automatic testing script, configuring a testing environment and carrying out automatic control and data acquisition on the real vehicle, and the system has the advantages of being high in integration and intellectualization. According to the invention, automatic analysis and processing of management of test data and scripts can be realized, convenient test services are provided for testers, the efficiency and accuracy of real vehicle test can be greatly improved, the test cost is reduced, and a powerful guarantee is provided for smooth promotion of cloud diagnosis projects in the automobile industry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile automated testing, and in particular to a real vehicle automated testing technical method and application. Background Art

[0002] With the rapid development of the automobile industry, the level of automobile intelligence is constantly improving, and vehicle information systems and autonomous driving technology have gradually become important components of automobiles. In the actual vehicle testing phase, traditional testing has problems such as low test efficiency, non-objective test results, and poor consistency of the test process. Therefore, it is of great practical significance to study a real vehicle automated testing technology method and its application.

[0003] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention

[0004] In view of the problems in the related art, the present invention proposes a real vehicle automated testing technology method and application to overcome the above technical problems existing in the existing related art.

[0005] To this end, the specific technical solution adopted by the present invention is as follows: A real vehicle automated testing technology method and application, the method comprising the following steps: Step S1: test case analysis and automated collection; Step S2: Automated script configuration; Step S3: test data configuration; Step S4: Use case association script; Step S5: test task; Step S6: test task execution; Step S7: Test report.

[0006] Furthermore, the steps of analyzing and automatically collecting test cases in step S1 are as follows: Analyze test cases and scenarios, write them according to standard template rules, form structured test cases, and automatically collect test cases to the AOT test platform; The automatically generated test cases are used for S2 automation script configuration.

[0007] Furthermore, the automation script in step S2 is configured as follows: On the AOT test platform, scripts are configured according to the test points of different use cases. The specific processing process is as follows: 1. Cloud: configure the cloud web UI script; 2. Vehicle: configure the script executed by the RDM program; 3. Set logical judgment conditions in the script according to different business scenarios; 4. Finally, assert the results after the configuration script is executed; When the automation script configuration is completed, the S3 test data configuration will be entered. The places involving test data are represented by {variable name}.

[0008] Furthermore, the test data configuration in step S3 is: The data involved in the script execution are set as parameter variables according to the different execution data of different models, extracted and maintained as public variables and script data.

[0009] Furthermore, the use case association script in step S4 is: Associate the configured test script with the use case description.

[0010] Furthermore, the test task in step S5 is: Since different phases of testing need to cover different test cases, they can be distinguished by test tasks, and different test tasks can be associated with different test cases; Test cases are intelligently sorted by rules based on configured parameters. (Types of test cases include web UI, car-cloud, and car-side; car-side is further divided into detection, download, installation, result reporting, HMI interaction, etc.); When creating test tasks, you can quickly obtain types and create tasks through intelligent sorting.

[0011] Furthermore, the test task in step S6 is performed as follows: After clicking or timing or custom setting of trigger conditions, the system automatically triggers the task execution and selects the testAgent engine to be executed (used to parse the script steps and data of the task). Finally, the engine accesses different devices according to the script to complete the automated test. The script parsing is driven by the underlying library installed on the platform & testagent engine; An example of script parsing is as follows: 1. For operations on the web platform, the seleniumLibray library is used to process page clicks, input, and sliding operations, as well as to assert whether there are corresponding controls and prompt information on the page; 2. For the operation on the device side, that is, the execution result of the RDM on the device side, the testagent will automatically execute it after being pushed by the platform. The automated script asserts the result after execution by calling the underlying encapsulation libraries such as adb, peak, and canoe to obtain the device's logs, messages, screenshots during execution, etc.; according to the execution time logic nodes of the log, it gradually asserts whether there are related keywords or files to judge the correctness of the use case execution results.

[0012] Furthermore, the test report in step S7 is: After the automatic test is completed, the test results will be reported to the platform; By setting the number of executions for the test task, you can trigger a cyclic process stress test to perform a stability test on the process.

[0013] Beneficial effects of the present invention: This solution uses advanced automated testing technology to perform automated testing of the cloud diagnostic RDS software program on the actual vehicle, mainly applying functional testing. By writing automated test scripts and configuring the test environment, automated control and data collection of the actual vehicle are performed, thereby achieving a comprehensive test of the vehicle's RDS software functions.

[0014] The present invention also provides an automated testing system, which is highly integrated and intelligent, capable of automatically analyzing and processing the management of test data and scripts, and providing convenient testing services for testers. The application of the present invention can greatly improve the efficiency and accuracy of actual vehicle testing, reduce testing costs, and provide strong guarantees for the smooth advancement of cloud diagnosis projects in the automotive industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 A flowchart of a real vehicle automated testing technology method and application of the present invention; Figure 2 The present invention provides a method for automated testing of a real vehicle and a flowchart of automated control and data collection for its application; Figure 3 The present invention is a real vehicle automated testing technology method and an application test bench including a structural diagram; Figure 4 The present invention discloses a real vehicle automated testing technology method and an applied test data and script management automatic analysis and processing flow chart. DETAILED DESCRIPTION

[0016] According to an embodiment of the present invention, a real vehicle automated testing technology method and application are provided.

[0017] According to an embodiment of the present invention, a real vehicle automated testing technology method and application, the method comprises the following steps: Step S1: test case analysis and automated collection; Step S2: Automated script configuration; Step S3: test data configuration; Step S4: Use case association script; Step S5: test task; Step S6: test task execution; Step S7: Test report.

[0018] Furthermore, the steps of analyzing and automatically collecting test cases in step S1 are as follows: Analyze test cases and scenarios, write them according to standard template rules, form structured test cases, and automatically collect test cases to the AOT test platform; The automatically generated test cases are used for S2 automation script configuration.

[0019] Furthermore, the automation script in step S2 is configured as follows: On the AOT test platform, scripts are configured according to the test points of different use cases. The specific processing process is as follows: 1. Cloud: configure the cloud web UI script; 2. Vehicle: configure the script executed by the RDM program; 3. Set logical judgment conditions in the script according to different business scenarios; 4. Finally, assert the results after the configuration script is executed; When the automation script configuration is completed, the S3 test data configuration will be entered. The places involving test data are represented by {variable name}.

[0020] Furthermore, the test data configuration in step S3 is: The data involved in the script execution are set as parameter variables according to the different execution data of different models, extracted and maintained as public variables and script data.

[0021] Furthermore, the use case association script in step S4 is: Associate the configured test script with the use case description.

[0022] Furthermore, the test task in step S5 is: Since different phases of testing need to cover different test cases, they can be distinguished by test tasks, and different test tasks can be associated with different test cases; Test cases are intelligently sorted by rules based on configured parameters. (Types of test cases include web UI, car-cloud, and car-side; car-side is further divided into detection, download, installation, result reporting, HMI interaction, etc.); When creating test tasks, you can quickly obtain types and create tasks through intelligent sorting.

[0023] Furthermore, the test task in step S6 is performed as follows: After clicking or timing or custom setting of trigger conditions, the system automatically triggers the task execution and selects the testAgent engine to be executed (used to parse the script steps and data of the task). Finally, the engine accesses different devices according to the script to complete the automated test. The script parsing is driven by the underlying library installed on the platform & testagent engine; An example of script parsing is as follows: 1. For operations on the web platform, the seleniumLibray library is used to process page clicks, input, and sliding operations, as well as to assert whether there are corresponding controls and prompt information on the page; 2. For the operation on the device side, that is, the execution result of the RDM on the device side, the testagent will automatically execute it after being pushed by the platform. The automated script asserts the result after execution by calling the underlying encapsulation libraries such as adb, peak, and canoe to obtain the device's logs, messages, screenshots during execution, etc.; according to the execution time logic nodes of the log, it gradually asserts whether there are related keywords or files to judge the correctness of the use case execution results.

[0024] Furthermore, the test report in step S7 is: After the automatic test is completed, the test results will be reported to the platform; By setting the number of executions for the test task, you can trigger a cyclic process stress test to perform a stability test on the process.

[0025] Specific application of the present invention: This solution uses advanced automated testing technology to perform automated testing of the cloud diagnostic RDS software program on the actual vehicle, mainly applying functional testing, and by writing automated testing scripts and configuring the test environment, automating control and data collection of the actual vehicle, thereby achieving comprehensive testing of the vehicle's RDS software functions. The present invention also provides an automated testing system that is highly integrated and intelligent, capable of automatically analyzing and processing the management of test data and scripts, and providing convenient testing services for testers. The application of the present invention can greatly improve the efficiency and accuracy of actual vehicle testing, reduce testing costs, and provide strong guarantees for the smooth advancement of cloud diagnostic projects in the automotive industry. The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A real vehicle automated testing technology method and application, characterized in that: The method comprises the following steps: Step S1: test case analysis and automated collection; Step S2: Automated script configuration; Step S3: test data configuration; Step S4: Use case association script; Step S5: test task; Step S6: test task execution; Step S7: Test report.

2. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The steps of test case analysis and automated collection in step S1 are as follows: Analyze test cases and scenarios, write them according to standard template rules, form structured test cases, and automatically collect test cases to the AOT test platform; The automatically generated test cases are used for S2 automation script configuration.

3. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The automation script configuration in step S2 is: On the AOT test platform, scripts are configured according to the test points of different use cases. The specific processing process is as follows:

1. Cloud: configure the cloud web UI script; 2. Vehicle: configure the script executed by the RDM program; 3. Set logical judgment conditions in the script according to different business scenarios; 4. Finally, assert the result after executing the configuration script; When the automation script configuration is completed, the S3 test data configuration will be entered. The places involving test data are represented by {variable name}.

4. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The test data configuration in step S3 is: The data involved in the script execution are set as parameter variables according to the different execution data of different models, extracted and maintained as public variables and script data.

5. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The use case association script in step S4 is: Associate the configured test script with the use case description.

6. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The test task used in step S5 is: Since different phases of testing need to cover different test cases, they can be distinguished by test tasks. Different test tasks can be associated with different test cases: Test cases are intelligently sorted by rules based on configured parameters. (Types of test cases include web UI, car-cloud, and car-side; car-side is further divided into detection, download, installation, result reporting, HMI interaction, etc.): When creating test tasks, you can quickly obtain types and create tasks through intelligent sorting.

7. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The test task in step S6 is performed as follows: After clicking or timing or custom setting of trigger conditions, the system automatically triggers the task execution and selects the testAgent engine to be executed (used to parse the script steps and data of the task). Finally, the engine accesses different devices according to the script to complete the automated test. The script parsing is driven by the underlying library installed on the platform & testagent engine; An example of script parsing is as follows:

1. For operations on the web platform, the seleniumLibray library is used to process page clicks, input, and sliding operations, as well as to assert whether there are corresponding controls and prompt information on the page; 2. For the operation on the device side, that is, the execution result of the RDM on the device side, the testagent will automatically execute it after being pushed by the platform. The automated script asserts the result after execution by calling the underlying encapsulation libraries such as adb, peak, and canoe to obtain the device's logs, messages, screenshots during execution, etc.; according to the execution time logic nodes of the log, it gradually asserts whether there are related keywords or files to judge the correctness of the use case execution results.

8. The method and application of the real vehicle automated testing technology according to claim 1, characterized in that: The test report in step S7 is: After the automatic test is completed, the test results will be reported to the platform; By setting the number of executions for the test task, you can trigger a cyclic process stress test to perform a stability test on the process.