Application program testing method and device, storage medium and computer device

By exchanging version information between the test server and the running terminal, the problem of low testing efficiency when multiple application versions conflict is solved, and the source of conflict is quickly identified and an efficient testing process is achieved.

CN115292198BActive Publication Date: 2026-02-27PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211114535.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2026-02-27
Estimated Expiration
2042-09-14

AI Technical Summary

Technical Problem

When test server resources are insufficient, and multiple application versions conflict, testers find it difficult to quickly identify the source of the conflict, resulting in low testing efficiency.

Method used

The test server sends a version retrieval command to the running terminal. The running terminal reads the application's version information and sends it back to the test server. The test server then determines the deployment file for testing based on the version information.

Benefits of technology

It improves the testing efficiency of testers by identifying the application version to determine the deployment files, thus reducing the time spent troubleshooting version conflicts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292198B_ABST
    Figure CN115292198B_ABST
Patent Text Reader

Abstract

The application relates to the computer technical field and discloses an application program testing method and device, a storage medium and a computer device, the method comprising the following steps: a testing server receives a testing instruction for a to-be-tested application program, wherein the testing instruction comprises a running terminal address of the to-be-tested application program; the testing server sends a version acquisition instruction to a running terminal of the to-be-tested application program based on the running terminal address; the running terminal reads version information of the to-be-tested application program from a version information file of the to-be-tested application program based on the version acquisition instruction; and the testing server receives the version information and determines a deployment file of the to-be-tested application program in a server according to the version information, tests the deployment file, and can acquire the version of the to-be-tested application program, so that the testing efficiency of a tester is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an application program testing method and device, storage medium and computer equipment. BACKGROUND

[0002] At present, most software development companies have deployment platforms and corresponding test environment servers, and then deploy Java application programs to the test environment servers through the deployment platforms, so as to perform corresponding function test verification on the Java application programs. However, when the test servers are relatively insufficient, it is possible to test multiple application programs on one server at the same time, and in this case, when multiple application programs have version conflicts, test errors will be caused, and if the test personnel do not understand the deployment package versions of the application programs, it will be difficult for the test personnel to troubleshoot the conflict source when they start, and therefore, an application program version acquisition method is urgently needed to improve the test efficiency of the test personnel. SUMMARY

[0003] Therefore, the present application provides an application program testing method and device, storage medium and computer equipment, which can acquire the version of the application program to be tested, so as to improve the test efficiency of the staff.

[0004] According to an aspect of the present application, an application program testing method is provided, which comprises:

[0005] The test server receives a test instruction for an application program to be tested, wherein the test instruction comprises a running terminal address of the application program to be tested;

[0006] The test server sends a version acquisition instruction to the running terminal of the application program to be tested based on the running terminal address;

[0007] The running terminal reads version information of the application program to be tested from a version information file of the application program to be tested based on the version acquisition instruction;

[0008] The test server receives the version information and determines a deployment file of the application program to be tested in the server according to the version information, and tests the deployment file.

[0009] Optionally, the version acquisition instruction comprises an application program to be tested path; and the running terminal reads the version information of the application program to be tested from the version information file of the application program to be tested based on the version acquisition instruction, which comprises:

[0010] The running terminal decompresses the application packaging file under the path of the application to be tested, obtains a version information file, and identifies the version information of the application to be tested corresponding to the version information file.

[0011] Optionally, before the test server receives the test instruction for the application to be tested, the method further comprises:

[0012] Obtaining version information obtaining program code, and encapsulating a version information obtaining plug-in based on the version information obtaining program code;

[0013] Installing the version information obtaining plug-in in the test server;

[0014] Correspondingly, the test server sends a version obtaining instruction to the running terminal of the application to be tested based on the running terminal address, comprising:

[0015] The test server starts the version information obtaining plug-in, and sends a version obtaining instruction to the running terminal corresponding to the running terminal address through the version information obtaining plug-in.

[0016] Optionally, before the test server receives the test instruction for the application to be tested, the method further comprises:

[0017] The application packaging platform receives a packaging instruction for the application to be tested, wherein the packaging instruction comprises a running terminal address of the application to be tested and program code information of the application to be tested;

[0018] According to the program code information, the version information of the application to be tested is collected, and a version information file is generated;

[0019] Based on the version information file and the program code information, an application packaging file is generated, and the application packaging file is sent to the running terminal corresponding to the running terminal address.

[0020] Optionally, the version information file is generated, comprising:

[0021] Based on the version information of the application to be tested, a version information file is generated, and the version information file is named according to a preset file naming rule;

[0022] Correspondingly, the version obtaining instruction comprises a version information file identifier; the running terminal reads the version information of the application to be tested from the version information file of the application to be tested based on the version obtaining instruction, comprising:

