Test method, device and electronic equipment

By running the process management program on the terminal device, starting the application in turn and collecting status and log information, the problems of high resource occupation and inaccurate testing in the existing technology are solved, more accurate and comprehensive test results are achieved, and process management is optimized Strategy.

CN112380088BActive Publication Date: 2024-12-06DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011243113.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-12-06
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

The prior art is difficult to effectively manage and test application processes in terminal equipment, resulting in excessive resource utilization, inaccurate test results, and lack of automated and comprehensive testing methods.

Method used

It provides a test method and device, by running a process management program, launching a preset number of applications in turn, collecting terminal status information and log information, and generating test results of process management programs, for adjusting and optimizing process management strategies.

Benefits of technology

Improve the accuracy and comprehensiveness of the test, can automatically start the application, record terminal status and log information, change the number of application processes in execution, enable the process management program to play its role, improve the accuracy of the test results, and use it to adjust process management Strategy to optimize resource usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112380088B_ABST
    Figure CN112380088B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose a test method, device, and electronic device. A specific implementation of the method is applied to a terminal device, and a specific implementation of the method includes: running a process management program, wherein the process management program is used to manage established application processes; executing an application startup operation, and collecting a first predefined type of terminal status information based on the application startup operation, wherein the application startup operation can be used to start a preset number of applications in sequence, and the first predefined type of status information is used to indicate the running status of the terminal; obtaining a second predefined type of log information of the terminal, wherein the second predefined type of log information is used to record the historical action information of the terminal based on the process management program and the application startup operation, wherein the acquired status information and the acquired log information are used to generate the test results of the process management program. Thus, a new testing method is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a testing method, device and electronic equipment. Background Art

[0002] With the development of the Internet, users are increasingly using the functions of terminal devices to make work and life more convenient. As the functions of application programs gradually become richer, users may install multiple applications on their terminals. The operation of these applications will occupy various resources on the terminal, such as computing resources, communication resources, etc. Summary of the invention

[0003] This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, an embodiment of the present disclosure provides a testing method, which is applied to a terminal device, and the method comprises: running a process management program, wherein the process management program is used to manage established application processes; executing an application startup operation, and collecting a first predefined type of status information of the terminal based on the application startup operation, wherein the application startup operation can be used to start a preset number of applications in sequence, and the first predefined type of status information is used to indicate the running status of the terminal; obtaining a second predefined type of log information of the terminal, wherein the second predefined type of log information is used to record historical action information of the terminal based on the process management program and the application startup operation, wherein the obtained status information and the obtained log information are used to generate a test result of the process management program.

[0005] In a second aspect, an embodiment of the present disclosure provides a testing device, which is applied to a terminal device, and the device includes: an operating unit, which is used to run a process management program, wherein the process management program is used to manage established application processes; a starting unit, which is used to execute an application startup operation, and to collect a first predefined type of status information of the terminal based on the application startup operation, wherein the application startup operation can be used to start a preset number of applications in sequence, and the first predefined type of status information is used to indicate the running status of the terminal; an acquisition unit, which is used to acquire a second predefined type of log information of the terminal, wherein the second predefined type of log information is used to record historical action information of the terminal based on the process management program and the application startup operation, wherein the acquired status information and the acquired log information are used to generate a test result of the process management program.

[0006] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect or the second aspect.

[0007] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect or the second aspect.

[0008] The test method provided by some embodiments of the present disclosure can start a preset number of applications in sequence during the process of running the process management program, collect the first predefined type of terminal status information, and collect the second predefined type of terminal log information during the process of running the process management program and starting the applications in sequence; the collected log information and the collected status information can be used to generate the test results of the process management program. Thus, a new test method can be provided, which can automatically start a preset number of applications and record the terminal status information and log information for generating test results. Therefore, during the operation of the process management program, the number of application processes in execution can be changed, so that the process management program can fully play its role and reflect its characteristics, thereby improving the accuracy and comprehensiveness of the test and the accuracy of the generated test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0010] Figure 1 is a flow chart of an embodiment of a testing method according to the present disclosure;

[0011] Figure 2 is a schematic diagram of an exemplary application scenario according to the present disclosure;

[0012] Figure 3 is a schematic diagram of another exemplary application scenario according to the present disclosure;

