Android APP stability test method and device, electronic equipment and medium

By configuring the ADB environment and using Monkey tools for stress testing, the problem of low testing efficiency and accuracy of Android APP in the existing technology is solved, automated stability testing is achieved, and testing efficiency and accuracy is improved.

CN119088698APending Publication Date: 2024-12-06IOL WUHAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411199851.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The prior art requires manual participation when testing Android APPs, resulting in low testing efficiency and accuracy.

Method used

By configuring the Android debugging bridge ADB environment, establish an ADB connection between the PC side of the personal computer and the Android device side, install the target application APP to be tested on the Android device side, use the Monkey tool to perform stress testing on the target APP, obtain the test log, and use the log to Conduct abnormal problems diagnosis and generate a stability test report.

Benefits of technology

The automated testing of Android APP has been realized, which improves the testing efficiency and accuracy and avoids manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088698A_ABST
    Figure CN119088698A_ABST
Patent Text Reader

Abstract

The invention provides an Android APP stability testing method and device, electronic equipment and a medium, and belongs to the technical field of application test.The method comprises the steps that an Android debugging bridge ADB environment is configured, ADB connection between a personal computer PC end and an Android equipment end is established, and a to-be-tested target APP is installed on the Android equipment end; starting an activity of the target APP, and performing a pressure test on the target APP by adopting a Monkey tool to obtain a test log of the target APP; and performing abnormal problem diagnosis based on the test log to obtain a stability test report of the target APP. According to the method, the stability of the Android APP can be automatically tested, manual intervention is avoided, and the testing efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of application program testing, and in particular to a stability testing method, device, electronic device and medium for an Android APP. Background Art

[0002] With the rapid development of mobile Internet, applications (APP) have become an indispensable part of users' daily lives, and their stability is directly related to user satisfaction and brand image. Therefore, it is necessary to conduct stability testing on APP to discover and solve potential problems of APP and provide data support for subsequent version iteration and optimization. At present, manual participation is required in the process of testing APP, and the testing efficiency and accuracy are low. Summary of the invention

[0003] The present invention provides a stability testing method, device, electronic device and medium for an Android APP, so as to solve the defects of the prior art that manual participation is required in the process of testing the APP, and the testing efficiency and accuracy are low.

[0004] In a first aspect, the present invention provides a stability testing method for an Android APP, comprising: Configure the Android Debug Bridge ADB environment, establish an ADB connection between the personal computer PC and the Android device, and install the target application APP to be tested on the Android device; Start the activity of the target APP, use the Monkey tool to perform stress testing on the target APP, and obtain the test log of the target APP; Based on the test log, abnormal problem diagnosis is performed to obtain a stability test report of the target APP.

[0005] In some embodiments, the activity of starting the target APP uses the Monkey tool to perform a stress test on the target APP, including: Use the first ADB command to start the target app's activity; Determine the test requirements of the target APP, configure the basic parameters of the Monkey tool according to the test requirements, and use the configured Monkey tool to perform stress testing on the target APP; The basic parameters include the name of the APP package to be tested, the detail level of the test log and the random seed.

[0006] In some embodiments, the abnormal problem diagnosis based on the test log includes: Determine whether there is error information in the test log, and if so, locate the error according to the error information; Check the activity switching information in the test log to determine the switching process between the two activities before the error occurs; According to the switching process between the two activities, the events before the error occurs are simulated to reproduce the error and determine the cause of the error.

[0007] In some embodiments, the abnormal problem diagnosis based on the test log includes: Based on the test log, determine whether the target APP has an application unresponsiveness (ANR) error during operation, and if so, determine the time-consuming operation corresponding to the target APP; Based on the test information, determine whether the target APP crashes during operation, and if so, determine the cause of the crash of the target APP.

[0008] In some embodiments, the abnormal problem diagnosis based on the test log includes: Find the garbage collection GC log from the test log; According to the GC log, determine whether the target APP has a memory leak. If so, use the Monkey tool to generate a memory snapshot of the target APP, and determine the cause of the memory leak of the target APP based on the memory snapshot.

[0009] In some embodiments, configuring an Android debug bridge ADB environment, establishing an ADB connection between a personal computer PC and an Android device, and installing a target application APP to be tested on the Android device includes: Enable the USB debugging mode of the Android device and establish an ADB connection between the personal computer PC and the Android device; Run the second ADB command to obtain the serial number and status information of the Android device, and confirm that the Android device is connected to the PC. The target APP to be tested is installed on the Android device using the third ADB command.