[0023] The running terminal identifies the version information file according to the version information file and identifies the version information of the to-be-tested application program corresponding to the version information file.

[0024] Optionally, the method further comprises:

[0025] embedding a version information collection program into the application packaging platform;

[0026] Accordingly, the collecting of the version information of the to-be-tested application program according to the program code information and the generation of the version information file comprises:

[0027] running the version information collection program and collecting the version information of the to-be-tested application program based on the program code information to generate the version information file.

[0028] Optionally, the test server sends a version acquisition instruction to the running terminal of the to-be-tested application program based on the running terminal address, which comprises:

[0029] If the test instruction comprises a plurality of running terminal addresses corresponding to the to-be-tested application programs respectively, the test server sends a version acquisition instruction to a plurality of corresponding running terminals respectively based on the running terminal address corresponding to each to-be-tested application program;

[0030] Accordingly, the running terminal reads the version information of the to-be-tested application program from the version information file of the to-be-tested application program based on the version acquisition instruction, which comprises:

[0031] Each running terminal reads the version information of the to-be-tested application program from the version information file of the corresponding to-be-tested application program based on the version acquisition instruction received by the running terminal respectively;

[0032] Accordingly, the test server receives the version information and determines the deployment file of the to-be-tested application program in the server according to the version information, and tests the deployment file, which comprises:

[0033] The test server receives the version information of each to-be-tested application program, determines the deployment file of each to-be-tested application program in the server according to the version information of each to-be-tested application program, and tests each deployment file.

[0034] According to another aspect of the present application, an application program testing device is provided, which comprises:

[0035] An instruction receiving module is configured to receive a test instruction for a to-be-tested application program by a test server, wherein the test instruction comprises a running terminal address of the to-be-tested application program.

[0036] The instruction sending module is configured to send a version acquisition instruction to the running terminal of the application program to be tested based on the running terminal address.

[0037] The information obtaining module is configured to cause the running terminal to read version information of the application program to be tested from a version information packaging file of the application program to be tested based on the version acquisition instruction.

[0038] The application testing module is configured to cause the test server to receive the version information, and determine a deployment file of the application program to be tested in the server according to the version information, and test the deployment file.

[0039] Optionally, the information obtaining module is further configured to:

[0040] The version acquisition instruction comprises an application program path to be tested.

[0041] The running terminal decompresses an application program packaging file under the application program path to be tested to obtain a version information file, and identifies version information of the application program to be tested corresponding to the version information file.

[0042] Optionally, the apparatus further comprises a plug-in packaging module configured to:

[0043] Obtain version information acquisition program code, and package a version information acquisition plug-in based on the version information acquisition program code.

[0044] Install the version information acquisition plug-in in the test server.

[0045] Optionally, the instruction sending module is further configured to:

[0046] The test server starts the version information acquisition plug-in, and sends a version acquisition instruction to a running terminal corresponding to the running terminal address through the version information acquisition plug-in.

[0047] Optionally, the apparatus further comprises an information packaging module configured to:

[0048] The application program packaging platform receives a packaging instruction of an application program to be tested, wherein the packaging instruction comprises a running terminal address of the application program to be tested and program code information of the application program to be tested.

[0049] According to the program code information, collect version information of the application program to be tested, and generate a version information file.

[0050] Based on the version information file and the program code information, an application packaging file is generated and sent to a running terminal corresponding to the running terminal address.

[0051] Optionally, the apparatus further comprises a file generation module configured to:

[0052] Based on the version information of the application to be tested, a version information file is generated and named according to a preset file naming rule.

[0053] Optionally, the information acquisition module is further configured to:

[0054] The version acquisition instruction comprises a version information file identifier;

[0055] The running terminal queries the version information file according to the version information file identifier and identifies the version information of the application to be tested corresponding to the version information file.

[0056] Optionally, the apparatus further comprises an information collection module configured to:

[0057] A version information collection program is embedded in the application packaging platform;

[0058] The version information collection program is run and the version information of the application to be tested is collected based on the program code information to generate a version information file.

[0059] Optionally, the instruction sending module is further configured to:

[0060] If the test instruction comprises running terminal addresses corresponding to a plurality of applications to be tested respectively, the test server sends version acquisition instructions to a plurality of corresponding running terminals based on the running terminal address corresponding to each of the applications to be tested respectively.

[0061] Optionally, the information acquisition module is further configured to:

[0062] Each of the running terminals reads the version information of the application to be tested from the version information file of the corresponding application to be tested based on the version acquisition instruction received respectively.

[0063] Optionally, the application testing module is further configured to:

[0064] The test server receives the version information of each application to be tested, determines a deployment file of each of the applications to be tested in the server according to the version information of each of the applications to be tested, and tests each of the deployment files.

