An automated testing method and system based on automobile OTA whole vehicle upgrade

By configuring and executing automated test CASE on the OTA automated test cloud platform, the problems of complex ECU testing steps, long cycles and high cost before OTA upgrade are solved, and an efficient and automated test process is achieved, ensuring the stability and correctness of OTA upgrades.

CN119759752APending Publication Date: 2025-04-04ABUP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411480903.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the prior art, the ECU testing steps before OTA upgrade are complex, the test cycle is long, and the testing cost is high. It is impossible to guarantee whether abnormal situations will occur after large-scale upgrades, and the efficiency is low.

Method used

It adopts automated testing methods and systems based on the upgrade of automotive OTA vehicles, including configuring test CASE on the cloud and vehicle terminals on the OTA automation test cloud platform, publishing automated test tasks, executing automated test Python scripts on the vehicle terminal, and automatically generating test reports.

Benefits of technology

It realizes automated testing and reports with one click, improves testing efficiency, reduces testing costs, and ensures stability and correctness after large-scale upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759752A_ABST
    Figure CN119759752A_ABST
Patent Text Reader

Abstract

The invention discloses an automated testing method and system based on automobile OTA whole vehicle upgrade, comprising the following steps: step S1: configuring a cloud test CASE on an OTA automated testing cloud platform; step S2: configuring a vehicle-side test CASE on the OTA automated testing cloud platform; step S3: publishing an automated testing task on the OTA automated testing cloud platform, wherein the task may specify the actual device to be tested; step S4: executing a vehicle-side automated testing Python script on a PC; step S5: the script determines whether there are still cases that have not been executed, and if not, the test result, the platform automatically generates a test report for this task, and the automated test can generate a report with one click; the system test and the single-piece test can be flexibly switched to meet the functional verification in different development periods; the vehicle-side automated testing case can be associated with the OTA cloud CASE; a modular software architecture is adopted, which is easy to expand the case.
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 ECU whole vehicle OTA upgrade, and in particular to an automated testing method and system based on automobile OTA whole vehicle upgrade. Background Art

[0002] With the widespread integration of 4G / 5G mobile broadband technology and automobiles, OTA remote upgrade technology has become standard for most car models. It not only reduces the after-sales service costs of manufacturers and improves service efficiency, but also provides car owners with a "always new" user experience, greatly improving user satisfaction.

