Automatic testing method and system based on Android vehicle machine and vehicle machine
By recording and automating the operation steps of Android car computers, the randomness and uncontrollability of Monkey tests are solved, efficient and accurate testing of Android car computers is achieved, and product quality is improved.
Patent Information
- Application Number
- CN202510092478.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-13
AI Technical Summary
The existing Android system automation testing method Monkey test has problems such as randomness, uncontrollability, limited coverage, instability and inability to reproduce, making it difficult to conduct stress testing for fixed operation steps.
By obtaining the tester's operation steps on Android car machines, recording them as operation files, and using automated testing programs to read and test each operation node in sequence to obtain the test results.
It improves the testing efficiency and accuracy of Android car machines, ensures full coverage of operation steps, facilitates rapid discovery and repair of problems, and improves product quality.
Smart Images

Figure CN119988227A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile automated testing, and in particular to an automated testing method, system, vehicle computer and computer-readable storage medium based on an Android vehicle computer. Background Art
[0002] Currently, Android system automated testing generally uses Android Monkey for testing. Android Monkey testing is a high-intensity testing method that can simulate users' random operations to help discover potential problems in the application.
[0003] However, Monkey testing has the following problems: 1. Uncontrollability: Monkey testing is random, and the specific paths and data of the test cannot be controlled, making it difficult to predict the final test results. 2. Limited coverage: Monkey testing cannot guarantee coverage of all code paths of the application, and there may be missed tests. 3. Instability: Monkey testing may terminate unexpectedly due to abnormal responses of the application, resulting in incomplete test results. 4. Inability to reproduce problems: Even if Monkey testing finds problems, it is impossible to accurately reproduce those problems, which brings inconvenience to debugging and repair work. 5. It is impossible to perform stress testing on probabilistic problems of fixed operating steps; for example, the existing technology cannot perform automated stress testing on fixed operating steps, which has become a problem that needs to be solved urgently.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide an automated testing method, system and computer-readable storage medium based on Android car machine, aiming to solve the problem that the randomness and uncontrollability of Monkey test in the prior art make it impossible for the software to perform stress testing for fixed operation steps.
[0006] To achieve the above object, the present invention provides an automated testing method based on an Android vehicle machine, and the automated testing method based on an Android vehicle machine comprises the following steps:
[0007] Obtain the tester's operation steps for the Android car machine, record the operation steps according to a custom file format, and obtain an operation file record;
[0008] When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file records are read in sequence through the automated test program to obtain information of multiple operation nodes;
[0009] The information of each operation node is tested according to the automated testing program, and a test result is obtained.
[0010] Optionally, the automated testing method based on Android vehicle computer, wherein the step of obtaining the operation steps of the tester on the Android vehicle computer and recording the operation steps according to a custom file format to obtain the operation file record specifically includes:
[0011] Capture the tester's click, slide and drag commands on the Android car machine based on the system's monitoring function;
[0012] The click instruction, the slide instruction and the drag instruction are recorded according to an XML file in a custom file format to obtain an operation file record.
[0013] Optionally, the automated testing method based on Android vehicle machine, wherein when the operation interface of the Android vehicle machine starts to play the operation steps, the operation file records are read in sequence by an automated testing program to obtain information of multiple operation nodes, specifically including:
[0014] When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file record is extracted through an automated test program to obtain the occurrence time and time interval of the information of multiple operation nodes;
[0015] The information of each operation node is sorted according to the occurrence time and the time interval to obtain a plurality of target operation records.
[0016] Optionally, the automated testing method based on Android vehicle machine, wherein the step of testing the information of each operation node according to the automated testing program and obtaining the test result specifically includes:
[0017] Calling the system interface according to the automated testing program;
[0018] The touch operation corresponding to each target operation record is tested based on the system interface, and a test result is obtained.
[0019] Optionally, the automated testing method based on Android vehicle computer, wherein the information of each operation node is tested according to the automated testing program and a test result is obtained, and then further comprises:
[0020] When the stop play button of the operation interface of the Android vehicle machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain a test analysis result.
[0021] Optionally, the automated testing method based on Android vehicle machine, wherein when the stop play button of the operation interface of the Android vehicle machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain the test analysis result, and then further includes:
[0022] Determining whether the test analysis result is abnormal;
[0023] If the test analysis result is abnormal, the test analysis result is analyzed abnormally, the abnormal reason is generated, and the abnormal reason is sent to the tester;
[0024] The exception cause includes any one of a null pointer, an IO exception, a null class name, an array out of bounds, and insufficient memory.
[0025] Optionally, in the automated testing method based on Android vehicle machine, the XML file includes screen coordinates, occurrence time and duration.
[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides an automated testing system based on an Android vehicle machine, wherein the automated testing system based on an Android vehicle machine:
[0027] An operation record module is used to obtain the tester's operation steps on the Android car machine, record the operation steps according to a custom file format, and obtain an operation file record;
[0028] An operation playback module, used to read the operation file records in sequence through an automated test program to obtain information of multiple operation nodes when the operation interface of the Android vehicle machine starts to play the operation steps;
[0029] The operation execution module is used to test the information of each operation node according to the automated test program and obtain the test result.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automated testing program based on an Android vehicle machine, and when the automated testing program based on an Android vehicle machine is executed by a processor, the steps of the automated testing method based on an Android vehicle machine as described above are implemented.
[0031] In the present invention, the operating steps of the tester on the Android car machine are obtained, and the operating steps are recorded according to the custom file format to obtain the operating file record; when the operating interface of the Android car machine starts to play the operating steps, the operating file record is read in sequence by the automated testing program to obtain the information of multiple operating nodes; the information of each operating node is tested according to the automated testing program, and the test results are obtained. The present invention records the operating steps of the tester on the Android car machine, reads and tests each operating node in sequence by the automated testing program, obtains the test results, improves the testing efficiency and accuracy of the Android car machine, ensures the comprehensive coverage of the operating steps, facilitates the rapid discovery and repair of problems, and improves the product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of a preferred embodiment of the automated testing method based on Android vehicle machine of the present invention;
[0033] Figure 2 It is a flowchart of a fixed repetitive test of an Android vehicle machine according to a preferred embodiment of the automated test method of an Android vehicle machine of the present invention;
[0034] Figure 3 It is a schematic diagram of an Android vehicle machine operation interface of a preferred embodiment of the automated testing method based on an Android vehicle machine of the present invention;
[0035] Figure 4 It is a schematic diagram of an automatic test of an Android vehicle machine according to a preferred embodiment of the automatic test method of an Android vehicle machine of the present invention;
[0036] Figure 5 It is a structural diagram of a preferred embodiment of the automated testing system based on Android vehicle machine of the present invention;
[0037] Figure 6 It is a structural diagram of a preferred embodiment of the vehicle computer of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0040] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0041] The automated testing method based on Android vehicle machine described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the automated testing method based on Android vehicle computer includes the following steps:
[0042] Step S10: Obtain the operating steps of the tester on the Android vehicle machine, record the operating steps according to the custom file format, and obtain the operating file record.
[0043] The step S10 comprises:
[0044] Step S11, capturing the tester's click instructions, sliding instructions and dragging instructions on the Android car machine based on the system monitoring function;
[0045] Step S12: Record the click instruction, the slide instruction and the drag instruction according to the XML file in the custom file format to obtain an operation file record.
[0046] Specifically, the system-based monitoring function captures the tester's click instructions, sliding instructions and drag instructions on the Android car machine (the tester clicks "record" to start recording the operations on the system interface, including: click, slide, drag, occurrence time, time interval, etc.), that is, the click, slide and drag instructions of the user's operation are directly captured through the monitor. For example, the system modifies the Android system WMS subsystem, captures the user operation in the (PointerLocationPointerEventListener) hook function operation callback of the main function (PhoneWindowManager), and records the current time, and records the click instructions, the sliding instructions and the drag instructions according to the XML file in the custom file format to obtain the operation file record (the record is returned to the automated test program, and the automated test program writes the operation into the XML file in the custom format to obtain the operation file record), the XML file includes screen coordinates, occurrence time and duration, wherein XML is a file format, and the content includes: action (Action), screen x coordinate (Px), screen y coordinate (Py), occurrence time (occTime), duration (Duration).
[0047] like Figure 2 As shown, by recording the tester's operating steps on the system, such as: clicking, sliding, dragging, time intervals, etc., an operation record file is obtained, the operation record file is played through an automated program, the tester's operating steps are repeated, and finally the log file is exported through the automated program, and the log analysis is used to determine whether there are any problems.
[0048] Step S20: When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file records are read in sequence through an automated test program to obtain information of multiple operation nodes.
[0049] The step S20 comprises:
[0050] Step S21: When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file record is extracted through an automated test program to obtain the occurrence time and time interval of information of multiple operation nodes;
[0051] Step S22: sort the information of each operation node according to the occurrence time and the time interval to obtain multiple target operation records.
[0052] Specifically, Figure 3As shown, when the operating interface of the Android car machine starts to play the operating steps, the operation file record is extracted through the automated testing program to obtain the occurrence time and time interval of the information of multiple operation nodes (the parsing process is the process of parsing the XML file, taking a node, reading out an operation: action, reading out the screen coordinates: (Px: screen x coordinate, Py: screen y coordinate), reading out the occurrence time, duration), sorting the information of each operation node according to the occurrence time and the time interval, and obtaining multiple target operation records (taking out instructions one by one to simulate execution).
[0053] Furthermore, if Figure 3 As shown, start recording the tester's operations; when recording, it will display "Stop Recording", you can stop the current recording and play the operations just recorded; when playing, it will display "Stop Playing", you can stop the current playback, you can export the operation file to a USB flash drive, copy it to another machine for execution, and export the execution log to a USB flash drive for developers to analyze.
[0054] Step S30: Test the information of each operation node according to the automated testing program and obtain a test result.
[0055] Step S31, calling the system interface according to the automated testing program;
[0056] Step S32: testing the touch operation corresponding to each target operation record based on the system interface, and obtaining a test result.
[0057] Specifically, the system interface is called according to the automated test program (the program performs touch operations according to the called system interface); the touch operations corresponding to each target operation record are tested based on the system interface, and the test results are obtained; when the stop play button of the operation interface of the Android car machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain the test analysis result (the tester clicks stop play to stop the automatic execution of the operation, and clicks export log to export the system log file to a U disk), and it is determined whether the test analysis result is abnormal; if the test analysis result is abnormal, the test analysis result is analyzed for abnormality, the cause of the abnormality is generated, and the test result is analyzed for abnormality. The exception reason is sent to the tester; the exception reason includes any one of null pointer, IO exception, empty class name, array out of bounds and insufficient memory. For example, when the application fails to execute, the failure reason is printed out. When checking the log, you can see what action is performed and what the failure reason is. At the same time, the system generally records many exceptions, including: null pointer (NullPointerException), IO exception (IOException), class not found (ClassNotFoundException), array out of bounds (ArrayIndexOutOfBoundsException) and insufficient memory (OutOfMemoryError), etc.
[0058] like Figure 4 As shown, scenario 1: Bluetooth switch stress test 10,000 times, 1. The tester starts the automated test program, 2. The tester clicks the record button to start recording, 3. The tester clicks the Bluetooth switch to turn on Bluetooth, 4. After Bluetooth is turned on, click the stop recording button, 5. The tester clicks play, and the automated test program will imitate the above steps to automatically execute the operation of clicking turn on-wait-turn off Bluetooth, 6. The tester clicks stop play to stop the automatic execution of the operation, 7. The tester clicks export log to export the system log file to a USB flash drive, 8. The developer checks the log to see if there is any abnormality.
[0059] Further, scenario two: application function test (radio) all function tests can follow this operation, 1. The tester starts the automated test program, 2. The tester clicks the record button to start recording, 3. The tester turns on the radio and operates all the functions of the radio according to the test case, 4. The tester clicks the stop recording button to stop recording, 5. The tester clicks play, the automated test program will imitate the operation steps recorded in the third step and execute automatically, 6. The tester clicks stop play to stop the automatic execution of the operation, 7. The tester clicks export log to export the system log file to a USB flash drive, 8. The developer checks the log to see if there is any abnormality.
[0060] As an example, scenario three: aging test of 10 machines, requiring all scenarios to be tested, 1. The tester starts the automated test program, 2. The tester clicks the record button to start recording, 3. The tester operates according to the aging test case: (1) Click the desktop radio icon to turn on the radio operation function, play for 30 seconds, and click the HOME key to exit to the desktop; (2) Click the desktop music icon to turn on the music playback operation function, play for 30 seconds, and click the HOME key to exit to the desktop; (3) Click the desktop video icon to turn on the video playback operation function, play for 30 seconds, and click the HOME key to exit to the desktop; (4) Click the desktop Bluetooth music icon to turn on the Bluetooth music operation function, play for 30 seconds, and click the HOME key to exit to the desktop; (5) Click the desktop settings icon to turn on the settings operation function. Yes, click the HOME key to exit to the desktop. 4. The tester clicks the Stop Recording button to stop recording. 5. The tester clicks "Export Operation" to export the operation record file to the U disk. 6. The tester copies the operation record files in the U disk to 10 U disks respectively. 7. The tester prepares 10 machines, inserts the U disk, and starts them. 8. After startup, the tester starts the automated test program. 9. The tester clicks play, and the automated test program will imitate the operation steps recorded in the third step and execute automatically. 10. The tester clicks Stop Play to stop the automatic execution of the operation. 11. The tester clicks Export Log to export the system log file to the U disk. 12. The developer checks the log to see if there is any abnormality. 13. When an abnormality is found during the aging process, the playback can be stopped immediately and the log can be exported for analysis by R&D personnel.
[0061] Beneficial effects of the present invention:
[0062] (1) The present invention allows the machine to repeat the automatic test 24 hours a day by recording once until a problem occurs, which greatly improves the test intensity and saves human resources.
[0063] (2) The present invention records a script and copies it to many machines for automatic testing, which greatly saves human resources.
[0064] (3) The scripts executed in the present invention do not need to be monitored all the time, and the test can be automatically performed 24 hours a day, thereby improving the test intensity and saving human resources.
[0065] Furthermore, if Figure 5 As shown, based on the above-mentioned automated testing method based on Android vehicle machine, the present invention also provides an automated testing system based on Android vehicle machine, wherein the automated testing system based on Android vehicle machine includes:
[0066] An operation recording module 51 is used to obtain the operation steps of the tester on the Android vehicle machine, and record the operation steps according to a custom file format to obtain an operation file record;
[0067] The operation playback module 52 is used to read the operation file records in sequence through an automated test program to obtain information of multiple operation nodes when the operation interface of the Android vehicle machine starts to play the operation steps;
[0068] The operation execution module 53 is used to test the information of each operation node according to the automated test program and obtain a test result.
[0069] Furthermore, if Figure 6 As shown, based on the above-mentioned automated testing method and system based on Android vehicle computer, the present invention also provides a vehicle computer accordingly, and the vehicle computer includes a processor 10, a memory 20 and a display 30. Figure 6 Only some components of the vehicle computer are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0070] In some embodiments, the memory 20 may be an internal storage unit of the vehicle computer, such as a hard disk or memory of the vehicle computer. In other embodiments, the memory 20 may also be an external storage device of the vehicle computer, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the vehicle computer. Further, the memory 20 may also include both an internal storage unit of the vehicle computer and an external storage device. The memory 20 is used to store application software and various types of data installed on the vehicle computer, such as the program code of the installed vehicle computer. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, an automated test program 40 based on an Android vehicle computer is stored on the memory 20, and the automated test program 40 based on an Android vehicle computer can be executed by the processor 10, thereby realizing the automated test method based on an Android vehicle computer in this application.
[0071] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the automated testing method based on the Android car machine.
[0072] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the vehicle computer and to display a visual user interface. The vehicle computers communicate with each other via a system bus.
[0073] In one embodiment, when the processor 10 executes the automated test program 40 based on the Android vehicle machine in the memory 20, the following steps are implemented:
[0074] Obtain the tester's operation steps for the Android car machine, record the operation steps according to a custom file format, and obtain an operation file record;
[0075] When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file records are read in sequence through the automated test program to obtain information of multiple operation nodes;
[0076] The information of each operation node is tested according to the automated testing program, and a test result is obtained.
[0077] The obtaining of the tester's operation steps for the Android vehicle machine and recording the operation steps according to a custom file format to obtain an operation file record specifically includes:
[0078] Capture the tester's click, slide and drag commands on the Android car machine based on the system's monitoring function;
[0079] The click instruction, the slide instruction and the drag instruction are recorded according to an XML file in a custom file format to obtain an operation file record.
[0080] Among them, when the operation interface of the Android car machine starts to play the operation steps, the operation file records are read in sequence through the automated test program to obtain information of multiple operation nodes, specifically including:
[0081] When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file record is extracted through an automated test program to obtain the occurrence time and time interval of the information of multiple operation nodes;
[0082] The information of each operation node is sorted according to the occurrence time and the time interval to obtain a plurality of target operation records.
[0083] The step of testing the information of each operation node according to the automated testing program and obtaining the test result specifically includes:
[0084] Calling the system interface according to the automated testing program;
[0085] The touch operation corresponding to each target operation record is tested based on the system interface, and a test result is obtained.
[0086] The step of testing the information of each operation node according to the automated testing program and obtaining a test result further includes:
[0087] When the stop play button of the operation interface of the Android vehicle machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain a test analysis result.
[0088] Wherein, when the stop play button of the operation interface of the Android vehicle machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain the test analysis result, and then it also includes:
[0089] Determining whether the test analysis result is abnormal;
[0090] If the test analysis result is abnormal, the test analysis result is analyzed abnormally, the abnormal reason is generated, and the abnormal reason is sent to the tester;
[0091] The exception cause includes any one of a null pointer, an IO exception, a null class name, an array out of bounds, and insufficient memory.
[0092] The XML file includes screen coordinates, occurrence time and duration.
[0093] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automated testing program based on an Android vehicle machine, and when the automated testing program based on an Android vehicle machine is executed by a processor, the steps of the automated testing method based on an Android vehicle machine as described above are implemented.
[0094] In summary, the present invention provides an automated testing method, system and vehicle based on an Android vehicle, the method comprising: obtaining the operating steps of the tester on the Android vehicle, recording the operating steps according to a custom file format, and obtaining an operation file record; when the operation interface of the Android vehicle starts to play the operating steps, the operation file record is read in sequence by an automated testing program to obtain information of multiple operation nodes; the information of each operation node is tested according to the automated testing program, and the test results are obtained. The present invention records the operating steps of the tester on the Android vehicle, reads and tests each operation node in sequence by an automated testing program, obtains the test results, improves the test efficiency and accuracy of the Android vehicle, ensures comprehensive coverage of the operating steps, facilitates rapid discovery and repair of problems, and improves product quality.
[0095] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or vehicle system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or vehicle system. In the absence of further restrictions, an element defined by the sentence "includes a..." does not exclude the existence of other identical elements in the process, method, article or vehicle system including the element.
[0096] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0097] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. An automated testing method based on Android vehicle computer, characterized in that: The automated testing method based on Android vehicle machine includes: Obtain the tester's operation steps for the Android car machine, record the operation steps according to a custom file format, and obtain an operation file record; When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file records are read in sequence through the automated test program to obtain information of multiple operation nodes; The information of each operation node is tested according to the automated testing program, and a test result is obtained.
2. The automated testing method based on Android vehicle machine according to claim 1, characterized in that: The step of obtaining the operation steps of the tester on the Android vehicle machine and recording the operation steps according to a custom file format to obtain the operation file record specifically includes: Based on the system monitoring function, the tester's click instructions, sliding instructions and dragging instructions on the Android car machine are captured; The click instruction, the slide instruction and the drag instruction are recorded according to an XML file in a custom file format to obtain an operation file record.
3. The automated testing method based on Android vehicle machine according to claim 1, characterized in that: When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file records are read in sequence through the automated test program to obtain information of multiple operation nodes, specifically including: When the operation interface of the Android vehicle machine starts to play the operation steps, the operation file record is extracted through an automated test program to obtain the occurrence time and time interval of the information of multiple operation nodes; The information of each operation node is sorted according to the occurrence time and the time interval to obtain a plurality of target operation records.
4. The automated testing method based on Android vehicle machine according to claim 3 is characterized in that: The step of testing the information of each operation node according to the automated testing program and obtaining the test result specifically includes: Calling the system interface according to the automated testing program; The touch operation corresponding to each target operation record is tested based on the system interface, and a test result is obtained.
5. The automated testing method based on Android vehicle machine according to claim 1, characterized in that: The step of testing the information of each operation node according to the automated testing program and obtaining a test result further includes: When the stop play button of the operation interface of the Android vehicle machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain a test analysis result.
6. The automated testing method based on Android vehicle machine according to claim 5 is characterized in that: When the stop play button of the operation interface of the Android vehicle machine is clicked, a log file is generated according to the information of each operation node, and the log file is analyzed to obtain the test analysis result, and then it also includes: Determining whether the test analysis result is abnormal; If the test analysis result is abnormal, the test analysis result is analyzed abnormally, the abnormal reason is generated, and the abnormal reason is sent to the tester; The exception cause includes any one of a null pointer, an IO exception, a null class name, an array out of bounds, and insufficient memory.
7. The automated testing method based on Android vehicle machine according to claim 2 is characterized in that: The XML file includes screen coordinates, occurrence time and duration.
8. An automated testing system based on Android vehicle computer, characterized in that: The automated testing system based on Android vehicle includes: An operation record module is used to obtain the tester's operation steps on the Android car machine, record the operation steps according to a custom file format, and obtain an operation file record; An operation playback module, used to read the operation file records in sequence through an automated test program to obtain information of multiple operation nodes when the operation interface of the Android vehicle machine starts to play the operation steps; The operation execution module is used to test the information of each operation node according to the automated test program and obtain the test result.
9. A vehicle computer, characterized in that: The vehicle computer includes: a memory, a processor, and an automated testing program based on an Android vehicle computer stored in the memory and executable on the processor. When the automated testing program based on an Android vehicle computer is executed by the processor, the steps of the automated testing method based on an Android vehicle computer as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an automated testing program based on an Android vehicle machine. When the automated testing program based on an Android vehicle machine is executed by a processor, the steps of the automated testing method based on an Android vehicle machine as described in any one of claims 1 to 7 are implemented.