[0065] According to another aspect of the present application, a storage medium is provided, which stores a computer program, and the program is executed by a processor to implement the application program testing method.

[0066] According to another aspect of the present application, a computer device is provided, which comprises a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, and the processor executes the program to implement the application program testing method.

[0067] By the above technical solution, the application program testing method and device, the storage medium, and the computer device provided by the present application first test a server to receive a test instruction for a to-be-tested application program, wherein the test instruction comprises a running terminal address of the to-be-tested application program, the test server sends a version acquisition instruction to a running terminal of the to-be-tested application program based on the running terminal address, the running terminal reads version information of the to-be-tested application program from a version information file of the to-be-tested application program based on the version acquisition instruction, the test server receives the version information and determines a deployment file of the to-be-tested application program in the server according to the version information, and the deployment file is tested. The version of the to-be-tested application program is determined by recognizing the version, and then the deployment file is tested, thereby improving the testing efficiency of the tester.

[0068] The above description is only a summary of the technical solutions of the present application. In order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS

[0069] The drawings described herein are used to provide further understanding of the present application, and form a part of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:

[0070] Figure 1 A flowchart of an application program testing method provided by an embodiment of the present application is shown;

[0071] Figure 2 A flowchart of another application program testing method provided by an embodiment of the present application is shown;

[0072] Figure 3 A flowchart of another application program testing method provided by an embodiment of the present application is shown;

[0073] Figure 4 A flowchart of another application program testing method provided by an embodiment of the present application is shown;

[0074] Figure 5 A flowchart of another application program testing method provided by an embodiment of the application is shown;

[0075] Figure 6 A structural diagram of an application program testing device provided by an embodiment of the application is shown;

[0076] Figure 7 A structural diagram of another application program testing device provided by an embodiment of the application is shown. DETAILED DESCRIPTION

[0077] The application will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other without conflict.

[0078] An application program testing method is provided in the embodiment, as shown in the figure, the method comprises: Figure 1

[0079] Step 101, a test server receives a test instruction for a to-be-tested application program, wherein the test instruction comprises a running terminal address of the to-be-tested application program.

[0080] In the above embodiments of the application, the system architecture composed of the test server and the running terminal can be applied, wherein the communication link medium between the running terminal and the test server can be provided through a network, and the network can comprise various types of connections, such as wired, wireless communication links or optical fiber cables, etc.

[0081] The user can interact with the running terminal through the network in the test server to receive or send messages and instructions, etc. The running terminal can be a smart phone, a smart TV or a tablet computer, etc. The running terminal can install various application programs, such as instant messaging tools, mailbox clients, web browser applications, shopping applications, search applications, social platform software, etc.

[0082] Specifically, the test server receives a test instruction for a to-be-tested application program, wherein the test instruction comprises a running terminal address of the to-be-tested application program, so as to perform subsequent application program testing according to the running terminal address.

[0083] Step 102, the test server sends a version acquisition instruction to the running terminal of the to-be-tested application program based on the running terminal address.

[0084] ​In the above embodiments of the present application, then, the test server sends a version acquisition instruction to the running terminal of the to-be-tested application based on the running terminal address received in step 101.

[0085] In step 103, the running terminal reads the version information of the to-be-tested application from the version information file of the to-be-tested application based on the version acquisition instruction.

[0086] In the above embodiments of the present application, then, the running terminal reads the version information of the to-be-tested application from the version information file of the to-be-tested application based on the version acquisition instruction sent in step 102.

[0087] In the above embodiments of the present application, optionally, the version acquisition instruction includes a to-be-tested application path, and in step 103, the running terminal reads the version information of the to-be-tested application from the version information file of the to-be-tested application based on the version acquisition instruction, including:

[0088] In step 103-1, the running terminal decompresses the application package file under the to-be-tested application path to obtain the version information file, and identifies the version information of the to-be-tested application corresponding to the version information file.

[0089] The running terminal decompresses the application package file under the to-be-tested application path, obtains the version information file according to the application package file, and then identifies the version information of the to-be-tested application corresponding to the version information file according to the version information file. The version information of the to-be-tested application can include various information that can be used to identify the version of the to-be-tested application, such as version identification, version number, version check code, and the like.

[0090] In a specific embodiment, the running terminal first receives the related parameters of the to-be-tested application path, then decompresses the application package file under the to-be-tested application path, obtains a list of decompressed files, then searches for the version information file in the list of files, and further identifies the version information of the to-be-tested application corresponding to the version information file according to the version information file.

[0091] In step 104, the test server receives the version information and determines the deployment file of the to-be-tested application in the server according to the version information, and tests the deployment file.

