Application program testing method, terminal device, server, and testing system
Through the communication connection between the terminal device and the server, it automatically traverses different versions of the application for functional testing, solving the problem of time-consuming, labor-intensive and error-free testing in the existing technology, and achieving efficient and accurate test data analysis and decision-making support.
Patent Information
- Application Number
- CN202311261686.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-04-08
AI Technical Summary
The prior art is time-consuming and labor-intensive when testing the performance, memory and functions of the set-top box software version, and is prone to errors due to different test environments, affecting the judgment and decision-making of functions and performance improvements.
Through the communication connection between the terminal device and the server, it automatically traverses different versions of the application, uses the installed application to perform functional testing, obtains processor, memory and functional data, and sends the data to the server for display until all the applications to be tested are tested.
Improves testing speed, reduces manual testing errors, and ensures the accuracy of data analysis and the reliability of decision-making.
Smart Images

Figure CN119782131A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and in particular to an application testing method, terminal equipment, server, and application testing system. Background Art
[0002] In the application process of set-top boxes, developers are usually required to continuously update and iterate software or use different software to obtain a version with better performance, memory, functions, etc. A large number of software updates require continuous comparison of whether the updated software version is better than the previous software.
[0003] The existing method is to compare the software versions one by one, or to measure all the data of each version separately and then compare them one by one. This method is time-consuming and labor-intensive, and the different test environments will lead to large errors. The original small performance improvement or difference will be offset by the test error, which will lead to the failure of data analysis and the inability to make judgments and decisions. Therefore, it is easy to affect the function and performance improvement of the set-top box. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide an application testing method, terminal device, server and application testing system, which aims to traverse the version performance, memory, functionality and other data of the application, thereby improving the testing speed and reducing manual testing errors.
[0005] In a first aspect, an embodiment of the present application provides a method for testing an application, which is applied to a terminal device, wherein the terminal device is communicatively connected to a server, and the server has at least two applications to be tested, wherein each of the applications to be tested is formed at a different time, and the method includes:
[0006] Acquire the application to be tested and functional test information from the server, and install the application to be tested;
[0007] Performing a functional test according to the functional test information using the installed application to be tested to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device;
[0008] The test data is sent to the server, and the next application to be tested and the functional test information are obtained from the server for testing until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all the applications to be tested.
[0009] In a second aspect, an embodiment of the present application provides a method for testing an application, which is applied to a server, the server being communicatively connected to a terminal device, and the server having at least two applications to be tested; wherein each of the applications to be tested has a different formation time, and the method comprises:
[0010] In response to a request instruction from the terminal device, the application to be tested and the function test information are sent to the terminal device, so that the terminal device uses the installed application to be tested to perform a function test according to the function test information to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device;
[0011] Receiving the test data sent by the terminal device;
[0012] After all the applications to be tested in the server are tested, data display is performed based on the test data of all the applications to be tested.
[0013] In a third aspect, an embodiment of the present application provides a terminal device, which is used to implement a testing method for an application applied to a terminal device as described in any one of the embodiments of the present application.
[0014] In a fourth aspect, an embodiment of the present application provides a server, which is used to implement a testing method for an application program applied to the server as described in any one of the embodiments of the present application.
[0015] In a fifth aspect, an embodiment of the present application provides a testing system for an application program, the testing system comprising:
[0016] A server, implementing a testing method for an application program applied to a server as described in any one of the embodiments of the present application;
[0017] The terminal device is communicatively connected with the server to implement the testing method for the application program applied to the terminal device as described in any one of the embodiments of the present application.
[0018] The embodiment of the present application provides a testing method for an application, a terminal device, a server, and a testing system for an application. The testing method is applied to a terminal device, the terminal device is connected to a server in communication, and there are at least two applications to be tested in the server, wherein each application to be tested is formed at a different time, and the method includes: obtaining the application to be tested and functional test information from the server, and installing the application to be tested. Furthermore, the installed application to be tested can be used to perform functional testing according to the functional test information to obtain test data; wherein the test data includes data corresponding to the processor, memory, and function of the terminal device. Thus, the test data can be sent to the server, and the next application to be tested and the functional test information can be obtained from the server for testing until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all applications to be tested. The present application aims to automatically traverse the version performance, memory, functionality, and other data of the application through the above-mentioned testing method, while improving the test speed and reducing the manual test error. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A flowchart of a method for testing an application program provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of another application testing method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a change curve diagram of an image provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of another image change curve diagram provided in an embodiment of the present application;
[0024] Figure 5 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application;
[0025] Figure 6 A schematic block diagram of the structure of a server provided in an embodiment of the present application;
[0026] Figure 7 A schematic block diagram of the structure of a test system for an application provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0029] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0030] See also Figure 1 , Figure 1 The following is a flow chart of a method for testing an application program provided in an embodiment of the present application. Figure 1 As shown, the application testing method includes steps S11 to S13. The application testing method is applied to a terminal device, the terminal device is connected to a server for communication, and the server has at least two applications to be tested, wherein each application to be tested is formed at a different time.
[0031] Among them, the terminal device can be a set-top box, a smart home device, a computer, etc., which is not limited in this application, and the terminal device is taken as a set-top box as an example for explanation.
[0032] Furthermore, the present application does not limit the type of the above-mentioned server. For example, the server includes an Apache server, an Nginx server, and a LiteSpeed server, etc. The present application takes the Apache server as an example for explanation.
[0033] Among them, the full name of Apache server is Apache HTTP server, which is an open source, cross-platform web server software maintained and developed by the Apache Software Foundation. Apache server is a powerful and flexible web server software, suitable for hosting various web applications and websites, and has certain stability, customizability and active development community support.
[0034] Optionally, the set-top box and the Apache server can be connected to each other through the ADB (Android Debug Bridge) tool. The ADB tool is a command line tool for communicating with Android devices and is part of the Android development tools. It is used to perform various tasks, including application installation, debugging, file transfer, and device management. The ADB tool is usually used through a command line interface, but can also be integrated with other development tools.
[0035] Further, the type of the application to be tested on the Apache server can be an Android application. The application to be tested can be uniformly named by the APK file name, and placed in the same directory of the Apache server in the order of application packages from small to large, for testing the set-top box.
[0036] In addition, the installation of the application to be tested before the test can be distinguished from the test process of the application to be tested. That is, the installation version of the application to be tested can be uniformly named in the form of APK file names, and placed in another directory of the Apache server in the order of APK file names from small to large, so that the set-top box can download and install the application in the directory by extracting the APK file name to be installed. In this way, the set-top box can traverse the application to be tested in another directory after installing the application to be tested in the directory, thereby realizing the test process.
[0037] It should be noted that APK is the file extension of the Android application package. It represents the installation package file of the Android application. The APK file contains all the components and resources of the application, including code, images, audio, video, manifest files, etc. Therefore, various Android applications can be obtained and used by installing the APK file.
[0038] It is understandable that, since each application to be tested is formed at a different time, each application to be tested corresponds to a different version. Thus, the present application is intended to test different versions of applications to be tested in an Apache server through a set-top box.
[0039] Step S11: Obtain the application to be tested and function test information from the server, and install the application to be tested.
[0040] Specifically, the set-top box can use the wget command to send a request to the server in a certain order of APK file names (from small to large, or from small to small) to obtain the application to be tested and functional test information, and then install the application to be tested after obtaining the application to be tested.
[0041] For example, the wget command may be wget http: / / 127.0.0.1 / XXX.apk, where XXX.apk is the application to be tested.
[0042] The functional test information includes a test script, which is used to execute a number of test items to achieve functional testing.
[0043] Optionally, after obtaining the application to be tested and the functional test information from the server, the method includes: uninstalling the previous application to be tested or the original application corresponding to the application to be tested.
[0044] Specifically, after obtaining the test application and functional test information, the previous application to be tested or the original application corresponding to the application to be tested can be uninstalled, and then the application to be tested can be installed. In this way, the consistency of the test environment can be ensured, and incompatibility between application versions can be prevented, which can lead to inaccurate test results. In addition, a certain amount of memory space can also be saved.
[0045] In an embodiment of the present application, the application to be tested and functional test information can be obtained from the server, and the application to be tested can be installed to perform functional testing of the application.
[0046] Step S12: Perform a functional test according to the functional test information using the installed application to be tested to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device.
[0047] Specifically, the test resources of the installed application to be tested can be obtained directly through the server or the server's functional test web page (placed in the test resource directory), so that functional testing can be performed according to the test items to obtain test data, where the test data includes data corresponding to the processor, memory and functions of the set-top box.
[0048] Optionally, a functional test is performed on the installed application to be tested according to the functional test information to obtain test data, including: a functional test is performed on each test item in the functional test information using the installed application to be tested to obtain processor data, memory data and functional data of the terminal device corresponding to each test item.
[0049] Among them, the test items may include rolling subtitle performance test, response time test and compatibility test, etc., and can be added or deleted according to needs, which is not limited in this application.
[0050] Furthermore, for the above test process, the test process can be executed periodically, for example, once every 1 second, and a total of 20 times are counted before the end. The specific setting can be based on demand to test enough test results.
[0051] Optionally, the functional test information includes network test items, and functional testing is performed according to the functional test information using the installed application to be tested to obtain test data, including: calling the network address corresponding to the network test item to perform functional testing to obtain test results; taking a screenshot of the test results to obtain a target image, and using the target image as functional data.
[0052] For example, if the network test item is HTML5 support test, the corresponding network address "https: / / html5test.com / " can be called to perform functional testing. After obtaining the test results, the test results can be screenshotted to obtain the target image, and the target image is used as functional data. Therefore, the functional data can be extracted through image recognition technologies such as image recognition algorithms.
[0053] In the embodiment of the present application, the installed application to be tested may be used to perform a functional test according to the functional test information to obtain test data.
[0054] Step S13: Send the test data to the server, and obtain the next application to be tested and functional test information from the server for testing until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all the applications to be tested.
[0055] Specifically, after a version of the application layer program to be tested is tested and the test data of the version is obtained, the test data can be sent to the server, where the server can use specific test items as keywords to store the test data.
[0056] Furthermore, the next application to be tested and function test information can be obtained from the server for testing until all the applications to be tested in the server are tested. Thus, all versions of the application to be tested in the server are tested, and the server then displays data based on the test data of all the applications to be tested.
[0057] In the embodiment of the present application, different versions of the application program to be tested may be traversed in sequence until all the application programs to be tested in the server are tested, and the test data is displayed through the server.
[0058] An embodiment of the present application provides a method for testing an application, the testing method is applied to a terminal device, the terminal device is communicatively connected to a server, there are at least two applications to be tested in the server, wherein each application to be tested is formed at a different time, and the method includes: obtaining the application to be tested and functional test information from the server, and installing the application to be tested. Furthermore, the installed application to be tested can be used to perform functional testing according to the functional test information to obtain test data; wherein the test data includes data corresponding to the processor, memory, and function of the terminal device. Thus, the test data can be sent to the server, and the next application to be tested and functional test information can be obtained from the server for testing until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all the applications to be tested. The present application aims to automatically traverse the version performance, memory, functionality and other data of the application through the above-mentioned test method, while improving the test speed and reducing manual test errors.
[0059] See also Figure 2 , Figure 2 A flowchart of another application testing method provided in an embodiment of the present application; Figure 3 A schematic diagram of a change curve diagram of an image provided in an embodiment of the present application; Figure 4 This is a schematic diagram of another image change curve diagram provided in an embodiment of the present application. Figure 2 As shown, the application testing method includes steps S21 to S23. The application testing method is applied to a server, the server is in communication connection with a terminal device, and there are at least two applications to be tested in the server; wherein each application to be tested is formed at a different time.
[0060] It should be noted that for the specific description of the terminal device, the server and the application, please refer to the above embodiments and will not be described here to avoid repetition.
[0061] Step S21: In response to a request instruction from the terminal device, the application to be tested and function test information are sent to the terminal device, so that the terminal device uses the installed application to be tested to perform a function test according to the function test information to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device.
[0062] Step S22: receiving test data sent by the terminal device.
[0063] Step S23: After all the applications to be tested in the server are tested, data display is performed based on the test data of all the applications to be tested.
[0064] Optionally, after receiving the test data sent by the terminal device, the method includes: taking each test item as a keyword, naming and saving the processor data, memory data and function data in the test data respectively.
[0065] Specifically, each test item can be used as a keyword to name and save the processor data, memory data, and function data in the test data, thereby improving the readability, usability, and analyzability of the test data.
[0066] Furthermore, the server may receive test data corresponding to several application programs to be tested sent by the terminal device, and then display the test data for the user to analyze the data.
[0067] Optionally, data display is performed based on the test data of all the application programs to be tested, including: drawing a curve of the test data of each test application program changing over time, and displaying all the changing curves in the same image.
[0068] Specifically, for the test data of different application programs to be tested, a line graph showing the test data changing over time may be used on the same image, so that the user can analyze the data intuitively based on the line graph.
[0069] Optionally, a curve of the test data of each test application changing over time is drawn, including: taking the data corresponding to the processor as a benchmark, drawing a processor change curve of the processor data of each test application changing over time; and / or taking the data corresponding to the memory as a benchmark, drawing a memory change curve of the memory data of each test application changing over time; and / or taking the data corresponding to the function as a benchmark, drawing a function change curve of the function data of each test application changing over time.
[0070] Based on the above embodiment, all change curves are displayed in the same image, including: displaying all processor change curves in the same image, or displaying all memory change curves in the same image, or displaying all function change curves in the same image.
[0071] Since the test data includes data corresponding to the processor, memory, and functions of the terminal device, the processor change curve of the processor data over time, the memory change curve of the memory data over time, and the function change curve of the function data over time can be drawn respectively. Then, according to user needs, the processor change curve, the memory change curve, or the function change curve can be displayed on the same image.
[0072] Optionally, for some functional data that is not time-sensitive, a change graph of the average value of the application and test data can also be drawn to show the user a more obvious data analysis effect.
[0073] Optionally, different weights may be set for the above different test items according to user requirements, and then weighted cumulative values may be used to draw images, which may be used for data comparison of different applications.
[0074] like Figure 3 As shown in the figure, the higher the version of the application, the lower the corresponding processor usage and the smoother the change. Especially for the 58 version of the application, the processor usage is significantly lower than all official versions of Chrome, and the processor usage fluctuates within 10M. Figure 4 As shown in the figure, except for the 58 version of the application, the processor usage and memory usage of other applications are on a downward trend as the version increases.
[0075] The embodiment of the present application provides a method for testing an application, the testing method is applied to a server, the server is connected to a terminal device in communication, and there are at least two applications to be tested in the server; wherein, each application to be tested is formed at a different time, and the method comprises: in response to a request instruction of the terminal device, sending the application to be tested and functional test information to the terminal device, so that the terminal device uses the installed application to be tested to perform functional testing according to the functional test information, and obtains test data; wherein the test data includes the processor, memory and function corresponding data of the terminal device; further, the test data sent by the terminal device can be received. Thus, after all the applications to be tested in the server are tested, data display can be performed based on the test data of all the applications to be tested. The embodiment of the present application aims to effectively perform functional testing through the terminal device, and then use the server to analyze the test data and display the test results, so as to improve the manageability and traceability of the test process, and then ensure the quality and performance of the application.
[0076] The method of the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer network devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0077] See also Figure 5 , Figure 5 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.
[0078] like Figure 5 As shown, the terminal device 400 may include a processor 401 and a memory 402, and the processor 401 and the memory 402 are connected via a bus, such as an I2C (Inter-integrated Circuit) bus.
[0079] In an exemplary embodiment, the processor 401 can be used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 401 can be a central processing unit (CPU), and the processor 401 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0080] Specifically, the memory 402 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0081] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the embodiment scheme of the present application, and does not constitute a limitation on the terminal device to which the embodiment scheme of the present application is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0082] The processor 401 is used to run a computer program stored in the memory, and implement any one of the testing methods for an application program applied to a terminal device provided in the embodiments of the present application when executing the computer program.
[0083] In one embodiment, the processor 401 is used to run a computer program stored in a memory, and implement the following steps when executing the computer program: obtaining the application to be tested and the functional test information from the server, and installing the application to be tested; using the installed application to be tested to perform a functional test according to the functional test information to obtain test data; wherein the test data includes data corresponding to the processor, memory, and function of the terminal device; sending the test data to the server, and obtaining the next application to be tested and the functional test information from the server for testing, until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all the applications to be tested.
[0084] In one embodiment, when the processor 401 uses the installed application to be tested to perform a functional test according to the functional test information to obtain test data, it is used to implement: using the installed application to be tested to perform a functional test according to each test item in the functional test information to obtain the processor data, memory data and functional data of the terminal device corresponding to each test item.
[0085] In one embodiment, when the processor 401 performs a functional test according to the functional test information using the installed application to be tested to obtain test data, it is used to implement: calling the network address corresponding to the network test item to perform a functional test to obtain a test result; taking a screenshot of the test result to obtain a target image, and using the target image as functional data.
[0086] In one embodiment, after obtaining the application to be tested and the functional test information from the server, the processor 401 is configured to uninstall the previous application to be tested or the original application corresponding to the application to be tested.
[0087] See also Figure 6 , Figure 6 A schematic block diagram of the structure of a server provided in an embodiment of the present application. Figure 6 As shown, the server 500 may include a processor 501 and a memory 502 , and the processor 501 and the memory 502 are connected via a bus, such as an I2C (Inter-integrated Circuit) bus.
[0088] In an exemplary embodiment, the processor 501 can be used to provide computing and control capabilities to support the operation of the entire server 500. The processor 501 can be a central processing unit (CPU), and the processor 501 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0089] Specifically, the memory 502 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0090] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the embodiment of the present application, and does not constitute a limitation on the server 500 to which the embodiment of the present application is applied. The specific server 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0091] The processor 501 is used to run a computer program stored in the memory, and implement any one of the testing methods for an application program applied to a server provided in the embodiments of the present application when executing the computer program.
[0092] In one embodiment, the processor 501 is used to implement: in response to a request instruction from the terminal device, sending the application to be tested and functional test information to the terminal device, so that the terminal device uses the installed application to be tested to perform functional testing according to the functional test information to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device; receiving the test data sent by the terminal device; after all the applications to be tested in the server are tested, displaying data based on the test data of all the applications to be tested.
[0093] In one embodiment, when implementing data display based on the test data of all the applications to be tested, the processor 501 is used to implement: drawing a curve of the test data of each of the tested applications changing over time, and displaying all the change curves in the same image.
[0094] In one embodiment, when implementing drawing of a curve of test data change over time for each test application, the processor 501 is used to implement: drawing a processor change curve of the processor data of each test application over time based on the data corresponding to the processor; and / or drawing a memory change curve of the memory data of each test application over time based on the data corresponding to the memory; and / or drawing a function change curve of the function data of each test application over time based on the data corresponding to the function.
[0095] In one embodiment, when implementing displaying all change curves in the same image, the processor 501 is used to implement: displaying all the processor change curves in the same image, or displaying all the memory change curves in the same image, or displaying all the function change curves in the same image.
[0096] In one embodiment, after receiving the test data sent by the terminal device, the processor 501 is used to: use each test item as a keyword to name and save the processor data, memory data, and function data in the test data.
[0097] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the network device described above can refer to the corresponding process in the aforementioned terminal capability reporting method embodiment, and will not be repeated here.
[0098] An embodiment of the present application also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of a testing method for any application program provided in the specification of the embodiment of the present application.
[0099] The storage medium may be an internal storage unit of the network device described in the foregoing embodiment, such as a hard disk or memory of the network device. The storage medium may also be an external storage device of the network device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc., provided on the network device.
[0100] See also Figure 7 , Figure 7 A schematic block diagram of the structure of a test system for an application provided in an embodiment of the present application.
[0101] like Figure 7 As shown, the test system 600 may include a server 601 and a terminal device 602 that is communicatively connected to the server 601, the server 601 is used to implement the test method for an application program applied to the server as described in any one of the embodiments of the present application, and the terminal device 602 is used to implement the test method for an application program applied to the terminal device as described in any one of the embodiments of the present application. The terminal device 602 is a set-top box.
[0102] In one embodiment, the server 601 is used to implement: in response to a request instruction from the terminal device, sending the application to be tested and functional test information to the terminal device, so that the terminal device uses the installed application to be tested to perform functional testing according to the functional test information to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device; receiving the test data sent by the terminal device; after all the applications to be tested in the server are tested, displaying data based on the test data of all the applications to be tested.
[0103] In one embodiment, the server 601 is further configured to: draw a curve of the test data of each test application program changing over time, and display all the changing curves in the same image.
[0104] In one embodiment, the server 601 is also used to implement: drawing a processor change curve of the processor data of each test application over time based on the data corresponding to the processor; and / or drawing a memory change curve of the memory data of each test application over time based on the data corresponding to the memory; and / or drawing a function change curve of the function data of each test application over time based on the data corresponding to the function; displaying all the processor change curves in the same image, or displaying all the memory change curves in the same image, or displaying all the function change curves in the same image.
[0105] In one embodiment, the server 601 is further used to implement: using each test item as a keyword, the processor data, memory data and function data in the test data are named and saved respectively.
[0106] In one embodiment, the terminal device 602 is used to implement: obtaining the application to be tested and the functional test information from the server, and installing the application to be tested; using the installed application to be tested to perform a functional test according to the functional test information to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device; sending the test data to the server, and obtaining the next application to be tested and the functional test information from the server for testing, until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all the applications to be tested.
[0107] In one embodiment, the terminal device 602 is further used to implement: using the installed application to be tested to perform functional testing according to each test item in the functional test information, and obtaining processor data, memory data and functional data of the terminal device corresponding to each test item.
[0108] In one embodiment, the terminal device 602 is further used to implement: calling the network address corresponding to the network test item to perform a functional test to obtain a test result; taking a screenshot of the test result to obtain a target image, and using the target image as functional data.
[0109] In one embodiment, the terminal device 602 is further configured to: uninstall the previous application to be tested or an original application corresponding to the application to be tested.
[0110] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0111] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0112] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for testing an application, characterized in that: Applied to a terminal device, the terminal device is in communication connection with a server, the server has at least two applications to be tested, wherein each of the applications to be tested is formed at a different time, the method comprising: Acquire the application to be tested and functional test information from the server, and install the application to be tested; Performing a functional test according to the functional test information using the installed application to be tested to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device; The test data is sent to the server, and the next application to be tested and the functional test information are obtained from the server for testing until all the applications to be tested in the server are tested; wherein the server displays data based on the test data of all the applications to be tested.
2. The testing method according to claim 1, characterized in that: The step of performing a functional test according to the functional test information using the installed application to be tested to obtain test data includes: The installed application to be tested is used to perform a functional test according to each test item in the functional test information to obtain processor data, memory data and functional data of the terminal device corresponding to each test item.
3. The testing method according to claim 1, characterized in that: The functional test information includes network test items; The step of performing a functional test according to the functional test information using the installed application to be tested to obtain test data includes: Call the network address corresponding to the network test item to perform a functional test and obtain a test result; The test result is captured to obtain a target image, and the target image is used as functional data.
4. The testing method according to any one of claims 1 to 3, characterized in that: After obtaining the application to be tested and the functional test information from the server, the following steps are included: Uninstall the previously-mentioned application to be tested or the original application corresponding to the application to be tested.
5. A method for testing an application, characterized in that: Applied to a server, the server is in communication connection with a terminal device, the server has at least two applications to be tested; wherein each of the applications to be tested is formed at a different time, the method comprising: In response to a request instruction from the terminal device, the application to be tested and the function test information are sent to the terminal device, so that the terminal device uses the installed application to be tested to perform a function test according to the function test information to obtain test data; wherein the test data includes data corresponding to the processor, memory and function of the terminal device; Receiving the test data sent by the terminal device; After all the applications to be tested in the server are tested, data display is performed based on the test data of all the applications to be tested.
6. The testing method according to claim 5, characterized in that: The data display based on the test data of all the application programs to be tested includes: A curve showing the change of the test data of each test application over time is plotted, and all the change curves are displayed in the same graph.
7. The testing method according to claim 6, characterized in that: The step of drawing a curve of test data of each test application program changing over time includes: Based on the data corresponding to the processor, a processor change curve of the processor data of each test application over time is drawn; and / or, Based on the data corresponding to the memory, draw a memory change curve of the memory data of each test application over time; and / or, Based on the data corresponding to the function, a function change curve of the function data of each test application over time is drawn; The above shows all the change curves in the same image, including: All of the processor change curves are displayed in the same image, or all of the memory change curves are displayed in the same image, or all of the function change curves are displayed in the same image.
8. The testing method according to claim 5, characterized in that: After receiving the test data sent by the terminal device, the method further comprises: Using each test item as a keyword, the processor data, memory data and function data in the test data are named and saved respectively.
9. A terminal device, characterized in that: The terminal device is used to implement the testing method of the application program as described in any one of claims 1-4.
10. A server, characterized in that: The server is used to implement the testing method of the application program as described in any one of claims 5-8.
11. A testing system for an application, characterized in that: The test system comprises: A server, configured to implement the application testing method according to any one of claims 5 to 8; The terminal device is connected to the server for communication to implement the application testing method according to any one of claims 1 to 4.
12. The test system according to claim 11, characterized in that: The terminal device is a set-top box.