[0013] Figure 4 is a schematic structural diagram of an embodiment of a testing device according to the present disclosure;

[0014] Figure 5 is a system architecture diagram in which an embodiment of the present disclosure can be applied;

[0015] Figure 6It is a schematic diagram of the basic structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0017] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0018] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0022] Please refer to Figure 1 , which shows the process of an embodiment of the test method according to the present disclosure. The test method is applied to the terminal device. Figure 1 The test method shown comprises the following steps:

[0023] Step 101, running the process management program.

[0024] In this embodiment, the execution subject of the test method (such as a terminal device) may run a process management program.

[0025] Here, the process management program is used to manage the established application processes.

[0026] Typically, when an application is started, a process can be created. In this process, a main thread can be created to start executing tasks within the application. As an example, the Android system can retain processes as much as possible. As an example, when an instant messaging application is opened, a process is created (and a main thread is created at the same time), and then various contents are loaded (first the activity, then various controls, etc.). When the user completes the operation, they generally press the back key until they exit the program.

[0027] Understandably, in general, users keep pressing the back button in the hope that the application will be closed. However, in fact, this only closes the interface (activity), and most application processes will remain, occupying memory for background tasks. The process is generated when the application is started, but it is often not closed when the user closes it.

[0028] In other words, the user performs a closing operation, and the terminal appears to close the application, but in fact the application is still running in the background. Therefore, a process management program for the application process can be set to perform background task management.

[0029] In some application scenarios, the system will classify processes into several levels according to the importance of the application. The least important processes will be closed first, and relatively important processes will be retained with resources (such as main memory).

[0030] Step 102: Execute an application startup operation, and collect a first predefined type of terminal status information based on the application startup operation.

[0031] In this embodiment, the execution subject may execute an application startup operation, and collect a first predefined type of terminal status information based on the application startup operation.

[0032] Here, the above application startup operation can be used to start a preset number of applications in sequence.

[0033] Here, starting in sequence may refer to starting the preset number of applications in at least two batches. As an example, starting in sequence may include starting one by one.

[0034] In some application scenarios, there is no limit on the interval between the startup of adjacent applications.

[0035] In some application scenarios, there is no restriction on the startup order of a preset number of applications.

[0036] Here, the specific value of the preset number can be set according to the actual application scenario and is not limited here. As an example, the preset number can be 30 or 50.

[0037] Here, the terminal may pre-install a preset number of applications. It is understandable that the name or type of the specific application installed in the terminal may be set according to the actual application scenario and is not limited here.

[0038] In this embodiment, collecting the first predefined type of terminal status information based on the application startup operation may include collecting the status information during the application startup operation.

[0039] Here, the number and time of collecting status information can be set according to the actual application scenario and are not limited here.

[0040] Here, the first predefined type of status information may be used to indicate the operating status of the terminal.

[0041] In this embodiment, the specific type of the first predefined type of status information can be set according to actual application scenarios and is not limited here.

[0042] In some application scenarios, the above-mentioned first predefined type of status information may include but is not limited to at least one of the following: memory usage information, central processing unit (CPU) occupancy rate, power, motherboard temperature, frame rate, number of processes, number of running applications, and number of frozen application processes.

[0043] Here, the memory usage information may indicate the remaining capacity of the memory.

[0044] Here, the CPU occupancy rate may indicate the occupancy rate of the CPU.

[0045] Here, the above power level may indicate the remaining power of the terminal.

[0046] Here, the above-mentioned mainboard temperature may indicate the temperature of the mainboard on the terminal.

[0047] Here, the frame rate may indicate the number of frames refreshed per second on the terminal display screen.

[0048] Here, the above-mentioned number of processes may indicate the number of running processes.

[0049] Here, the number of running applications may indicate the number of applications in a surviving state.

[0050] Here, the number of application processes in the frozen state may indicate the number of application processes in the frozen state.

[0051] Step 103: Obtain log information of a second predefined type of the terminal.

[0052] In this embodiment, the execution subject may obtain log information of a second predefined type of the terminal.

[0053] In this embodiment, the second predefined type of log information can be used to record the historical action information of the terminal based on the process management program and the application startup operation. In other words, the terminal can perform several actions based on the process management program and the application startup operation, and the second predefined type of log information can record the actions of the terminal in the process of the process management program and the application startup operation.