[0092] In the above embodiments of the present application, the aforementioned test server receives the aforementioned version information obtained in the step 103, and determines the deployment file of the application to be tested in the server according to the aforementioned version information, and then tests the deployment file.

[0093] By applying the technical solution of the present embodiment, the test server first receives the test instruction for the application to be tested, wherein the test instruction includes the running terminal address of the application to be tested. The test server sends a version acquisition instruction to the running terminal of the application to be tested based on the running terminal address. The running terminal reads the version information of the application to be tested from the version information file of the application to be tested based on the version acquisition instruction. The test server receives the version information and determines the deployment file of the application to be tested in the server according to the version information. The deployment file is tested. By identifying the version of the application to be tested to determine the deployment file, the test efficiency of the tester is improved.

[0094] Further, as a refinement and expansion of the above embodiment, in order to fully describe the specific implementation process of the present embodiment, another application testing method is provided, as shown in Figure 2 The method comprises:

[0095] In step 201, the application packaging platform receives a packaging instruction for an application to be tested, wherein the packaging instruction includes the running terminal address of the application to be tested and the program code information of the application to be tested.

[0096] In the above embodiments of the present application, the application packaging platform receives a packaging instruction for an application to be tested, wherein the application packaging platform is, for example, a Jenkins platform. The main function of the Jenkins platform is application packaging function, that is, the code of the application is compiled and finally the packaging file is outputted. The packaging instruction includes the running terminal address of the application to be tested and the program code information of the application to be tested.

[0097] In step 202, according to the program code information, the version information of the application to be tested is collected, and a version information file is generated. Based on the version information file and the program code information, an application packaging file is generated, and the application packaging file is sent to the running terminal corresponding to the running terminal address.

[0098] In the above embodiments of the present application, then, the aforementioned application packaging platform collects version information of the aforementioned to-be-tested application according to the program code information received in step 201, wherein the aforementioned version information includes but is not limited to: version number of the Jenkins platform for packaging the to-be-tested application code, code repository branch of the application code (such as SVN code branch, Git code branch, etc.), author of the last code submission of the code repository platform, code version number of the last code submission of the code repository platform, time of the last code submission of the code repository platform, maven tool version in the Jenkins platform for packaging, IP server of the Jenkins platform for packaging the application, etc. Then, the aforementioned version information file corresponding to the to-be-tested application is generated according to the aforementioned version information, and the application packaging file is packaged based on the aforementioned version information file and the aforementioned program code information, as shown in Figure 3 that is, by using the application packaging function of the aforementioned packaging platform, the aforementioned version information is collected and the version information file is generated before the application packaging file is generated, then the aforementioned version information file is placed in the application, and finally the corresponding application packaging file is generated following the packaging mechanism of the aforementioned packaging platform, and then the aforementioned application packaging file containing the aforementioned version information file is sent to the running terminal corresponding to the running terminal address.

[0099] In step 203, the version information acquisition program code is acquired, and the version information acquisition plug-in is packaged based on the version information acquisition program code, and the version information acquisition plug-in is installed in the test server.

[0100] In the above embodiments of the present application, then, the aforementioned version information acquisition program code is acquired, and the aforementioned version information acquisition program code is packaged in the version information acquisition plug-in, and then the aforementioned version information acquisition plug-in is installed in the aforementioned test server. Therefore, before the aforementioned to-be-tested application is tested, the subsequent operation can be performed by starting the aforementioned packaged version information acquisition plug-in.

[0101] In step 204, the test server starts the version information acquisition plug-in, and sends a version acquisition instruction to the running terminal corresponding to the running terminal address through the version information acquisition plug-in.

[0102] In the above embodiments of the present application, the aforementioned test server starts the aforementioned version information acquisition plug-in, and sends a version acquisition instruction to the running terminal corresponding to the running terminal address through the aforementioned version information acquisition plug-in, so as to obtain the version information corresponding to the aforementioned to-be-tested application.

[0103] In step 205, the running terminal reads the version information of the application to be tested from the version information file of the application to be tested based on the version acquisition instruction.

[0104] In the above embodiment of the present application, the running terminal reads the version information of the application to be tested from the version information file of the application to be tested based on the version acquisition instruction sent in step 204.

[0105] In step 206, the test server receives the version information and determines the deployment file of the application to be tested in the server according to the version information, and tests the deployment file.

[0106] Then, the test server receives the version information read in step 205, and determines the deployment file of the application to be tested in the server according to the version information, and tests the deployment file.

[0107] By applying the technical solution of the embodiment, first, the application packaging platform receives the packaging instruction of the application to be tested, generates an application packaging file containing a version information file based on the running terminal address of the application to be tested and the program code information of the application to be tested, and sends the application packaging file to the corresponding running terminal. Then, the version information acquisition program code is obtained and encapsulated in the version information acquisition plug-in. Through the version acquisition instruction, the version information acquisition plug-in is started to obtain the version information, and the deployment file of the application to be tested in the server is determined according to the version information, so as to test the deployment file. By obtaining the version of the application to be tested, the testing efficiency of the tester is improved.