[0010] In a second aspect, the present invention further provides a stability testing device for an Android APP, comprising: A configuration unit is used to configure an Android debug bridge ADB environment, establish an ADB connection between a personal computer PC and an Android device, and install a target application APP to be tested on the Android device; The testing unit is used to start the activity of the target APP, use the Monkey tool to perform stress testing on the target APP, and obtain the test log of the target APP; The diagnostic unit is used to diagnose abnormal problems based on the test log and obtain a stability test report of the target APP.

[0011] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the stability testing method of an Android APP as described in any one of the above is implemented.

[0012] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the stability testing method for an Android APP as described in any one of the above.

[0013] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the above-mentioned methods for testing the stability of an Android APP.

[0014] The stability testing method, device, electronic device and medium of Android APP provided by the present invention configure the Android debug bridge ADB environment, establish an ADB connection between a personal computer PC and an Android device, install a target application APP to be tested on the Android device, start the activity Activity of the target APP, use the Monkey tool to perform a stress test on the target APP, obtain a test log of the target APP, diagnose abnormal problems based on the test log, and obtain a stability test report of the target APP. The stability of the Android APP can be tested automatically, manual intervention is avoided, and the efficiency and accuracy of the test are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a structural schematic diagram of a stability testing system for an Android APP provided by an embodiment of the present invention; Figure 2 It is a flow chart of a stability testing method for an Android APP provided by an embodiment of the present invention; Figure 3It is a structural schematic diagram of a stability testing device for an Android APP provided by an embodiment of the present invention; Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] The terms "first", "second", etc. in the description of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0019] Figure 1 This is a schematic diagram of the structure of the stability test system of the Android APP provided by the embodiment of the present invention. Figure 1 As shown, a stability test system for an Android APP is provided, including a personal computer (PC) side and an Android device side, the PC side and the Android device side are connected via an Android Debug Bridge (ADB), multiple APPs are installed on the Android device side, and the Android device side is configured with a Monkey tool.

[0020] Optionally, the Android device is used to run adbd, which is a background process of ADB.

[0021] Figure 2 The following is a flow chart of a stability testing method for an Android APP provided by an embodiment of the present invention. Figure 2 As shown, a stability test method for an Android APP is provided, which is applied to Figure 1 The stability testing system of the Android APP shown includes the following steps: step 210, step 220, and step 230. The steps of the method flow are only used as a possible implementation mode of the present invention.

[0022] Step 210: configure the Android Debug Bridge ADB environment, establish an ADB connection between the personal computer PC and the Android device, and install the target application APP to be tested on the Android device.

[0023] Among them, ADB is a command line tool used for debugging and management of Android devices, which can help developers communicate and control Android devices through personal computers.

[0024] Optionally, ADB includes the following three parts: 1) Client running on the PC, used to install, uninstall and debug Android applications; 2) Service running on the PC, used to manage the ADB connection between the PC and the Android device; 3) ADB background process running on the Android device.

[0025] Optionally, an ADB connection can be established between the PC and multiple Android devices to implement stability testing of multiple target apps on multiple Android devices.

[0026] Optionally, add "D:\android-sdk-windows\platform-tools;D:\android-sdk-windows\tools" under the Path directory.

[0027] In some embodiments, configuring an Android debug bridge ADB environment, establishing an ADB connection between a personal computer PC and an Android device, and installing a target application APP to be tested on the Android device include: Enable USB debugging mode on the Android device and establish an ADB connection between the PC and the Android device; Run the second ADB command to obtain the serial number and status information of the Android device and confirm that the Android device is connected to the PC. Use the third ADB command to install the target APP to be tested on the Android device.

[0028] Optionally, an ADB connection is established between the personal computer PC and the Android device via a USB data cable.

[0029] Optionally, use the "adb devices" command to obtain the serial number of the Android device.

[0030] Optionally, use the "adb get-state" command to obtain the status information of the Android device.

[0031] Optionally, the status information includes device (the device is connected normally), offline (the connection is abnormal and the device is unresponsive), and unknown (the device is not connected).

[0032] Optionally, obtain the status information of the Android device to determine whether it is connected normally. If so, confirm that the Android device and the PC are connected. If not, reconnect the Android device, obtain the status information of the Android device, and determine whether it is connected normally until it is confirmed that the Android device and the PC are connected.