[0054] In this embodiment, the specific type of the second predefined type of log information can be set according to the actual application scenario and is not limited here.

[0055] In some application scenarios, the second predefined type of log information may include but is not limited to at least one of the following: system log (adb log), kernel log (Kernel log), read-write log.

[0056] Here, the above system log can record system-level actions.

[0057] Here, the above kernel log can record kernel-level actions.

[0058] Here, the read-write log may also be referred to as read-write status information (IO status information), which is used to record read-write actions.

[0059] In this embodiment, the acquired state information and the acquired log information can be used to generate the test result of the process management program.

[0060] Here, the above test results may be generated by the above execution subject, or by other electronic devices other than the above execution subject, or may be given by a staff member.

[0061] Here, the test result can be used to indicate the effect of the process management program. The test result includes various parameter values. As an example, the test result can include the duration of high CPU occupancy, temperature slope, CPU usage variance, etc.

[0062] As an example, high CPU usage may refer to a situation where the CPU usage is greater than 80%. The duration of high CPU usage may refer to the duration of continuous occurrence of the high CPU usage.

[0063] It should be noted that the parameters used to characterize the effect of the process management program in the test results can be set according to the actual application scenario and are not limited here.

[0064] It should be noted that the test method provided in this embodiment can start a preset number of applications in sequence during the process of running the process management program, collect the first predefined type of terminal status information, and collect the second predefined type of terminal log information during the process of running the process management program and starting the applications in sequence; the collected log information and the collected status information can be used to generate the test results of the process management program. Thus, a new test method can be provided, which can automatically start a preset number of applications and record the terminal status information and log information for generating test results. Therefore, during the operation of the process management program, the number of application processes in execution can be changed, so that the process management program can fully play its role and reflect its characteristics, thereby improving the accuracy and comprehensiveness of the test and the accuracy of the generated test results.

[0065] In some embodiments, the above test results can be used to adjust the process management program.

[0066] Here, you can pre-set an analysis program for analyzing the test results, and you can also set the corresponding relationship between each indicator and the management method in the process management program. The analysis program can analyze the indicators with poor performance in the test results. Then, you can adjust the management method corresponding to the poor indicator.

[0067] As an example, the test result includes the duration of high CPU usage. If the duration of high CPU usage is greater than a preset duration threshold, the number of applications closed in the process manager can be increased. In other words, if the duration of high CPU usage is long, more applications can be closed so that the CPU usage can be quickly reduced after it is too high, and the duration of high CPU usage is shortened.

[0068] It should be noted that the electronic device that performs the adjustment and management program based on the test results may be the same as or different from the above-mentioned execution subject.

[0069] It should be noted that by adjusting the process management program according to the above test results, the rationality of the process management strategy can be evaluated as a whole and then improved, thereby improving the effectiveness of process management.

[0070] In some embodiments, the startup order of the above-mentioned preset number of applications can be determined according to the order indicated by the preset application identification sequence.

[0071] Here, the application identification sequence is determined based on historical application startup information.

[0072] Here, the historical application opening information may include the types and quantities of applications opened by the user. The user may be a massive user.

[0073] As an example, the applications indicated by the application identifiers in the application identifier sequence may be high-frequency applications with the top 50 activation frequencies extracted by statistical big data statistics (derived from information reported with user consent) and combined with user feedback.

[0074] Here, the order in the above application identification sequence may be determined by counting the order in which each application is opened by the user.

[0075] It should be noted that by determining the startup order of the above-mentioned preset number of applications according to the order indicated by the preset application identification sequence, the application types and startup order can be kept as consistent as possible with the actual user usage process during the test process, thereby improving the consistency between the test process and the actual usage process, thereby improving the accuracy of the test.

[0076] In some embodiments, the first predefined type of status information includes at least one of the following: memory usage information, CPU occupancy, power, motherboard temperature, frame rate, number of processes, number of running applications, number of frozen application processes;

[0077] In some embodiments, the predefined log information includes at least one of the following: system log, kernel log, read-write log.

[0078] It should be noted that by judging the rationality of mobile phone management strategies through multi-dimensional data trends, single-point testing can be upgraded to three-dimensional testing, and all information can be obtained in one operation, thus doubling the efficiency.

[0079] In some embodiments, step 102 may include: collecting the first predefined type of status information after a first preset time period each time after the application is started.