[0108] Further, as a refinement and expansion of the above embodiment, in order to fully describe the specific implementation process of the embodiment, another application testing method is provided, as shown in Figure 4 The method comprises:

[0109] In step 301, a version information collection program is embedded in the application packaging platform.

[0110] In the above embodiment of the present application, the extension mechanism of the application packaging platform is used, that is, a custom script such as the version information collection program is embedded in the packaging process of the application packaging platform. Through the feature that the custom script can be embedded in the application packaging platform, the function of collecting the version information of the application to be tested later is realized.

[0111] Step 302: The application packaging platform receives a packaging instruction for the application to be tested, wherein the packaging instruction includes the running terminal address of the application to be tested and the program code information of the application to be tested.

[0112] Next, the aforementioned application packaging platform receives a packaging instruction for the application to be tested, wherein the packaging instruction includes the running terminal address of the application to be tested and the program code information of the application to be tested.

[0113] Step 303: Run the version information collection program, collect the version information of the application under test based on the program code information, generate a version information file based on the version information of the application under test, and name the version information file according to the preset file naming rules.

[0114] Next, the aforementioned application packaging platform runs the aforementioned version information collection program embedded in step 301, and collects the version information of the aforementioned application to be tested based on the aforementioned program code information received in step 302. Then, it generates a version information file based on the version information of the aforementioned application to be tested, and names the version information file according to a preset file naming rule, such as ".app-matadata". This file naming method indicates that the aforementioned version information file is a hidden file.

[0115] Step 304: Based on the version information file and the program code information, generate an application package file and send the application package file to the running terminal corresponding to the running terminal address.

[0116] In the above embodiments of this application, an application package file is generated based on the version information file generated in step 303 and the program code information received in step 302, and the application package file is sent to the running terminal corresponding to the aforementioned running terminal address.

[0117] Step 305: The test server receives a test instruction from the application to be tested, wherein the test instruction includes the running terminal address of the application to be tested.

[0118] Step 306: The test server sends a version acquisition instruction to the running terminal of the application to be tested based on the running terminal address. The version acquisition instruction includes a version information file identifier.

[0119] Step 307: The running terminal queries the version information file according to the version information file identifier and identifies the version information of the application to be tested corresponding to the version information file.

[0120] Then, the test server receives a test instruction for the application to be tested, wherein the test instruction includes a running terminal address of the application to be tested, and then the test server sends a version acquisition instruction to the running terminal of the application to be tested based on the running terminal address, wherein the version acquisition instruction includes a version information file identifier, and then the running terminal queries the version information file according to the version information file identifier, that is, finds the ".app-matadata" file generated in step 303, and identifies the version information of the application to be tested corresponding to the version information file, wherein the version information includes but is not limited to version identifier, version number, version check code, etc.

[0121] In step 308, the test server receives the version information and determines a deployment file of the application to be tested in the server according to the version information, and tests the deployment file.

[0122] In the above embodiment, the test server receives the version information obtained in step 307, and determines a deployment file of the application to be tested in the server according to the version information, and tests the deployment file.

[0123] By applying the technical solution of the embodiment, first, the version information collection program is embedded into the application packaging platform by using the extension mechanism of the application packaging platform, then the version information is collected by the version information collection program, and the version information file is generated according to the preset file naming rule and the version information, then the application packaging file containing the version information file is generated by the application packaging platform, when the test server receives the test instruction for the application to be tested, the version information file is found according to the version information file identifier included in the test instruction, and the version information is obtained, then the test server receives the version information to determine the deployment file of the application to be tested, and thus the deployment file is tested, and the test efficiency of the tester is improved by obtaining the version of the application to be tested.

[0124] Further, as a refinement and expansion of the above embodiment, in order to completely describe the specific implementation process of the embodiment, another application testing method is provided, as shown in Figure 5 The method comprises:

[0125] In step 401, the test server receives a test instruction for the application to be tested, wherein the test instruction includes a running terminal address of the application to be tested.

[0126] If the test instruction includes a plurality of running terminal addresses corresponding to the to-be-tested application programs respectively, the test server sends a version acquisition instruction to each corresponding running terminal based on the running terminal address corresponding to each to-be-tested application program.

[0127] In the above embodiments, first, the test server receives a test instruction for a to-be-tested application program, wherein the test instruction includes a running terminal address of the to-be-tested application program.

[0128] If the test instruction includes a plurality of running terminal addresses corresponding to the to-be-tested application programs respectively, the test server sends a version acquisition instruction to each corresponding running terminal based on the running terminal address corresponding to each to-be-tested application program.