[0033] Optionally, use the "adb install" command to install the target APP to be tested on the Android device.

[0034] Optionally, use the "adb shell pm list package" command to view all installation packages on the Android device; use the "adb shell pm list package -3" command to view third-party installation packages on the Android device; use the "pm set-install-location" command to set the installation location of the target APP; use the "pm get-install-location" command to obtain the installation location of the target APP.

[0035] Step 220: Start the activity of the target APP, use the Monkey tool to perform stress testing on the target APP, and obtain the test log of the target APP.

[0036] Among them, the Monkey tool tests the stability and performance of the APP by automatically generating a large number of random user events (such as clicks, slides, etc.), which helps to discover problems that may occur in the APP under high-load conditions.

[0037] Among them, Activity represents a separate screen in the user interface. Each Activity is usually used to handle specific user interactions and display corresponding content. For example, the login interface, main menu, and settings interface are all different Activities.

[0038] It should be noted that the Android system organizes Activities in task stacks, which allows users to switch between different Activities and restore to the previous state when the APP is restarted.

[0039] In some embodiments, the activity of the target APP is started, and the Monkey tool is used to perform a stress test on the target APP, including: Use the first ADB command to start the target app's activity; Determine the test requirements of the target app, configure the basic parameters of the Monkey tool according to the test requirements, and use the configured Monkey tool to perform stress testing on the target app; Among them, the basic parameters include the package name of the APP to be tested, the detailed level of the test log, and the random seed.

[0040] Optionally, the basic parameters further include the proportion of touch events, the proportion of motion events, the proportion of trackball events, the proportion of application switching events, and the event interval time.

[0041] Optionally, use the command "adb shell am start -n <package name> / <Activity name>" to start the activity of the target APP.

[0042] Optionally, use the command "adb shell monkey -p <package name> -v <log level> --throttle <interval time> --seed <random seed> <number of events>" to perform a stress test on the target APP.

[0043] Step 230: Based on the test log, perform abnormal problem diagnosis to obtain the stability test report of the target APP.

[0044] Optionally, the stability test report of the target APP at least includes: test overview, test environment, test steps, log analysis, problem summary, conclusion, and suggestions.

[0045] Optionally, search for keywords in the test log to obtain key information, and based on the key information, perform abnormal problem diagnosis to obtain the stability test report of the target APP.

[0046] For example, search for the keyword "FATAL EXCEPTION" to locate the crash stack and obtain crash information, and search for the keywords "ERROR" or "Exception" to obtain error information.

[0047] In the embodiments of the present invention, by configuring the Android Debug Bridge (ADB) environment, establishing an ADB connection between the personal computer (PC) side and the Android device side, installing the target application program (APP) to be tested on the Android device side, starting the activity of the target APP, using the Monkey tool to perform a stress test on the target APP to obtain the test log of the target APP, and based on the test log, performing abnormal problem diagnosis to obtain the stability test report of the target APP, it is possible to automatically test the stability of the Android APP, avoid manual intervention, and improve the efficiency and accuracy of the test.

[0048] In some embodiments, performing abnormal problem diagnosis based on the test log includes: Determine whether there is error information in the test log. If so, locate the error according to the error information; Check the activity switching information in the test log to determine the switching process between the two activities before the error occurs; According to the switching process between the two activities, simulate the events before the error occurs to reproduce the error and determine the cause of the error.

[0049] Optionally, search the test log for log lines containing error information, record the timestamp of the error and relevant context information.

[0050] Optionally, check the logs generated when reproducing the error to determine whether they match the error information collected previously.

[0051] Optionally, use debugging tools in your development environment to set breakpoints and step through the relevant code to determine the root cause of the error.

[0052] Optionally, fix the problem in the related code according to the cause of the error, and retest to ensure that the error is resolved.

[0053] In some embodiments, abnormal problem diagnosis is performed based on the test log, including: Based on the test log, determine whether the target APP has an application unresponsiveness (ANR) error during operation. If so, determine the time-consuming operation corresponding to the target APP. Based on the test information, determine whether the target APP crashes during operation. If so, determine the cause of the target APP crash.

[0054] Application Not Responding (ANR) is a state in the Android operating system, which means that the application has not responded to user input or other events on the main thread for a long time. ANR is usually caused by the blocking of the main thread.