[0080] As an example, the above application startup operation may include sequentially starting application A, application B, and application C. After starting application A, a predefined type of state may be recorded after a first preset time (e.g., 3 seconds); after starting application B, a predefined type of state may be recorded after a first preset time (e.g., 3 seconds); after starting application C, a predefined type of state may be recorded after a first preset time (e.g., 3 seconds).

[0081] It should be noted that by recording the terminal status information after each application is started, the terminal status information can be collected in a timely manner based on the application startup as a benchmark, and as the number of application processes opened increases, the terminal status change process can be determined through timely collected status information, thereby improving the accuracy of the test results.

[0082] In some embodiments, the method further includes: clearing log information of a second predefined type before executing the application startup operation; and obtaining log information of the second predefined type after a second preset time period after the application startup operation is completed.

[0083] As an example, the terminal may first clear the log information of the second predefined type, and then perform the application startup operation. After the application startup operation is completed, the terminal may turn off the screen and wait for a second preset time (e.g., 30 minutes) to obtain the log information of the second predefined type again. In this way, the interference of the remaining log information before the application startup operation can be eliminated, and the speed and accuracy of generating test results based on the log information can be improved.

[0084] In some embodiments, the method further includes: running a preset operation process, wherein the operation process is used to simulate user operations.

[0085] Here, running an operation process for simulating user operations can make the test process more similar to the user's actual use process, thereby improving the accuracy of the test.

[0086] Please refer to Figure 2 , which illustrates the application scenarios of some embodiments of the present disclosure. Figure 2 In the example, the terminal can install 50 applications, execute the test script, and start the test. The test script can perform test preprocessing, for example, automatically read the read and write status information of the terminal, and clear the system log and kernel log. Then, the test script can open these 50 applications in sequence, and each time the application is opened, the terminal status information can be recorded accordingly. After opening the last application, the screen can be turned off and wait for 30 minutes, and then the status information can be obtained again. Finally, the system log, kernel log, and read and write status information can be collected again, thereby completing the test.

[0087] Here, data is obtained every time the test application is started during the test, plus the information before the test and after the application is started and left idle for 30 minutes, for a total of 52 sets of status information.

[0088] In some application scenarios, the same terminal can be used to run different process management programs respectively, and then the status information and log information of each process management program are recorded.

[0089] In some embodiments, the method further includes: obtaining status information and log information corresponding to each of at least two process management programs, and generating first comparison information.

[0090] Here, the first comparison information is used to indicate the difference between the at least two process management programs.

[0091] As an example, the status information and log information can be made into a chart. The differences between different process managers can be determined by the trend of the terminal key status information. For example, when the management policy is not modified, a significant reduction in the available main memory space (FreeRAM) indicates that a memory leak may have occurred during the test; for another example, when the frame rate drops significantly, it indicates that a performance problem has occurred during the test.

[0092] It should be noted that by comparing different process management programs on the same terminal, the differences between the different process management programs can be effectively compared, providing a basis for optimizing the process management programs.

[0093] In some application scenarios, different terminals can be used to run different management policies. It should be noted that the test resources on different terminals are the same.

[0094] In some embodiments, the method further includes: acquiring status information and log information of at least two terminals; and generating second comparison information according to the status information and log information of each terminal.

[0095] Here, the at least two terminals are installed with the same test resources, and each of the at least two terminals is installed with a different process management program.

[0096] Here, the second comparison information is used to indicate the difference between the process management programs running on the at least two terminals.

[0097] As an example, for different process management programs, a statistical curve is drawn based on the CPU usage that changes over time. The difference between the process management programs can be determined based on the stability of the curve.

[0098] As an example, the difference in process management programs may include but is not limited to at least one of the following: a CPU occupancy threshold for triggering management, an application process threshold for triggering management, and the like.

[0099] It should be noted that by executing process management programs on different terminals, not only can the differences between different process management programs be compared and determined, but also the test speed can be improved. In addition, if one of the process management programs is used as the process to be optimized, the optimization direction of the process to be optimized can be determined by referring to other process management programs.

[0100] As an example, see Figure 3 , which shows the test results of the process management programs running on three terminals.

