Application software testing method, device, computer equipment and storage medium
By analyzing the instruction message sent by the software server to decide whether to upgrade the application software to the test version, it solves the problem of bloated and complex code, realizes simplified management and comparative observation of versions, and reduces the development workload.
Patent Information
- Application Number
- CN201811207615.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2038-10-17
AI Technical Summary
The code of the existing application software test version is bloated and complex, and difficult to maintain, which increases the workload of developers, and it is difficult to judge and execute the original version or the test version at the same time in the terminal.
By receiving the instruction message sent by the software server, the special identifier is parsed. If it is the preset first identifier, the application software is upgraded to the test version; if it is the preset second identifier, the current version is maintained, thereby simplifying testing. Version code and maintenance process, and install the test version on some terminals, and install the current version on other terminals for comparison and observation.
It simplifies the code and maintenance process of application software test versions, enables version comparison and observation between different terminals, and reduces code complexity and maintenance difficulty.
Smart Images

Figure CN109344073B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software technology, and in particular to an application software testing method, device, computer equipment and storage medium. Background Art
[0002] With the development of technology, mobile phones, computers and other terminals are becoming more and more popular. The application software installed in the terminal has enriched the functions of the terminal. In order to provide better services to users, the application software will be constantly updated.
[0003] In the prior art, the release of application software adopts the grayscale release method, that is, when the test version of the application software is released, some users are allowed to continue to use the original version, and some users start to use the test version. If the users have no objection to the test version, then the scope is gradually expanded and all users are migrated to the test version. The above method is convenient for comparing and observing the operation of the test version and the user's adaptation to the test version.
[0004] However, when the above method is adopted, it is necessary to integrate both the test version and the original version of the solution in the test version of the application software, and when the application software is running, the terminal needs to determine which solution to execute. Specifically, according to the user, some users use the original version of the solution, and the other users use the test version of the solution. The existing solution will make the code of the test version very bloated and complicated, difficult to maintain, and increase the workload of developers. Summary of the invention
[0005] The embodiments of the present invention provide an application software testing method, apparatus, computer equipment and storage medium, aiming to solve the problem of bloated and complex application software test version codes.
[0006] In a first aspect, an embodiment of the present invention provides an application software testing method, which includes:
[0007] If an indication message sent by the software server is received, the special identifier contained in the indication message is parsed and obtained, wherein the indication message is sent by the software server to the terminal when releasing a test version of the application software;
[0008] If the special identifier included in the indication message is a preset first identifier, upgrading the application software to a test version;
[0009] If the special identifier included in the indication message is a preset second identifier, the application software is kept at the current version.
[0010] In a second aspect, an embodiment of the present invention further provides an application software testing device, which includes a unit for executing the above method.
[0011] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0013] The embodiment of the present invention provides an application software testing method, device, computer equipment and storage medium. The method includes: if an indication message sent by a software server is received, parsing and obtaining a special identifier contained in the indication message; if the special identifier contained in the indication message is a first identifier, upgrading the application software to a test version; if the special identifier contained in the indication message is a second identifier, keeping the application software in the current version, so that the test version of the application software does not need to include the original version, greatly simplifying the code of the test version of the application software, and simplifying the maintenance process of the code of the test version of the application software. At the same time, it is realized that the test version of the application software is installed in a part of the terminals, and the current version of the application software is installed in another part of the terminals, which is convenient for comparing and observing the running effect of the test version of the application software. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0015] Figure 1 A schematic diagram of an application scenario of an application software testing method provided by an embodiment of the present invention;
[0016] Figure 2 A flowchart of an application software testing method provided by an embodiment of the present invention;
[0017] Figure 3 A schematic diagram of a sub-flow diagram of an application software testing method provided by an embodiment of the present invention;
[0018] Figure 4 A flowchart of an application software testing method provided by another embodiment of the present invention;
[0019] Figure 5 A schematic diagram of a sub-flow diagram of an application software testing method provided by another embodiment of the present invention;
[0020] Figure 6 A schematic diagram of a sub-flow diagram of an application software testing method provided by another embodiment of the present invention;
[0021] Figure 7 A schematic block diagram of an application software testing device provided by an embodiment of the present invention;
[0022] Figure 8 A schematic block diagram of an upgrade unit of an application software testing device provided by an embodiment of the present invention;
[0023] Fig. 9 A schematic block diagram of an application software testing device provided in another embodiment of the present invention;
[0024] Fig.10 A schematic block diagram of a second acquisition unit of an application software testing device provided by another embodiment of the present invention;
[0025] Fig.11 A schematic block diagram of a return unit of an application software testing device provided in another embodiment of the present invention; and
[0026] Fig.12 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0029] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0030] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0031] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0032] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of an application scenario of an application software testing method provided by an embodiment of the present invention. Figure 2 A schematic flow chart of an application software testing method provided in an embodiment of the present invention.
[0033] See also Figure 1 , an application software testing method proposed in the implementation of the present invention is applied to the terminal 10. When the software server 20 releases the test version of the application software, it will send an indication message to the terminal 10. Among them, the special identifier contained in a part of the indication message is the first identifier; the special identifier contained in the other part of the indication message is the second identifier. The terminal 10 parses and obtains the special identifier contained in the indication message. When the special identifier contained in the indication message is the preset first identifier, the terminal 10 upgrades the application software to the test version; when the special identifier contained in the indication message is the preset second identifier, the terminal 10 keeps the application software in the current version.
[0034] Figure 2 The flowchart of an application software testing method provided by an embodiment of the present invention is shown in the figure. As shown in the figure, the method includes the following steps S1-S3.
[0035] S1. If an indication message sent by a software server is received, parse and obtain a special identifier contained in the indication message.
[0036] The indication message is sent by the software server to the terminal when releasing a test version of the application software.
[0037] In a specific implementation, when the software server releases the test version of the application software, it sends an indication message to the terminal, and the indication message includes a special identifier. The software server sends an indication message with a special identifier as the first identifier to some terminals, and sends an indication message with a special identifier as the second identifier to another part of the terminals. Specifically, the software server randomly selects a part of the terminals from all the terminals and sends the indication message with a special identifier as the first identifier to them, so that they upgrade the application software to the test version; and sends the indication message with a special identifier as the second identifier to the remaining terminals, so that they keep the application software at the current version.
[0038] It should be noted that the special identifier is used to indicate the action performed by the terminal. The special identifier is a word, a symbol, or a combination of words and symbols. For example, in one embodiment, the first identifier is the number "1"; the second identifier is the number "0".
[0039] S2. If the special identifier included in the indication message is a preset first identifier, the application software is upgraded to a test version.
[0040] The server sends two different types of indication messages to the terminal. The special identifier included in the first indication message is the first identifier. The special identifier included in the second indication message is the second identifier. If the terminal receives the first indication message, the terminal upgrades the application software to the test version. If the terminal receives the second indication message, the terminal keeps the application software in the current version. Thus, the test version of the application software is installed in some terminals, and the current version of the application software is installed in other terminals, which facilitates comparison and observation of the running effect of the test version of the application software.
[0041] In a specific implementation, if it is parsed that the special identifier contained in the indication message sent by the server is the preset first identifier, the application software is upgraded to the test version.
[0042] In one embodiment, if Figure 3 As shown, the above step S2 may include steps S21-S22.
[0043] S21. Obtain a plug-in of a test version of the application software from a software server.
[0044] In a specific implementation, a plug-in of a test version of the application software is downloaded from a software server.
[0045] S22. Install a plug-in of the test version of the application software to upgrade the application software to the test version.
[0046] In a specific implementation, after the plug-in of the test version of the application software is downloaded, the plug-in of the test version of the application software is installed to upgrade the application software to the test version.
[0047] S3. If the special identifier included in the indication message is a preset second identifier, keep the application software at the current version.
[0048] In a specific implementation, if it is parsed that the special identifier contained in the indication message sent by the software server is the preset second identifier, the application software is kept at the current version.
[0049] In this solution, the special identifier included in the indication message received by some terminals is the preset second identifier, and these terminals do not upgrade the application software and continue to keep the application software at the current version. These terminals will provide comparison data for the test version of the application software, so that the software server can adjust and correct the test version.
[0050] By applying the technical solution of this embodiment, if an indication message sent by a software server is received, the special identifier contained in the indication message is parsed and obtained; if the special identifier contained in the indication message is a preset first identifier, the application software is upgraded to a test version; if the special identifier contained in the indication message is a preset second identifier, the application software is kept at the current version. As a result, the test version of the application software does not need to include the solution of the original version, which greatly simplifies the code of the test version of the application software and simplifies the maintenance process of the code of the test version of the application software. At the same time, it is possible to install the test version of the application software in a part of the terminals and the current version of the application software in another part of the terminals, which is convenient for comparing and observing the running effect of the test version of the application software.
[0051] Figure 4 FIG. 1 is a flow chart of an application software testing method provided by another embodiment of the present invention. Figure 4 As shown, the application software testing method of this embodiment includes steps S41-S48. Steps S41-S43 are similar to steps S1-S3 in the above embodiment and are not described here. The following is a detailed description of the added steps S44-S48 in this embodiment.
[0052] S44: If an abnormal event is detected in the application software after upgrading to the test version, an error message is sent to the software server.
[0053] The error message includes a log file of the application software.
[0054] In a specific implementation, if an abnormal event is detected in the upgraded application software, an error message is sent to the server, wherein the error message includes a log file of the application software.
[0055] Abnormal events include application freezing, application crash, and application ANR (Application Not Responding).
[0056] The log files of application software contain events recorded by the application software or terminal system, mainly recording events related to the operation of the application software. If an abnormal event occurs in the application software, the corresponding abnormal event record can be found in the program event log, which makes it easier for the software server to discover and solve the problem of the application software.
[0057] S45. Obtain the frequency of abnormal events occurring in the application software after upgrading to the test version.
[0058] In this solution, in order to evaluate the running effect of the upgraded application software, the frequency of abnormal events occurring in the application software after upgrading to the test version is obtained. Abnormal events include application freeze, application crash, and application ANR. The running effect of the test version of the application software is judged according to the frequency of abnormal events occurring in the application software after upgrading to the test version. If the frequency of abnormal events occurring in the application software after upgrading to the test version is too high, it means that the running effect of the test version of the application software is poor, otherwise, it means that the running effect of the test version of the application software is good.
[0059] In one embodiment, if Figure 5 As shown, the above step S45 may include steps S451-S452.
[0060] S451. Obtain the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events that occur.
[0061] In specific implementation, the statistical cycle can be set by those skilled in the art according to specific circumstances. For example, in one embodiment, the statistical cycle is set to one week. After the statistical cycle is set, the running time of the application software upgraded to the test version and the number of abnormal events occurring in the statistical cycle are counted respectively.
[0062] S452: Determine the frequency of abnormal events occurring in the application software after upgrading to the test version according to the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events occurring.
[0063] In a specific implementation, the frequency of abnormal events occurring in the application software after upgrading to the test version can be obtained by dividing the number of abnormal events occurring in the application software after upgrading to the test version within the statistical period by the running time of the application software after upgrading to the test version within the statistical period.
[0064] For example, in one embodiment, the statistical period is 1 week, the running time of the application software after upgrading to the test version during the statistical period is 10 hours, and the number of abnormal events occurring in the application software after upgrading to the test version during the statistical period is 10 times, then the frequency of abnormal events occurring in the application software after upgrading to the test version is 1 time / h.
[0065] S46: Determine whether the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than a preset frequency threshold.
[0066] In a specific implementation, the frequency threshold is set by those skilled in the art according to specific circumstances. For example, in one embodiment, the frequency threshold is set to 0.5 times / h.
[0067] After obtaining the frequency of abnormal events occurring in the upgraded application software, it is determined whether the frequency of abnormal events occurring in the upgraded application software is greater than a preset frequency threshold. If the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than the preset frequency threshold, it indicates that the running effect of the test version of the application software is poor, otherwise, it indicates that the running effect of the test version of the application software is good.
[0068] S47: If the judgment result is that the frequency of abnormal events occurring in the application software after the upgrade to the test version is greater than a preset frequency threshold, the application software is rolled back to the version before the upgrade to the test version.
[0069] In the specific implementation, if the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than the preset frequency threshold, it means that the test version of the application software has many problems. In order not to affect the user experience, in this solution, the application software is rolled back to the version before upgrading to the test version.
[0070] In one embodiment, if Figure 6 As shown, the above step S47 may include steps S471-S472.
[0071] S471. Obtain a plug-in for upgrading the application software to a version before the test version from a software server.
[0072] When there are many problems with the test version of the application software, it is necessary to roll back the application software to the version before the upgrade. In this solution, in order to achieve the above purpose, when the software server releases the plug-in of the test version, it also releases the plug-in of the previous version, so that when there are many problems with the test version of the application software, the terminal can roll back the application software to the version before the upgrade.
[0073] In a specific implementation, a plug-in of a test version of the application software is downloaded from a software server.
[0074] S472: Install a plug-in for the version before the application software is upgraded to the test version to roll back the application software to the version before the application software is upgraded to the test version.
[0075] In a specific implementation, after downloading the plug-in of the version before the application software is upgraded to the test version, the plug-in of the version before the application software is upgraded to the test version is installed to return to the version before the application software is upgraded to the test version.
[0076] S48. If the judgment result is that the frequency of abnormal events occurring in the application software after upgrading to the test version is not greater than a preset frequency threshold, the application software is kept in the test version.
[0077] In a specific implementation, if the frequency of abnormal events occurring in the application software after upgrading to the test version is not greater than the preset frequency threshold, it means that the test version of the application software has fewer problems and does not affect user use, so the application software can be kept in the test version.
[0078] Figure 7 FIG. 7 is a schematic block diagram of an application software testing device 70 provided in an embodiment of the present invention. Figure 7 As shown, corresponding to the above application software testing method, the present invention also provides an application software testing device 70. The application software testing device 70 includes a unit for executing the above application software testing method, and the device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. Specifically, please refer to Figure 7 The application software testing device 70 includes a parsing unit 71 , an upgrading unit 72 and a first maintaining unit 73 .
[0079] The parsing unit 71 is used for parsing and obtaining a special identifier contained in the indication message when receiving the indication message sent by the software server, wherein the special identifier is a word, a symbol, or a combination of words and symbols. When the software server releases the test version of the application software, the software server sends an indication message in which the special identifier is a first identifier to some terminals, and sends an indication message in which the special identifier is a second identifier to another terminal;
[0080] An upgrading unit 72, configured to upgrade the application software to a test version if the special identifier included in the indication message is the first identifier;
[0081] The first keeping unit 73 is configured to keep the application software at the current version if the special identifier included in the indication message is the second identifier.
[0082] In one embodiment, if Figure 8 As shown, the upgrading unit 72 includes a first acquiring unit 721 and a first installing unit 722 .
[0083] A first obtaining unit 721 is used to obtain a plug-in of a test version of the application software from a software server;
[0084] The first installation unit 722 is used to install the plug-in of the test version of the application software to upgrade the application software to the test version.
[0085] Fig. 9 FIG. 7 is a schematic block diagram of an application software testing device 70 provided by another embodiment of the present invention. Fig. 9 As shown, the application software testing device 70 of this embodiment is based on the above embodiment and has a sending unit 74, a second obtaining unit 75, a judging unit 76, a returning unit 77 and a second holding unit 78 added thereto.
[0086] The sending unit 74 is used to send an error message to the software server if it is detected that an abnormal event occurs in the application software after being upgraded to the test version, and the error message includes a log file of the application software.
[0087] The second obtaining unit 75 is used to obtain the frequency of abnormal events occurring in the application software after being upgraded to the test version.
[0088] The judging unit 76 is used to judge whether the frequency of abnormal events occurring in the application software after being upgraded to the test version is greater than a preset frequency threshold.
[0089] The rolling back unit 77 is used to roll back the application software to the version before it was upgraded to the test version if the judgment result of the judgment unit 76 is that the frequency of abnormal events occurring in the application software after being upgraded to the test version is greater than a preset frequency threshold.
[0090] The second maintaining unit 78 is configured to maintain the application software in the test version if the determination result of the determining unit 76 is that the frequency of abnormal events occurring in the application software after being upgraded to the test version is not greater than a preset frequency threshold.
[0091] See also Fig.10 In one embodiment, the second acquisition unit 75 includes a third acquisition unit 751 and a determination unit 752 .
[0092] The third acquisition unit 751 is used to acquire the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events that occur;
[0093] The determination unit 752 is used to determine the frequency of abnormal events occurring in the application software after upgrading to the test version according to the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events occurring.
[0094] See also Fig.11In one embodiment, the above return unit 77 includes a fourth acquisition unit 771 and a second installation unit 772 .
[0095] The fourth obtaining unit 771 is used to obtain, from the software server, a plug-in of a version before the application software is upgraded to the test version.
[0096] The second installation unit 772 is used to install a plug-in of the version before the application software is upgraded to the test version to roll back the application software to the version before the application software is upgraded to the test version.
[0097] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned application software testing device 70 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0098] The above-mentioned application software testing device can be implemented in the form of a computer program. The computer program can be Fig.12 Runs on the computer device shown.
[0099] See also Fig.12 , Fig.12 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal. The terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device.
[0100] See also Fig.12 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0101] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute an application software testing method.
[0102] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0103] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an application software testing method.
[0104] The network interface 505 is used to communicate with other devices over the network. Fig.12The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0105] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:
[0106] If an indication message sent by a software server is received, a special identifier contained in the indication message is parsed and obtained, wherein the special identifier is a word, a symbol, or a combination of a word and a symbol. When the software server releases a test version of the application software, the software server sends an indication message whose special identifier is a first identifier to some terminals, and sends an indication message whose special identifier is a second identifier to another part of the terminals;
[0107] If the special identifier included in the indication message is the first identifier, upgrading the application software to a test version;
[0108] If the special identifier included in the indication message is the second identifier, the application software is kept at the current version.
[0109] In one embodiment, the processor 502 executes the computer program 5032 stored in the memory to further implement the following steps:
[0110] If an abnormal event is detected in the application software after upgrading to the test version, an error message is sent to the software server, and the error message includes a log file of the application software.
[0111] In one embodiment, the processor 502 executes the computer program 5032 stored in the memory to further implement the following steps:
[0112] Obtain the frequency of abnormal events occurring in the application software after upgrading to the test version;
[0113] Determine whether the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than a preset frequency threshold;
[0114] If the judgment result is that the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than a preset frequency threshold, the application software is rolled back to the version before upgrading to the test version.
[0115] In one embodiment, the processor 502 executes the computer program 5032 stored in the memory to further implement the following steps:
[0116] If the result of the determination is that the frequency of abnormal events occurring in the application software after the upgrade to the test version is not greater than a preset frequency threshold, the application software is kept in the test version.
[0117] In one embodiment, when the processor 502 implements the step of upgrading the application software to the test version, the processor 502 specifically implements the following steps:
[0118] Obtaining a plug-in of a test version of the application software from a software server;
[0119] Install the plug-in of the test version of the application software to upgrade the application software to the test version.
[0120] In one embodiment, when the processor 502 implements the step of obtaining the frequency of abnormal events occurring in the application software after the application software is upgraded to the test version, the processor 502 specifically implements the following steps:
[0121] Obtaining the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events that occurred;
[0122] The frequency of abnormal events occurring in the application software after upgrading to the test version is determined according to the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events occurring.
[0123] In one embodiment, when implementing the step of returning the application software to a version before upgrading to the test version, the processor 502 specifically implements the following steps:
[0124] Obtaining from a software server a plug-in for a version before the application software is upgraded to the test version;
[0125] A plug-in is installed for the version before the application software is upgraded to the test version to roll back the application software to the version before the application software is upgraded to the test version.
[0126] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may 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 gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0127] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0128] Therefore, the present invention also provides a computer-readable storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the following steps:
[0129] If an indication message sent by a software server is received, a special identifier contained in the indication message is parsed and obtained, wherein the special identifier is a word, a symbol, or a combination of a word and a symbol. When the software server releases a test version of the application software, the software server sends an indication message whose special identifier is a first identifier to some terminals, and sends an indication message whose special identifier is a second identifier to another part of the terminals;
[0130] If the special identifier included in the indication message is the first identifier, upgrading the application software to a test version;
[0131] If the special identifier included in the indication message is the second identifier, the application software is kept at the current version.
[0132] In one embodiment, the processor further implements the following steps when executing the computer program:
[0133] If an abnormal event is detected in the application software after upgrading to the test version, an error message is sent to the software server, and the error message includes a log file of the application software.
[0134] In one embodiment, the processor further implements the following steps when executing the computer program:
[0135] Obtain the frequency of abnormal events occurring in the application software after upgrading to the test version;
[0136] Determine whether the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than a preset frequency threshold;
[0137] If the judgment result is that the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than a preset frequency threshold, the application software is rolled back to the version before upgrading to the test version.
[0138] In one embodiment, the processor further implements the following steps when executing the computer program:
[0139] If the result of the determination is that the frequency of abnormal events occurring in the application software after the upgrade to the test version is not greater than a preset frequency threshold, the application software is kept in the test version.
[0140] In one embodiment, when the processor executes the computer program to implement the step of upgrading the application software to the test version, the processor specifically implements the following steps:
[0141] Obtaining a plug-in of a test version of the application software from a software server;
[0142] Install the plug-in of the test version of the application software to upgrade the application software to the test version.
[0143] In one embodiment, when the processor executes the computer program to implement the step of obtaining the frequency of abnormal events occurring in the application software after the application software is upgraded to the test version, the processor specifically implements the following steps:
[0144] Obtaining the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events that occurred;
[0145] The frequency of abnormal events occurring in the application software after upgrading to the test version is determined according to the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events occurring.
[0146] In one embodiment, when the processor executes the computer program to implement the step of returning the application software to a version before upgrading to the test version, the processor specifically implements the following steps:
[0147] Obtaining from a software server a plug-in for a version before the application software is upgraded to the test version;
[0148] A plug-in is installed for the version before the application software is upgraded to the test version to roll back the application software to the version before the application software is upgraded to the test version.
[0149] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0151] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0152] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0155] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0156] The above is only a specific embodiment of the present invention, but the protection scope of the present invention 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 by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. An application software testing method, characterized in that: include: If an indication message sent by a software server is received, a special identifier contained in the indication message is parsed and obtained, wherein the special identifier is a word, a symbol, or a combination of a word and a symbol. When the software server releases a test version of the application software, the software server sends an indication message whose special identifier is a first identifier to some terminals, and sends an indication message whose special identifier is a second identifier to another part of the terminals; If the special identifier included in the indication message is the first identifier, obtaining a plug-in of the test version of the application software from a software server; Installing a plug-in of the test version of the application software to upgrade the application software to the test version; Obtaining the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events that occurred; Determining the frequency of abnormal events occurring in the application software after upgrading to the test version according to the running time of the application software after upgrading to the test version within a preset statistical period and the number of abnormal events occurring; If the special identifier included in the indication message is the second identifier, keeping the application software at the current version; If an abnormal event is detected in the application software after upgrading to the test version, an error message is sent to the software server, wherein the error message contains a log file of the application software, and the log file includes events recorded by the application software or the terminal system. If an abnormal event occurs in the application software, an abnormal event record is obtained from the recorded event to solve the problem of the application software; Obtain the frequency of abnormal events occurring in the application software after upgrading to the test version; Determine whether the frequency of abnormal events occurring in the application software after upgrading to the test version is greater than a preset frequency threshold; If the frequency of abnormal events occurring in the application software after being upgraded to the test version is greater than a preset frequency threshold, the application software is rolled back to the version before being upgraded to the test version.
2. The method according to claim 1, characterized in that The step of returning the application software to a version before upgrading to the test version includes: Obtaining from a software server a plug-in for a version before the application software is upgraded to the test version; A plug-in is installed for the version before the application software is upgraded to the test version to roll back the application software to the version before the application software is upgraded to the test version.
3. The method according to claim 1, characterized in that The method further comprises: If the frequency of abnormal events occurring in the application software after upgrading to the test version is not greater than a preset frequency threshold, the application software is kept in the test version.
4. An application software testing device, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 3.
5. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 can be implemented.