[0055] For example, if the main thread takes more than 5 seconds to respond, or the Broadcast Receiver does not respond within 10 seconds, ANR is confirmed.

[0056] Optionally, obtain the ANR log from the test log, find the stack trace information of the main thread (usually the main thread) in the ANR log, find the time-consuming operations shown in the stack trace, and identify the specific method or code segment where the main thread is blocked.

[0057] Optionally, obtain crash logs from the test logs, extract exception type and stack trace information from the crash logs, and determine the root cause of the crash.

[0058] In some embodiments, abnormal problem diagnosis is performed based on the test log, including: Find the garbage collection GC log from the test log; According to the GC log, determine whether the target app has a memory leak. If so, use the Monkey tool to generate a memory snapshot of the target app. Based on the memory snapshot, determine the cause of the target app's memory leak.

[0059] Among them, garbage collection (GC) refers to the automatic recycling of unused memory resources in computer programming to prevent memory leaks and optimize program performance; different programming languages ​​and platforms have different garbage collection mechanisms, such as Java, .NET, and Python.

[0060] Among them, memory snapshot refers to a complete record of the computer's memory status at a specific point in time. It is used to analyze and debug the memory usage of the APP. It can help understand the memory allocation and usage of the APP at runtime, identify memory leaks, and optimize performance.

[0061] Optionally, the memory snapshot includes a heap memory snapshot (recording all objects in the heap memory and their reference relationships) and a stack memory snapshot (recording the call stack of the thread).

[0062] It is understandable that by analyzing the test logs and diagnosing abnormal problems such as errors in the target APP, application unresponsiveness ANR, crashes, etc., the comprehensiveness and accuracy of the test can be improved.

[0063] The stability testing device of an Android APP provided in an embodiment of the present invention is described below. The stability testing device of an Android APP described below and the stability testing method of an Android APP described above can be referred to each other.

[0064] Figure 3 A schematic diagram of the structure of the stability testing device for Android APP provided by an embodiment of the present invention, such as Figure 3 As shown, the Android APP stability testing device 300 includes: The configuration unit 310 is used to configure the Android debug bridge ADB environment, establish an ADB connection between the personal computer PC and the Android device, and install the target application APP to be tested on the Android device; The testing unit 320 is used to start the activity of the target APP, use the Monkey tool to perform stress testing on the target APP, and obtain the test log of the target APP; The diagnosis unit 330 is used to diagnose abnormal problems based on the test log and obtain a stability test report of the target APP.

[0065] Optionally, start the activity of the target app and use the Monkey tool to perform stress testing on the target app, including: Use the first ADB command to start the target app's activity; Determine the test requirements of the target app, configure the basic parameters of the Monkey tool according to the test requirements, and use the configured Monkey tool to perform stress testing on the target app; Among them, the basic parameters include the APP package name to be tested, the detail level of the test log and the random seed.

[0066] Optionally, perform abnormal problem diagnosis based on the test log, including: Determine whether there is error information in the test log. If so, locate the error based on the error information. Check the activity switching information in the test log to determine the switching process between the two activities before the error occurs; According to the switching process between the two activities, simulate the events before the error occurs to reproduce the error and determine the cause of the error.

[0067] Optionally, perform abnormal problem diagnosis based on the test log, including: Based on the test log, determine whether the target APP has an application unresponsiveness (ANR) error during operation. If so, determine the time-consuming operation corresponding to the target APP. Based on the test information, determine whether the target APP crashes during operation. If so, determine the cause of the target APP crash.

[0068] Optionally, perform abnormal problem diagnosis based on the test log, including: Find the garbage collection GC log from the test log; According to the GC log, determine whether the target app has a memory leak. If so, use the Monkey tool to generate a memory snapshot of the target app. Based on the memory snapshot, determine the cause of the target app's memory leak.

[0069] Optionally, configure an Android Debug Bridge ADB environment, establish an ADB connection between a personal computer PC and an Android device, and install a target application APP to be tested on the Android device, including: Enable USB debugging mode on the Android device and establish an ADB connection between the PC and the Android device; Run the second ADB command to obtain the serial number and status information of the Android device and confirm that the Android device is connected to the PC. Use the third ADB command to install the target APP to be tested on the Android device.

[0070] It should be noted here that the stability testing device for Android APP provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned Android APP stability testing method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.

