Task arrangement type cabin software durability testing method
Through the task orchestration cockpit software durability testing method, the visual interface and database storage test tasks are used, combined with ADB and top command monitoring performance, the problem of low coverage of existing test methods is solved, and more efficient test coverage and automation exceptions are achieved. deal with.
Patent Information
- Application Number
- CN202410932979.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
AI Technical Summary
The existing cockpit software durability testing methods have poor scalability and cannot fully simulate user complex scenarios, resulting in low test coverage, inability to monitor the system's functional performance at all times, and it is difficult to find potential problems.
Using task orchestration method, we write custom test tasks in the visual interface through wxPython, arrange test scenarios, combine MySQL database and CSV file to store task sequences, use ADB and top commands to monitor performance in real time, generate visual charts, automatically analyze and upload exception logs.
It improves test coverage, reduces learning costs, can detect software problems more comprehensively, improves testing efficiency, timely monitors system performance, and automatically handles abnormal situations.
Smart Images

Figure CN118897799A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software testing, and in particular to a task-scheduling cockpit software durability testing method. Background Art
[0002] With the rapid development of intelligent driving technology, the intelligence of car cockpit systems is becoming higher and higher. The number and application scenarios of intelligent cockpit software are increasing, and the increasing software complexity places higher and higher requirements on software performance. For the performance of car cockpit system software, it is necessary not only to consider the usage of chip memory, but more importantly, to pay attention to whether the functions run normally and smoothly during stress testing, whether there are delays, and other functional performance. How to ensure the durability and stability of cockpit software has become an important issue facing software developers and testers.
[0003] Existing cockpit software durability testing methods have poor scalability and are often limited to a single or fixed operating process. They cannot fully simulate the various complex scenarios that users encounter in actual use, nor can they cover all the functional points of the cockpit software. This may cause users to discover problems or defects that did not appear in the durability test during use. Stress testing requires long and complex operations, and it is impossible to monitor the performance of system functions at all times and determine whether it meets expectations. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention conceives a task-orchestrated cockpit software durability testing method, which customizes durability test tasks through a visual interface, and arranges test scenarios to simulate the user's actual operating environment, thereby improving the coverage of durability testing, being able to discover cockpit software problems as much as possible, and reducing the learning cost required to perform durability testing.
[0005] The technical solution used to implement the present invention is: a task-scheduling cockpit software durability test method, which is characterized in that it includes the following steps:
[0006] 1) In the task scheduling module, a visual interface is written using wxPython, and test task scenarios are created and edited through the visual interface. The test task steps are stored in a MySQL database, the scheduled durability test task sequence is stored in a CSV file, and the scheduled test tasks are stored as task scenarios in the MySQL database;
[0007] 2) After the test task arrangement is completed, the test execution module reads the task sequence in the CSV file described in step 1) and executes the durability test. The data acquisition module captures the cockpit software log in real time through the ADB in the test execution module and saves it, and executes the top command to monitor the real-time performance of the vehicle durability test. The result analysis module generates charts based on the performance information to intuitively observe the performance changes of the cockpit software during the durability test. By analyzing the cockpit software logs and performance data, if there are any abnormal problems, they are merged into the test report and uploaded to the defect management system. If there are no abnormal problems, performance visualization charts and test reports are generated.
[0008] Furthermore, the test tasks include: conventional action tasks, speech test tasks and Monkey test tasks.
[0009] Furthermore, the conventional action tasks include various actions of the cockpit software, covering the full range of functions of the cockpit software.
[0010] Furthermore, the Monkey test task is to perform Monkey test on the specified cockpit software, configure the parameters of the Monkey test, implement the Monkey test command in the shell script, and push the shell script to the cockpit vehicle computer through the Bat script.
[0011] Furthermore, the voice test task is to play a specified voice through an artificial mouth to simulate the voice function.
[0012] Furthermore, the task scenario includes: task steps, execution order, execution times, and execution time parameter settings.
[0013] Furthermore, the task steps include: opening the cockpit software, performing specific operations, and closing the cockpit software.
[0014] Furthermore, the real-time performance of the vehicle computer durability test includes cockpit software CPU, memory occupancy and FPS performance information.
[0015] Furthermore, the performance visualization chart data is derived from the top command, and the performance data recorded by it is processed by the Python program, and the chart is generated by the Pyecharts module, and a bar chart or a line chart is selected according to the needs.
[0016] The beneficial technical effects of the task-scheduling cockpit software durability test method of the present invention are as follows:
[0017] A task-orchestrated cockpit software durability test method is disclosed. The durability test is performed by a task-orchestrated method, and the Monkey command is written into a Shell script to make it run inside the cockpit vehicle system. This method can prevent it from occupying the ADB channel, monitor the vehicle operation through the ADB channel, and execute test tasks. By arranging tasks, test scenarios are composed to cover the actual user usage scenarios as much as possible, and problems that may arise in the durability test are discovered. The vehicle log during execution is pulled and analyzed. If ANR and Crash occur, or the CPU and memory usage of some applications are too high, the abnormal log information is intercepted and analyzed and uploaded to the defect management system, and the defect is automatically transferred to the developer of the module where the abnormality occurs. At the same time, the log and screenshot when the abnormality occurs are uploaded to the attachment, which is convenient for developers to analyze problems and improves test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is an architectural diagram of a task-orchestrated cockpit software durability test device;
[0019] Figure 2 The present invention is a flowchart of a task-scheduling cockpit software durability testing method. DETAILED DESCRIPTION
[0020] The following is combined with Figures 1-2 The specific implementation manner will further describe the present invention in detail. To make the purpose, technical scheme and advantages of the implementation manner clearer, the technical scheme in the implementation manner will be clearly and completely described in combination with the embodiments of the present invention. The specific implementation manner described here is only used to explain the present invention and is not used to limit the scope of the present invention.
[0021] As attached Figure 1 As shown, a task-scheduling cockpit software durability test device includes: a task scheduling module, a test execution module, a data acquisition module and a result analysis module. In the task scheduling module, wxPython is used to write a visual interface, and the scheduled durability test task sequence is stored in a CSV file. In addition, the tester can store the scheduled test tasks as task scenarios in a MySQL database; the test execution module reads the CSV file and executes the durability test according to the task configuration. The data acquisition module captures the cockpit software log in real time through ADB and saves it locally, and executes the top command to monitor the real-time performance of the vehicle computer durability test; the result analysis module will automatically generate charts based on the performance information to intuitively observe the performance changes of the cockpit software during the durability test.
[0022] As attached Figure 2As shown, a task-orchestrated cockpit software durability test method is provided. The tester arranges the test tasks into durability test scenarios according to the test requirements and saves them in the database. The tester can simulate the real usage scenarios of smart cockpit users through the arranged test scenarios, including the following steps:
[0023] 1) In the task arrangement module, a visual interface is written using wxPython. The test task scenario is created and edited through the visual interface. The task scenario includes: task steps, execution order, execution times, and execution time parameter settings. The task steps include: opening the cockpit software, performing specific operations, and closing the cockpit software. The test task steps are stored in the MySQL database, the arranged durability test task sequence is stored in a CSV file, and the arranged test tasks are stored in the MySQL database as task scenarios. The test tasks include: conventional action tasks, voice test tasks, and Monkey test tasks. The conventional action tasks include various actions of the cockpit software, covering the full functions of the cockpit software. The Monkey test task is to perform Monkey tests on the specified cockpit software and configure the parameters of the Monkey test. The Monkey test command is implemented in a shell script, and the shell script is pushed to the cockpit vehicle through a Bat script. The voice test task is to play a specified voice through an artificial mouth to simulate the voice function. ;
[0024] 2) After the test task is arranged, the test execution module reads the task sequence in the CSV file described in step 1) and executes the durability test. The real-time performance of the vehicle computer durability test includes the CPU, memory occupancy and FPS performance information of the cockpit software. The data acquisition module captures the cockpit software log in real time through the ADB in the test execution module and saves it, and executes the top command to monitor the real-time performance of the vehicle computer durability test. The result analysis module generates a chart based on the performance information to intuitively observe the performance changes of the cockpit software during the durability test. By analyzing the cockpit software log and performance data, if there is an abnormal problem, it is merged into the test report and uploaded to the defect management system. If there is no abnormal problem, a performance visualization chart and a test report are generated. The abnormal data consists of two parts: first, performance abnormality, comparing the performance statistics with the required performance standard, if it is too high, it is abnormal; second, the cockpit software crashes or ANRs. The device intercepts the abnormal information by reading the log and writes the abnormal part of the log into a separate file to facilitate developers and testers to analyze the problem. The performance statistics and abnormal data are combined with the test configuration information and written into the javascript file, which is presented in the form of HTML, which is the stability test report. The performance visualization chart data is derived from the top command, and the performance data recorded by it is processed by the python program. The chart is generated by the Pyecharts module. The bar chart or line chart is selected according to the needs. The above performance data is analyzed and processed again to obtain the statistical data of the performance of each Internet of Vehicles software, including the maximum, minimum, mean, variance of its memory and CPU usage, as well as the total memory and CPU usage of the vehicle system during the test.
[0025] The above is only a preferred embodiment of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A task-scheduling cockpit software durability test method, characterized in that: It includes the following steps: 1) In the task scheduling module, a visual interface is written using wxPython, and test task scenarios are created and edited through the visual interface. The test task steps are stored in a MySQL database, the scheduled durability test task sequence is stored in a CSV file, and the scheduled test tasks are stored as task scenarios in the MySQL database; 2) After the test task arrangement is completed, the test execution module reads the task sequence in the CSV file described in step 1) and executes the durability test. The data acquisition module captures the cockpit software log in real time through the ADB in the test execution module and saves it, and executes the top command to monitor the real-time performance of the vehicle durability test. The result analysis module generates charts based on the performance information to intuitively observe the performance changes of the cockpit software during the durability test. By analyzing the cockpit software logs and performance data, if there are any abnormal problems, they are merged into the test report and uploaded to the defect management system. If there are no abnormal problems, a performance visualization chart and a test report are generated.
2. The task-scheduling cockpit software durability testing method according to claim 1 is characterized in that: The test tasks include: conventional action tasks, speech test tasks and Monkey test tasks.
3. The task-scheduling cockpit software durability testing method according to claim 2 is characterized in that: The conventional action tasks include various actions of the cockpit software, covering the full range of functions of the cockpit software.
4. The task-scheduling cockpit software durability testing method according to claim 2 is characterized in that: The Monkey test task is to perform Monkey test on the specified cockpit software, configure the parameters of the Monkey test, implement the Monkey test command in the shell script, and push the shell script to the cockpit vehicle computer through the Bat script.
5. The task-scheduling cockpit software durability testing method according to claim 2 is characterized in that: The voice test task is to play a specified voice through an artificial mouth to simulate the voice function.
6. The task-scheduling cockpit software durability testing method according to claim 1 is characterized in that: The task scenario includes: task steps, execution order, execution times, and execution time parameter settings.
7. The task-scheduling cockpit software durability testing method according to claim 1 is characterized in that: The task steps include: opening the cockpit software, performing specific operations, and closing the cockpit software.
8. The task-scheduling cockpit software durability testing method according to claim 1 is characterized in that: The real-time performance of the vehicle computer durability test includes cockpit software CPU, memory occupancy and FPS performance information.
9. The task-scheduling cockpit software durability testing method according to claim 1 is characterized in that: The performance visualization chart data is derived from the top command. The performance data recorded is processed by the Python program, and the Pyecharts module generates a chart. A bar chart or a line chart is selected according to the needs.