[0101] It should be noted that terminal A, terminal B and terminal C have the same memory size and the same CPU chip model. Figure 32 mainly shows an exemplary scenario in which the available main memory space (in M) is used as a parameter value. Figure 3 The figure shows the available main memory space of different terminals in the following cases: after being turned on and left idle, after starting 30 applications, after starting 50 applications, and after being left idle with the screen off for 30 minutes.

[0102] from Figure 3 It can be seen that the overall management of terminal C is stronger, and the management strategy of terminal C can be assisted by temperature, number of surviving processes, and CPU usage. More detailed background processes can be obtained through log information, such as the temperature rises to 50° during the test, triggering the management mechanism; CPU usage exceeds 200, CPU usage exceeds 10 minutes, triggering the management mechanism; CPU usage exceeds single-core 60, the priority is below the highest priority level, CPU usage exceeds 10 minutes, triggering the management mechanism, etc. In addition, it can be seen that the performance of terminal A and terminal B is not much different during the test, but when the mobile phone starts all applications and stands for half an hour, the available main memory space (FreeRAM) of terminal A is larger, which can be reflected in the smaller number of keep-alive applications. This involves a user experience problem in the management strategy. First of all, it should be clear that high-priority applications (such as instant messaging applications) are kept alive. This needs to be extracted and confirmed from the log information, and then the current management strategy is checked through information comparison to see if there is still room for further optimization. Through the above comparison information, it has a very high guiding value for evaluating the rationality of the overall management strategy of the test machine.

[0103] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a testing device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0104] like Figure 4 As shown, the test device of this embodiment includes: an operation unit 401, a start unit 402 and an acquisition unit 403. The operation unit is used to run a process management program, wherein the process management program is used to manage established application processes; the start unit is used to perform an application startup operation, and to collect a first predefined type of terminal status information based on the application startup operation, wherein the application startup operation can be used to start a preset number of applications in sequence, and the first predefined type of status information is used to indicate the running status of the terminal; the acquisition unit is used to acquire a second predefined type of log information of the terminal, wherein the second predefined type of log information is used to record the historical action information of the terminal based on the process management program and the application startup operation, wherein the acquired status information and the acquired log information are used to generate the test result of the process management program.

[0105] In this embodiment, the specific processing of the running unit 401, the starting unit 402 and the obtaining unit 403 of the test device and the technical effects thereof can be referred to in Figure 1 The relevant descriptions of step 101, step 102 and step 103 in the corresponding embodiment are not repeated here.

[0106] In some embodiments, collecting a first predefined type of terminal status information based on the application startup operation includes: collecting the first predefined type of status information after a first preset time period after each application startup.

[0107] In some embodiments, the device is further used to: clear log information of a second predefined type before executing the application startup operation; and obtain log information of the second predefined type after a second preset time period after the application startup operation is completed.

[0108] In some embodiments, the device is further used to: run a preset operation process, wherein the operation process is used to simulate user operations.

[0109] In some embodiments, the startup order of the preset number of applications is determined according to the order indicated by a preset application identification sequence; wherein the application identification sequence is determined according to historical application startup information.

[0110] In some embodiments, the first predefined type of status information includes at least one of the following: memory usage information, CPU occupancy, power, motherboard temperature, frame rate, number of processes, number of running applications, number of frozen application processes; the predefined log information includes at least one of the following: system log, kernel log, read and write log.

[0111] In some embodiments, the device is further used to: obtain status information and log information corresponding to each of at least two process managers, and generate first comparison information, wherein the first comparison information is used to indicate the difference between the at least two process managers.

[0112] In some embodiments, the device is also used to: obtain status information and log information of at least two terminals, wherein the at least two terminals have the same test resources installed and each of the at least two terminals has a different process management program installed; generate second comparison information based on the status information and log information of each terminal, wherein the second comparison information is used to indicate the differences between the process management programs running on the at least two terminals.

[0113] Please refer to Figure 5 , Figure 5An exemplary system architecture is shown in which the testing method of one embodiment of the present disclosure can be applied.

[0114] like Figure 5 As shown, the system architecture may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0115] The terminal devices 501, 502, and 503 can interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications, such as web browser applications, search applications, and news information applications, can be installed on the terminal devices 501, 502, and 503. The client applications in the terminal devices 501, 502, and 503 can receive user instructions and perform corresponding functions according to the user instructions, such as adding corresponding information to the information according to the user instructions.