[0071] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the stability test method of the Android APP, which includes: configuring the Android debug bridge ADB environment, establishing an ADB connection between the personal computer PC and the Android device, and installing the target application APP to be tested on the Android device; starting the activity Activity of the target APP, using the Monkey tool to perform a stress test on the target APP, and obtaining the test log of the target APP; based on the test log, diagnosing abnormal problems and obtaining a stability test report of the target APP.

[0072] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0073] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the Android APP stability testing method provided by the above methods, which method includes: configuring the Android debug bridge ADB environment, establishing an ADB connection between a personal computer PC and an Android device, and installing a target application APP to be tested on the Android device; starting the target APP's activity Activity, using the Monkey tool to perform a stress test on the target APP, and obtaining a test log of the target APP; based on the test log, diagnosing abnormal problems and obtaining a stability test report of the target APP.

[0074] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the stability testing method of the Android APP provided by the above-mentioned methods, the method comprising: configuring the Android debug bridge ADB environment, establishing an ADB connection between a personal computer PC and an Android device, and installing the target application APP to be tested on the Android device; starting the activity Activity of the target APP, using the Monkey tool to perform a stress test on the target APP, and obtaining a test log of the target APP; based on the test log, diagnosing abnormal problems and obtaining a stability test report of the target APP.

[0075] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A stability testing method for an Android APP, characterized in that: include: Configure the Android Debug Bridge ADB environment, establish an ADB connection between the personal computer PC and the Android device, and install the target application APP to be tested on the Android device; Start the activity of the target APP, use the Monkey tool to perform stress testing on the target APP, and obtain the test log of the target APP; Based on the test log, abnormal problem diagnosis is performed to obtain a stability test report of the target APP.

2. The stability testing method of Android APP according to claim 1, characterized in that: The activity of the target APP is started, and the Monkey tool is used to perform stress testing on the target APP, including: Use the first ADB command to start the target app's activity; Determine the test requirements of the target APP, configure the basic parameters of the Monkey tool according to the test requirements, and use the configured Monkey tool to perform stress testing on the target APP; The basic parameters include the name of the APP package to be tested, the detail level of the test log and the random seed.

3. The stability testing method of Android APP according to claim 1, characterized in that: The abnormal problem diagnosis based on the test log includes: Determine whether there is error information in the test log, and if so, locate the error according to the error information; Check the activity switching information in the test log to determine the switching process between the two activities before the error occurs; According to the switching process between the two activities, the events before the error occurs are simulated to reproduce the error and determine the cause of the error.

4. The stability testing method of Android APP according to claim 1, characterized in that: The abnormal problem diagnosis based on the test log includes: Based on the test log, determine whether the target APP has an application unresponsiveness (ANR) error during operation, and if so, determine the time-consuming operation corresponding to the target APP; Based on the test information, determine whether the target APP crashes during operation, and if so, determine the cause of the crash of the target APP.

5. The stability testing method of Android APP according to claim 1, characterized in that: The abnormal problem diagnosis based on the test log includes: Find the garbage collection GC log from the test log; According to the GC log, determine whether the target APP has a memory leak. If so, use the Monkey tool to generate a memory snapshot of the target APP, and determine the cause of the memory leak of the target APP based on the memory snapshot.

6. The stability testing method of Android APP according to claim 1, characterized in that: The configuration of the Android debug bridge ADB environment, establishing an ADB connection between a personal computer PC and an Android device, and installing a target application APP to be tested on the Android device include: Enable the USB debugging mode of the Android device and establish an ADB connection between the personal computer PC and the Android device; Run the second ADB command to obtain the serial number and status information of the Android device, and confirm that the Android device is connected to the PC. The target APP to be tested is installed on the Android device using the third ADB command.

7. A stability testing device for an Android APP, characterized in that: include: A configuration unit is used to configure an Android debug bridge ADB environment, establish an ADB connection between a personal computer PC and an Android device, and install a target application APP to be tested on the Android device; The testing unit is used to start the activity of the target APP, use the Monkey tool to perform stress testing on the target APP, and obtain the test log of the target APP; The diagnostic unit is used to diagnose abnormal problems based on the test log and obtain a stability test report of the target APP.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the stability testing method of the Android APP as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the stability testing method of the Android APP as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the stability testing method of the Android APP as described in any one of claims 1 to 6 is implemented.