[0003] Before the release of vehicles equipped with OTA upgrade technology, testers need to perform a large number of tests on ECU upgrades to ensure the correctness and stability of OTA upgrades. However, in traditional manual testing (traditional OTA vehicle-side testing as shown in the attached Figure 3 The steps are complex, the test cycle is long, the test cost is high, there is no guarantee whether there will be abnormal situations after mass upgrades, and the efficiency is very low. Summary of the invention

[0004] In view of the problems in the related art, the present invention proposes an automated testing method and system based on automobile OTA whole vehicle upgrade to overcome the above-mentioned technical problems existing in the existing related technology.

[0005] To this end, the specific technical solution adopted by the present invention is as follows: An automated testing method and system based on automobile OTA whole vehicle upgrade, comprising the following steps: Step S1: On the OTA automated test cloud platform, configure the cloud test case; Step S2: Configure the vehicle-side test case on the OTA automated test cloud platform; Step S3: On the OTA automated test cloud platform, publish an automated test task, where the task can specify the actual device to be tested; Step S4: Execute the vehicle-side automated test Python script on the PC; Step S5: The script determines whether there are still cases that have not been executed. If not, the platform automatically generates a test report for this task based on the test results.

[0006] As a further solution of the present invention, the strategy that needs to be upgraded is configured in step S1. The specific strategy includes which ECU to upgrade, from which version to which version, upgrade precondition configuration, failure retry and rollback, etc., and then the upgrade task is created and automatically released, so that the version can be detected when the vehicle performs OTA detection.

[0007] As a further solution of the present invention, a detection step is added in step S2 (click the button on the XPATH identification interface to click), a download step is added (download the button on the XPATH identification interface to download), an installation step is added (install the button on the XPATH identification interface to install), and the cloud CASE is associated (before the vehicle-side version is detected, the cloud can track the cloud-based automated CASE and automatically release the upgrade task).

[0008] As a further solution of the present invention, after the script in step S4 is executed, the vehicle-side automated test task is automatically obtained from the cloud, the task case is parsed, and the elements of the AndOTA upgrade test roidui interface are obtained step by step according to the steps of the case configuration, and operations such as clicks are performed to automatically detect and download. According to the steps, after the execution is completed, the expected results of the case configuration are compared with the actual results, and the installation results are reported to the OTA automated test cloud platform.

[0009] As a further solution of the present invention, an automated testing system based on automobile OTA whole vehicle upgrade consists of four parts: an OTA automated testing cloud platform, an OTA automated testing terminal, an external device and a system under test.

[0010] As a further solution of the present invention, the OTA automated testing platform provides test case maintenance, test script editing, and automated test task delivery functions.

[0011] As a further solution of the present invention, the function of the OTA automated test terminal is device-side control (ECU device based on the Android system), and the technical architecture adopts Python3.8+UiAutomator2 to realize the automated control of the Andorid device side. The overall process is: the test terminal receives the automated test task issued by the automated cloud platform, parses the task, executes the automated script issued in the task, and reports the execution result to the automated cloud platform.

[0012] As a further solution of the present invention, the function of the external device is that the automated test terminal controls some functions of the system under test through the external device, such as an external relay to automatically control the power on and off of the ECU, an external programmable power supply to automatically control the power on and off of the control rack equipment, and an external CAN card to automatically control the sending and receiving of messages.

[0013] As a further solution of the present invention, the system under test may be a test bench, a whole vehicle or a mobile phone APP.

[0014] Beneficial effects of the present invention Automated testing, one-click report generation; flexible switching between system testing and single-unit testing to meet functional verification at different development stages; vehicle-side automated test cases can be associated with OTA cloud CASE; modular software architecture is adopted to facilitate use case expansion. 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 It is the OTA vehicle-side test process-automation platform of the present invention; Figure 2 The overall architecture of the automated testing system of the present invention; Figure 3 This is the OTA vehicle-side test process of the present invention - manual; Figure 4 This is a screenshot of the functional module of the automated testing platform of the present invention. DETAILED DESCRIPTION

[0016] According to an embodiment of the present invention, an automated testing method and system based on automobile OTA whole vehicle upgrade are provided.

[0017] An automated testing method and system based on automobile OTA vehicle upgrade according to an embodiment of the present invention includes the following steps: Step S1: On the OTA automated test cloud platform, configure the cloud test case; Step S2: Configure the vehicle-side test case on the OTA automated test cloud platform; Step S3: On the OTA automated test cloud platform, publish an automated test task, where the task can specify the actual device to be tested; Step S4: Execute the vehicle-side automated test Python script on the PC; Step S5: The script determines whether there are still cases that have not been executed. If not, the platform automatically generates a test report for this task based on the test results.

[0018] In an optional embodiment, the strategy that needs to be upgraded is configured in step S1. The specific strategy includes which ECU to upgrade, from which version to which version, upgrade precondition configuration, failure retry and rollback, etc., and then the upgrade task is created and automatically released, so that the version can be detected when the vehicle performs OTA detection.

[0019] In an optional embodiment, in step S2, a detection step is added (click the button on the XPATH recognition interface to click), a download step is added (download the button on the XPATH recognition interface to download), an installation step is added (install the button on the XPATH recognition interface to install), and the cloud CASE is associated (before the vehicle-side version is detected, the cloud can track the cloud-based automated CASE and automatically release the upgrade task).

[0020] In an optional embodiment, after the script in step S4 is executed, the vehicle-side automated test task is automatically obtained from the cloud, the task case is parsed, and the elements of the AndOTA upgrade test roidui interface are obtained step by step according to the steps of the case configuration. Click and other operations are performed, and detection and download are automatically performed according to the steps. After the execution is completed, the expected results of the case configuration are compared with the actual results, and the installation results are reported to the OTA automated test cloud platform.

[0021] An automated test system based on automobile OTA whole vehicle upgrade consists of four parts: OTA automated test cloud platform, OTA automated test terminal, external equipment and tested system.

[0022] In an optional embodiment, the OTA automated testing platform provides test case maintenance, test script editing, and automated test task delivery functions (see Appendix Figure 4 ).

[0023] In an optional embodiment, the function of the OTA automated test terminal is device-side control (ECU device based on the Android system), and the technical architecture adopts Python3.8+UiAutomator2 to realize the automated control of the Andorid device side. The overall process is: the test terminal receives the automated test task issued by the automated cloud platform, parses the task, executes the automated script issued in the task, and reports the execution result to the automated cloud platform.

[0024] In an optional embodiment, the function of the external device is that the automated test terminal controls some functions of the system under test through the external device, such as an external relay to automatically control the power on and off of the ECU, an external programmable power supply to automatically control the power on and off of the control rack equipment, and an external CAN card to automatically control the sending and receiving of messages.

[0025] In an optional embodiment, the system under test may be a test bench, a whole vehicle or a mobile phone APP.

[0026] The present invention: Automated testing, one-click report generation The characteristics of OTA automated testing are reflected in the fact that testers can flexibly select a set of test cases and submit them to the test system. The test system can automatically execute the corresponding test scripts according to the test cases submitted by the testers, and finally output a test report, which includes the test prerequisites, detailed test steps and expected results of each step. If a test fails, the possible reasons for the failure can be given based on the test steps and the information returned by the step to help relevant personnel locate the problem.

[0027] Flexible switching between system testing and single-unit testing to meet functional verification requirements at different development stages OTA remote upgrades cover the stages from vehicle design, R&D, production to user use, and the OTA automated test cycle has also been expanded. The OTA test content at different stages varies greatly, and may involve single-unit testing, system testing, software package stress testing, etc. By changing the test system configuration conditions and adapting some software modules, OTA testing can be connected at different stages.

[0028] Vehicle-side automated test cases can be associated with OTA cloud cases Utilize the OTA automated testing cloud platform to conduct OTA vehicle-side automated testing. The upgrade strategies and upgrade tasks that were originally required to be configured in the cloud during manual testing can now be created as cloud-based automated cases in the bug-free testing platform and associated with the vehicle-side automated testing cases, allowing the entire OTA process to be fully automated (platform automated release tasks -> vehicle-side automated OTA upgrades).

[0029] Modular software architecture, easy to expand use cases Usually, different models have different OTA strategies under the same OTA functional architecture. In order to adapt to different models, the software architecture of the test system adopts a modular design concept to adapt to changes in network node message interaction processes and expansion of test cases. The software system is divided into several small modules according to the level and functional logic. Each module implements independent functions. The changes in OTA strategies and expansion of test cases can be handled by combining different modules and modifying parameters.

[0030] 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. An automated testing method based on automobile OTA vehicle upgrade, characterized in that: The following steps are involved: Step S1: On the OTA automated test cloud platform, configure the cloud test case; Step S2: Configure the vehicle-side test case on the OTA automated test cloud platform; Step S3: On the OTA automated test cloud platform, publish an automated test task, where the task can specify the actual device to be tested; Step S4: Execute the vehicle-side automated test Python script on the PC; Step S5: The script determines whether there are still cases that have not been executed. If not, the platform automatically generates a test report for this task based on the test results.

2. According to claim 1, an automated testing method based on automobile OTA vehicle upgrade, characterized in that: In step S1, the strategy that needs to be upgraded is configured. The specific strategy includes which ECU to upgrade, from which version to which version, upgrade precondition configuration, failure retry and rollback, etc. Then, the upgrade task is created and automatically released, so that the version can be detected when the vehicle performs OTA detection.

3. The automated testing method based on automobile OTA vehicle upgrade according to claim 1 is characterized in that: In step S2, add a detection step (click the button on the XPATH recognition interface to click), add a download step (click the download button on the XPATH recognition interface to download), add an installation step (click the installation button on the XPATH recognition interface to install), and associate the cloud CASE (before the vehicle-side version is detected, the cloud can track the cloud-based automated CASE and automatically release the upgrade task).

4. The automated testing method based on automobile OTA vehicle upgrade according to claim 1 is characterized in that: After the script in step S4 is executed, the vehicle-side automated test task is automatically obtained from the cloud, the task case is parsed, and the elements of the AndOTA upgrade test roidui interface are obtained step by step according to the steps of the case configuration. Click and other operations are performed automatically, and detection and download are performed according to the steps. After the execution is completed, the expected results of the case configuration are compared with the actual results, and the installation results are reported to the OTA automated test cloud platform.

5. An automated test system based on automobile OTA vehicle upgrade according to claims 1-4, characterized in that: It consists of four parts: OTA automated test cloud platform, OTA automated test terminal, external devices and the system under test.

6. The automated test system based on automobile OTA vehicle upgrade according to claim 5 is characterized in that: The OTA automated testing platform provides test case maintenance, test script editing, and automated test task delivery functions.

7. The automated test system based on automobile OTA vehicle upgrade according to claim 5 is characterized in that: The function of the OTA automated test terminal is to control the device side (ECU device based on the Android system). The technical architecture uses Python3.8+UiAutomator2 to realize the automated control of the Andorid device side. The overall process is: the test terminal receives the automated test task issued by the automated cloud platform, parses the task, executes the automated script issued in the task, and reports the execution result to the automated cloud platform.

8. The automated test system based on automobile OTA vehicle upgrade according to claim 5, characterized in that: The function of the external device is that the automated test terminal controls some functions of the system under test through the external device, such as an external relay to automatically control the power on and off of the ECU, an external programmable power supply to automatically control the power on and off of the rack equipment, and an external CAN card to automatically control the sending and receiving of messages.

9. The automated test system based on automobile OTA vehicle upgrade according to claim 5, characterized in that: The system under test can be a test bench, a whole vehicle or a mobile phone APP.