[0129] Step 403, each running terminal reads the version information of the to-be-tested application program from the version information file of the corresponding to-be-tested application program based on the version acquisition instruction received respectively.

[0130] In the above embodiments, then, each running terminal reads the version information of the to-be-tested application program from the version information file of the corresponding to-be-tested application program based on the version acquisition instruction received respectively.

[0131] Step 404, the test server receives the version information of each to-be-tested application program, determines the deployment file of each to-be-tested application program in the server according to the version information of each to-be-tested application program, and tests each deployment file.

[0132] Finally, the test server receives the version information of each to-be-tested application program, determines the deployment file of each to-be-tested application program in the server according to the version information of each to-be-tested application program, and tests each deployment file. In this application scenario, a plurality of application programs can be tested at the same time, which is convenient, fast and efficient.

[0133] By applying the technical solution of the embodiment, first, the test server receives a test instruction for a to-be-tested application program, if the test instruction contains a plurality of running terminal addresses corresponding to the to-be-tested application programs respectively, then version acquisition instructions are sent to the plurality of corresponding running terminals respectively, then each of the running terminals reads version information of the to-be-tested application program from a version information file of the corresponding to-be-tested application program based on the version acquisition instruction received by the running terminal respectively, finally, the test server receives the version information of each to-be-tested application program, determines a deployment file of each to-be-tested application program in the server according to the version information of each to-be-tested application program, and tests each deployment file, thereby improving the test efficiency of the tester by batch acquiring versions of a plurality of to-be-tested application programs.

[0134] Further, as Figure 1 The embodiment of the application provides an application program testing device. Figure 6 As shown in the figure, the device comprises:

[0135] An instruction receiving module 51 is configured to receive a test instruction for a to-be-tested application program by a test server, wherein the test instruction comprises a running terminal address of the to-be-tested application program.

[0136] An instruction sending module 52 is configured to send a version acquisition instruction to a running terminal of the to-be-tested application program based on the running terminal address.

[0137] An information obtaining module 53 is configured to read version information of the to-be-tested application program from a version information packaging file of the to-be-tested application program by the running terminal based on the version acquisition instruction.

[0138] An application testing module 54 is configured to receive the version information by the test server, and determine a deployment file of the to-be-tested application program in the server according to the version information, and test the deployment file.

[0139] Optionally, the information obtaining module 53 is further configured to:

[0140] The version acquisition instruction comprises a to-be-tested application program path.

[0141] The running terminal decompresses an application program packaging file under the to-be-tested application program path to obtain a version information file, and identifies version information of the to-be-tested application program corresponding to the version information file.

[0142] Optionally, the instruction sending module 52 is further configured to:

[0143] The test server starts the version information obtaining plug-in, and sends a version obtaining instruction to the running terminal corresponding to the running terminal address through the version information obtaining plug-in.

[0144] Optionally, the information obtaining module 53 is further configured to:

[0145] The version obtaining instruction comprises a version information file identifier.

[0146] The running terminal queries the version information file according to the version information file identifier, and identifies the version information of the to-be-tested application program corresponding to the version information file.

[0147] Optionally, the instruction sending module 52 is further configured to:

[0148] If the test instruction comprises running terminal addresses corresponding to a plurality of to-be-tested application programs respectively, the test server sends version obtaining instructions to the corresponding running terminals respectively based on the running terminal addresses corresponding to each to-be-tested application program.

[0149] Optionally, the information obtaining module 53 is further configured to:

[0150] Each running terminal reads the version information of the to-be-tested application program from the version information file of the corresponding to-be-tested application program based on the version obtaining instruction received respectively.

[0151] Optionally, the application testing module 54 is further configured to:

[0152] The test server receives the version information of each to-be-tested application program, determines a deployment file of each to-be-tested application program in the server according to the version information of each to-be-tested application program, and tests each deployment file.

[0153] Further, the embodiment of the application provides another application program testing device, as shown in the figure, the device comprises: Figure 7 The device comprises:

[0154] An instruction receiving module 61 is configured to receive a test instruction for a to-be-tested application program by a test server, wherein the test instruction comprises a running terminal address of the to-be-tested application program.

[0155] An instruction sending module 62 is configured to send a version obtaining instruction to a running terminal of the to-be-tested application program based on the running terminal address.

[0156] An information obtaining module 63 is configured to read version information of the to-be-tested application program from a version information packaging file of the to-be-tested application program by the running terminal based on the version obtaining instruction.

[0157] The application test module 64 is configured to receive the version information by the test server, and determine a deployment file of the application to be tested in the server according to the version information, and test the deployment file.