[0116] Terminal devices 501, 502, 503 can be hardware or software. When terminal devices 501, 502, 503 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 501, 502, 503 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0117] The server 505 may be a server that provides various services, such as sending test scripts and test resources to terminal devices, receiving status information and log information of terminal devices 501 , 502 , 503 and generating test results.

[0118] It should be noted that the test method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the test device can be set in the terminal devices 501, 502, and 503. In addition, the step of generating the test result in the test method provided in the embodiment of the present disclosure can be executed by a server 505, and accordingly, the test device can be set in the server 505. As an example, the server 505 can also be a terminal device.

[0119] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0120] Reference below Figure 6 , which shows an electronic device (eg, Figure 5 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0121] like Figure 6 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0122] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0123] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0124] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0125] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0126] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0127] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: runs a process management program, wherein the process management program is used to manage established application processes; executes an application startup operation, and collects a first predefined type of status information of the terminal based on the application startup operation, wherein the application startup operation can be used to start a preset number of applications in sequence, and the first predefined type of status information is used to indicate the running status of the terminal; obtains a second predefined type of log information of the terminal, wherein the second predefined type of log information is used to record historical action information of the terminal based on the process management program and the application startup operation, wherein the obtained status information and the obtained log information are used to generate a test result of the process management program.

[0128] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0129] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0130] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, an acquisition unit may also be described as a "unit for acquiring log information".

[0131] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0132] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0133] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0134] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0135] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A testing method, characterized in that: Applied to terminal equipment, including: Running a process management program, wherein the process management program is used to manage established application processes; Executing an application startup operation, and collecting a first predefined type of status information of the terminal based on the application startup operation, wherein the application startup operation is used to sequentially start a preset number of applications, and the first predefined type of status information is used to indicate an operating state of the terminal; Obtaining log information of a second predefined type of the terminal, wherein the log information of the second predefined type is used to record historical action information of the terminal based on the process management program and the application startup operation, wherein the obtained state information and the obtained log information are used to generate a test result of the process management program, and the test result is used to adjust the management mode of the process management program; The collecting of the first predefined type of terminal status information based on the application startup operation includes: collecting the first predefined type of status information after a first preset time period after each application startup.

2. The method according to claim 1, characterized in that The method further comprises: Before executing the application startup operation, clearing log information of a second predefined type; After the application startup operation is completed, after a second preset time period, log information of the second predefined type is obtained.

3. The method according to claim 1, characterized in that: The method further comprises: Run a preset operation process, wherein the operation process is used to simulate a user's operation.

4. The method according to claim 1, characterized in that The startup order of the preset number of applications is determined according to the order indicated by the preset application identification sequence; wherein the application identification sequence is determined according to the historical application startup information.

5. The method according to claim 1, characterized in that in, The first predefined type of status information includes at least one of the following: memory usage information, CPU occupancy rate, power, motherboard temperature, frame rate, number of processes, number of running applications, and number of frozen application processes; The log information includes at least one of the following: system log, kernel log, read-write log.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: First comparison information is generated according to the state information and log information corresponding to each of the at least two process management programs, wherein the first comparison information is used to indicate the difference between the at least two process management programs.

7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Acquire status information and log information of at least two terminals, wherein the at least two terminals have the same test resources installed and run different process management programs; Second comparison information is generated according to the status information and log information of each terminal, wherein the second comparison information is used to indicate the difference between the process management programs running on the at least two terminals.

8. A testing device, characterized in that: Applied to a terminal device, the device comprises: An operating unit, used for operating a process management program, wherein the process management program is used for managing established application processes; a startup unit, configured to execute an application startup operation, and to collect a first predefined type of status information of the terminal based on the application startup operation, wherein the application startup operation is used to sequentially start a preset number of applications, and the first predefined type of status information is used to indicate an operating state of the terminal; an acquisition unit, configured to acquire log information of a second predefined type of the terminal, wherein the log information of the second predefined type is used to record historical action information of the terminal based on the process management program and the application startup operation, wherein the acquired state information and the acquired log information are used to generate a test result of the process management program, and the test result is used to adjust the management mode of the process management program; The collecting of the first predefined type of terminal status information based on the application startup operation includes: collecting the first predefined type of status information after a first preset time period after each application startup.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.