[0158] The plug-in packaging module 65 is configured to obtain version information acquisition program code, and package a version information acquisition plug-in based on the version information acquisition program code, and install the version information acquisition plug-in in the test server.

[0159] The information packaging module 66 is configured to receive a packaging instruction of an application to be tested by an application packaging platform, wherein the packaging instruction comprises a running terminal address of the application to be tested and program code information of the application to be tested, collect version information of the application to be tested according to the program code information, and generate a version information file, generate an application packaging file based on the version information file and the program code information, and send the application packaging file to a running terminal corresponding to the running terminal address.

[0160] The file generation module 67 is configured to generate a version information file based on the version information of the application to be tested, and name the version information file according to a preset file naming rule.

[0161] The information collection module 68 is configured to embed a version information collection program in the application packaging platform, run the version information collection program, collect version information of the application to be tested based on the program code information, and generate a version information file.

[0162] Optionally, the information acquisition module 63 is further configured to:

[0163] The version acquisition instruction comprises a path of an application to be tested.

[0164] The running terminal decompresses the application packaging file under the path of the application to be tested, obtains a version information file, and identifies version information of the application to be tested corresponding to the version information file.

[0165] Optionally, the instruction sending module 62 is further configured to:

[0166] The test server starts the version information acquisition plug-in, and sends a version acquisition instruction to a running terminal corresponding to the running terminal address through the version information acquisition plug-in.

[0167] Optionally, the information acquisition module 63 is further configured to:

[0168] The version acquisition instruction comprises a version information file identifier.

[0169] The running terminal queries the version information file according to the version information file identifier, and identifies the version information of the to-be-tested application program corresponding to the version information file.

[0170] Optionally, the instruction sending module 62 is further configured to:

[0171] If the test instruction comprises running terminal addresses corresponding to the to-be-tested application programs respectively, the test server sends version acquisition instructions to the corresponding running terminals based on the running terminal addresses corresponding to each to-be-tested application program respectively.

[0172] Optionally, the information obtaining module 63 is further configured to:

[0173] Each running terminal reads the version information of the to-be-tested application program from the version information file of the corresponding to-be-tested application program based on the version acquisition instruction received by the running terminal respectively.

[0174] Optionally, the application testing module 64 is further configured to:

[0175] The test server receives the version information of each to-be-tested application program, determines deployment files of each to-be-tested application program in the server according to the version information of each to-be-tested application program, and tests each deployment file.

[0176] It should be noted that other corresponding descriptions of the functions of the application program testing device provided in the embodiments of the present application can be referred to the corresponding descriptions in the method, which will not be described here. Figures 1 to 5 The method.

[0177] Based on the above method as Figures 1 to 5 described, correspondingly, the embodiments of the present application also provide a storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the application program testing method as Figures 1 to 5 described above.

[0178] Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.), and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of the present application.

[0179] Based on the above method as Figures 1 to 5 described, and Figure 6 and Figure 7In order to achieve the above object, the embodiment of the application further provides a computer device, which can be a personal computer, a server, a network device, etc., and the computer device comprises a storage medium and a processor; the storage medium is used for storing a computer program; and the processor is used for executing the computer program to realize the above-mentioned application program testing method. Figures 1 to 5 The application program testing method.

[0180] Optionally, the computer device can further comprise a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface can comprise a display, an input unit such as a keyboard, etc., and the optional user interface can further comprise a USB interface, a card reader interface, etc. The network interface can optionally comprise a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0181] Those skilled in the art can understand that the structure of the computer device provided by the embodiment does not constitute a limitation on the computer device, and the computer device can comprise more or fewer components, or some components can be combined, or different components can be arranged.

[0182] The storage medium can further comprise an operating system and a network communication module. The operating system is a program for managing and saving the hardware and software resources of the computer device, and supports the running of the information processing program and other software and / or programs. The network communication module is used for realizing the communication among the components in the storage medium, and the communication with other hardware and software in the entity device.

[0183] Those skilled in the art can clearly understand from the above description of the embodiments that the application can be realized by means of software and a necessary general hardware platform, or can be realized by hardware. First, the test server receives the test instruction for the to-be-tested application program, wherein the test instruction comprises the running terminal address of the to-be-tested application program. The test server sends a version acquisition instruction to the running terminal of the to-be-tested application program based on the running terminal address. The running terminal reads the version information of the to-be-tested application program from the version information file of the to-be-tested application program based on the version acquisition instruction. The test server receives the version information, and determines the deployment file of the to-be-tested application program in the server according to the version information. The deployment file is tested. The version of the to-be-tested application program is acquired to determine the deployment file, and then the deployment file is tested, thereby improving the test efficiency of the tester.

[0184] Those skilled in the art can understand that the modules or flows in the drawings are not necessarily required for implementing the present application. Those skilled in the art can understand that the modules in the devices in the implementation scenarios can be distributed in the devices in the implementation scenarios according to the description of the implementation scenarios, or can be changed to be located in one or more devices different from the implementation scenarios. The modules in the above implementation scenarios can be combined into one module, or can be further split into multiple sub-modules.

[0185] The above application numbers are only for description, and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only some specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be thought of by those skilled in the art should fall within the protection scope of the present application.

Claims

1. An application testing method, characterized in that, The method, applied in a system architecture consisting of a test server and a running terminal, includes: The test server receives test instructions for the application to be tested, and then performs application testing on the application to be tested running on the terminal corresponding to the terminal address in the test instructions. There are multiple deployment files of the application to be tested deployed on the same server. The test server sends a version acquisition instruction to the running terminal of the application to be tested based on the running terminal address; The running terminal reads the version information of the application under test from the version information file of the application under test based on the version acquisition instruction; The test server receives the version information, determines the deployment file of the application to be tested on the server based on the version information, and tests the deployment file.

2. The method according to claim 1, characterized in that, The version acquisition instruction includes the path of the application to be tested; the running terminal reads the version information of the application to be tested from the version information file of the application to be tested based on the version acquisition instruction, including: The running terminal decompresses the application package file under the path of the application to be tested, obtains the version information file, and identifies the version information of the application to be tested corresponding to the version information file.

3. The method according to claim 1, characterized in that, Before the test server receives the test instructions for the application to be tested, the method further includes: Obtain version information and program code, and based on the version information and program code, encapsulate a version information acquisition plugin; Install the version information acquisition plugin on the test server; Accordingly, the test server sends a version acquisition instruction to the terminal running the application under test based on the running terminal address, including: The test server activates the version information acquisition plugin and sends a version acquisition command to the running terminal corresponding to the running terminal address through the version information acquisition plugin.

4. The method according to any one of claims 1 to 3, characterized in that, Before the test server receives the test instructions for the application to be tested, the method further includes: The application packaging platform receives a packaging instruction for the application to be tested, wherein the packaging instruction includes the running terminal address of the application to be tested and the program code information of the application to be tested; Based on the program code information, collect the version information of the application to be tested and generate a version information file; Based on the version information file and the program code information, an application package file is generated and sent to the running terminal corresponding to the running terminal address.

5. The method according to claim 4, characterized in that, The generated version information file includes: Based on the version information of the application to be tested, a version information file is generated, and the version information file is named according to a preset file naming rule; Accordingly, the version acquisition instruction includes a version information file identifier; the running terminal reads the version information of the application under test from the version information file of the application under test based on the version acquisition instruction, including: The running terminal queries the version information file based on the version information file identifier and identifies the version information of the application to be tested corresponding to the version information file.

6. The method according to claim 4, characterized in that, The method further includes: Embed the version information collection program into the application packaging platform; Accordingly, the step of collecting the version information of the application under test based on the program code information and generating a version information file includes: Run the version information collection program and collect the version information of the application under test based on the program code information, and generate a version information file.

7. The method according to claim 4, characterized in that, The test server sends a version retrieval instruction to the terminal running the application under test based on the terminal address, including: If the test instruction includes the running terminal addresses corresponding to multiple applications under test, then the test server sends version acquisition instructions to multiple corresponding running terminals based on the running terminal address corresponding to each application under test. Accordingly, the running terminal reads the version information of the application under test from the version information file of the application under test based on the version acquisition instruction, including: Each of the running terminals reads the version information of the application under test from the version information file of the corresponding application under test based on the version acquisition instruction it receives. Accordingly, the test server receives the version information, determines the deployment file of the application to be tested on the server based on the version information, and tests the deployment file, including: The test server receives the version information of each application to be tested, determines the deployment file of each application to be tested on the server based on the version information, and tests each deployment file.

8. An application testing device, characterized in that, The device, used in a system architecture consisting of a test server and a running terminal, includes: The instruction receiving module is used by the test server to receive test instructions from the application to be tested, so that the test server can perform application testing on the application to be tested running in the running terminal corresponding to the running terminal address based on the running terminal address in the test instruction. In this case, deployment files of multiple applications to be tested are deployed on the same server. The instruction sending module is used to send a version acquisition instruction to the running terminal of the application to be tested based on the running terminal address; The information acquisition module is used by the running terminal to read the version information of the application under test from the version information package file of the application under test based on the version acquisition instruction; The application testing module is used by the test server to receive the version information, determine the deployment file of the application to be tested on the server based on the version information, and test the deployment file.

9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for testing the application according to any one of claims 1 to 7.

10. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for testing the application program as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Android application establishment method and system

    CN106648786A

  • Compatibility test method and apparatus, computer device and medium

    CN109446069A