Application program testing method, device and electronic device

By obtaining and analyzing the number of users and usage times between application versions, it solves the problem of difficulty in ensuring the quality of buried points, achieves more accurate analysis of abnormal usage times, and improves the analysis effect.

CN112162918BActive Publication Date: 2024-09-06BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to guarantee the quality of buried points, resulting in poor analysis results of application usage times and poor abnormality analysis results.

Method used

By obtaining the number of users and usage times of the first version of the program and the second version of the program during the target release period, and combined with analysis to see if there are any abnormalities, select the number of users and usage times in the same release volume period to analyze the use of the second version of the program. times to ensure that the user level is relatively stable, so as to accurately analyze whether there are any abnormalities in the number of uses.

Benefits of technology

It improves the accuracy of abnormal analysis and the abnormal analysis effect of usage times, avoids data differences caused by periodic fluctuations, and ensures the accuracy of analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112162918B
    Figure CN112162918B
Patent Text Reader

Abstract

The present disclosure relates to a testing method, device and electronic device for an application, and belongs to the field of application technology. The method includes: obtaining a first version of the program and a second version of the program; obtaining a first user volume and a first usage count of the first version of the program within a target release period, and obtaining a second user volume and a second usage count of the second version of the program within a target release period; analyzing whether the second usage count is abnormal based on the first user volume, the first usage count and the second user volume. Through this method, it is possible to accurately analyze whether the usage count of the second version of the program is abnormal, improve the accuracy of the abnormality analysis, and improve the abnormality analysis effect of the usage count.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Tracking analysis is a data collection method for website analysis. The accuracy of tracking points on the client side of an application is related to the statistical effect of data related to the user's use of the application. Such data, such as the average number of uses per person, usually needs to ensure the effectiveness of data analysis, so that these data can be used to analyze the functions that the application can provide.

[0003] In the related technology, it is determined whether there is any abnormality in the data reported by each tracking point on the gray version program, or whether there is any abnormality in the number of times the online version program is used by monitoring indicators on the online version program.

[0004] In these methods, the quality of the tracking points is difficult to guarantee, which affects the analysis effect of the number of times used, resulting in poor analysis effect of abnormal number of times used. Summary of the invention

[0005] The present disclosure provides an application testing method, device, electronic device, storage medium and computer program product to at least solve the technical problem that the quality of the buried points is difficult to ensure in the related art, which affects the analysis effect of the number of times of use and leads to poor abnormal analysis effect of the number of times of use. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a method for testing an application is provided, comprising: obtaining a first version program and a second version program; obtaining a first user volume and a first usage count of the first version program within a target release period, and obtaining a second user volume and a second usage count of the second version program within the target release period; analyzing whether there is an abnormality in the second usage count based on the first user volume, the first usage count and the second user volume.

[0007] According to a second aspect of an embodiment of the present disclosure, there is provided a testing device for an application, comprising: a first acquisition module, configured to acquire a first version program and a second version program; a second acquisition module, configured to acquire a first user volume and a first usage count of the first version program within a target release period, and acquire a second user volume and a second usage count of the second version program within the target release period; and an analysis module, configured to analyze whether there is an abnormality in the second usage count based on the first user volume, the first usage count and the second user volume.

[0008] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the testing method of the application as described above.

[0009] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the test method of the application as described above.

[0010] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When the computer program is executed by a processor of an electronic device, the electronic device can execute the test method of the application as described above.

[0011] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: by obtaining the first version program and the second version program, and obtaining the first user volume and the first usage count of the first version program in the target release period, and obtaining the second user volume and the second usage count of the second version program in the target release period, and analyzing whether there is an abnormality in the second usage count based on the first user volume, the first usage count and the second user volume, since the user volume and the usage count of the first version program in the same release and volume period are selected to analyze the usage count of the second version program, and the user volume levels of the first version program and the second version program in the same release and volume period are relatively stable, it is possible to accurately analyze whether there is an abnormality in the usage count of the second version program, thereby improving the accuracy of the abnormality analysis and improving the abnormality analysis effect of the usage count.

[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0014] Figure 1 The present invention is a flowchart of a method for testing an application program according to an exemplary embodiment.

[0015] Figure 2 The present invention is a flowchart of a method for testing an application program according to another exemplary embodiment.

[0016] Figure 3 The present invention is a flowchart of a method for testing an application program according to yet another exemplary embodiment.

[0017] Figure 4 The invention is a block diagram of a testing device for an application program according to an exemplary embodiment.

[0018] Figure 5 The invention is a block diagram of a testing device for an application program according to another exemplary embodiment.

[0019] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0020] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0022] Figure 1 The present invention is a flowchart of a method for testing an application program according to an exemplary embodiment.

[0023] This embodiment is described by taking an example in which the application program testing method is configured as an application program testing device.

[0024] In this embodiment, the application testing method may be configured in an application testing device. The application testing device may be set in a server or in an electronic device. This is not limited in the embodiments of the present disclosure.

[0025] This embodiment takes the case where the application program testing method is configured in an electronic device as an example. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, or other hardware device with various operating systems and imaging devices.

[0026] It should be noted that the execution subject of the embodiment of the present disclosure may be, for example, a central processing unit (CPU) in a server or electronic device in terms of hardware, or may be, for example, a related background service in a server or electronic device in terms of software, without limitation.

[0027] The execution subject of the embodiments of the present disclosure may specifically be an application testing platform running on a server or an electronic device, and there is no limitation to this.

[0028] like Figure 1 As shown, the testing method of the application includes the following steps:

[0029] In step S101, a first version program and a second version program are obtained.

[0030] Among them, an application refers to a computer program developed and run on an operating system in order to complete one or several specific tasks. The application can provide users with corresponding application functions. As the application functions are gradually improved, developers will usually continue to fix application bugs and improve application functions, thus forming multiple versions of the application. Higher-version programs usually have more complete functions than lower-version programs.

[0031] The low-version program obtained by the embodiment of the present disclosure can be called the first-version program, and then user data related to the first-version program can be collected, so as to use the user data of the first-version program to analyze whether there is any abnormality in the user data of the high-version program (which can be called the second-version program).

[0032] In the specific implementation process, the application testing platform can be used to analyze the version number of the second version program, thereby determining a version program lower than the version number as the first version program, and then executing the step of obtaining the number of users and usage times of the first version program.

[0033] In step S102, a first number of users and a first number of times of use of the first version of the program in the target release period are obtained, and a second number of users and a second number of times of use of the second version of the program in the target release period are obtained.

[0034] The amount of users associated with the first version of the program may be referred to as a first amount of users, and the number of times the program is used associated with the first version of the program may be referred to as a first number of times used.

[0035] The first user quantity can be used to describe the user level of the first version of the program, that is, the number of users associated with the first version of the program, and the first usage count can be used to describe the usage frequency of the first version of the program.

[0036] For example, the first user quantity can be, for example, the number of user accounts that register the first version of the program, the first user quantity can also be the number of users who start the first version of the program within a certain time period, or the first user quantity can also be the number of users who register the first version of the program and start the first version of the program within a certain time period. There is no limitation on this.

[0037] For example, the first usage count may be, for example, the average usage count per person of function A (function A is, for example, a live broadcast function) of the first version of the program within a certain period of time, or the median usage count, without limitation.

[0038] The amount of users associated with the second version of the program may be referred to as a second amount of users, and the number of times of use associated with the second version of the program may be referred to as a second number of times of use.

[0039] The second user quantity can be used to describe the user level of the second version of the program, that is, the number of users associated with the second version of the program, and the second usage count can be used to describe the usage frequency of the second version of the program.

[0040] For example, the second user quantity can be, for example, the number of user accounts that have registered the second version of the program, the second user quantity can also be the number of users who start the second version of the program within a certain time period, or the second user quantity can also be the number of users who register the second version of the program and start the second version of the program within a certain time period. There is no limitation on this.

[0041] For example, the second usage count may be, for example, the average usage count per person of function A (function A is, for example, a live broadcast function) of the second version of the program within a certain time period, or the median usage count, without limitation.

[0042] In the embodiment of the present disclosure, in order to analyze whether there is an abnormality in the second usage count of the second version of the program on the basis of a relatively stable user level, the user volume and usage count of the first version of the program in the same release period are selected to analyze the usage count of the second version of the program.

[0043] During the execution process, the first number of users and the first number of usages of the first version of the program within the target release period can be obtained, and the second number of users and the second number of usages of the second version of the program within the target release period can be obtained, so as to use the first number of users and the first number of usages within the target release period, combined with the second number of users of the second version of the program within the target release period to analyze whether there is an abnormality in the second number of usages.

[0044] The above-mentioned target release period has the following characteristics, for example: within the target release period, the number of users of the first version of the program accounts for approximately 2% of the number of users during the peak period, and correspondingly, the number of users of the second version of the program accounts for approximately 2% of the number of users during the peak period. Therefore, when the user data of the first version of the program and the user data of the second version are obtained accordingly during the target release period, the stability of the user level can be guaranteed, and the data differences caused by periodic fluctuations can be avoided, which effectively solves the technical problem of inaccurate analysis caused by directly analyzing the number of times the second version of the program is used and the possible periodic fluctuations.

[0045] Optionally, the target release period may be the period within the second day of the phased increase in volume of the third-party release channel, or the period within the first day of the phased increase in volume of the third-party release channel, or the period of any day after the third day of the phased increase in volume of the third-party release channel.

[0046] In the disclosed embodiment, the target release period is configured as the period within the second day of the phased release of the third-party release channel, so that the data volume is at an appropriate level, which can not only ensure the analysis and prediction effect, but also effectively avoid the continued release of problematic version programs, thereby reducing losses in a timely manner.

[0047] The third-party publishing channel mentioned above may be, for example, an official publishing channel of an operating system carrying the application, such as an Android operating system publishing channel or an Apple operating system publishing channel, and there is no limitation to this.

[0048] In step S103, whether the second usage times are abnormal is analyzed based on the first user quantity, the first usage times and the second user quantity.

[0049] After obtaining the first version of the program, obtaining the first user volume and the first usage count of the first version of the program within the target release period, and obtaining the second user volume and the second usage count of the second version of the program within the target release period, it is possible to analyze whether there is an abnormality in the second usage count based on the first user volume, the first usage count and the second user volume.

[0050] That is to say, the present invention adopts the first user volume and the first usage times of the low-version first-version program within the target release period to analyze whether there is an abnormality in the second usage times of the high-version second-version program within the same target release period. Since it has a relatively stable user volume basis, it avoids data differences caused by periodic fluctuations, thereby being able to accurately analyze whether there is an abnormality in the usage times of the second-version program, thereby improving the accuracy of abnormality analysis.

[0051] In some embodiments, the first user quantity and the first usage times may be combined with the second user quantity and input into a pre-trained model, and a predicted value of the second usage times may be obtained based on the pre-trained model, thereby performing an abnormality analysis on the second usage times based on the predicted value of the second usage times, wherein the pre-trained model has learned the correspondence between the sample first user quantity, the sample first usage times, the sample second user quantity, and the sample predicted values ​​of the second usage times, and there is no limitation on this.

[0052] Of course, any other possible method may be used to analyze whether the second usage frequency is abnormal based on the first user volume, the first usage frequency and the second user volume, and there is no limitation on this.

[0053] In this embodiment, by obtaining the first version program and the second version program, and obtaining the first user volume and the first usage count of the first version program in the target release period, obtaining the second user volume and the second usage count of the second version program in the target release period, and analyzing whether there is an abnormality in the second usage count based on the first user volume, the first usage count and the second user volume, since the user volume and the usage count of the first version program in the same release and volume period are selected to analyze the usage count of the second version program, and the user volume levels of the first version program and the second version program in the same release and volume period are relatively stable, it is possible to accurately analyze whether there is an abnormality in the usage count of the second version program, thereby improving the accuracy of the abnormality analysis and improving the effect of the abnormality analysis of the usage count.

[0054] Figure 2 The present invention is a flowchart of a method for testing an application program according to another exemplary embodiment.

[0055] like Figure 2 As shown, the testing method of the application includes the following steps:

[0056] In step S201, a first version program and a second version program are obtained.

[0057] In step S202, the first number of users and the first number of times of use of the first version of the program on the second day of phased release on a third-party release channel are obtained.

[0058] In step S203, the second number of users and the second number of times of use of the second version of the program on the second third-party publishing channel on the second day of the phased release are obtained.

[0059] In the disclosed embodiment, the target release period is configured as the period within the second day of the phased release of the third-party release channel, so that the data volume is at an appropriate level, which can not only ensure the analysis and prediction effect, but also effectively avoid the continued release of problematic version programs, thereby reducing losses in a timely manner.

[0060] The third-party publishing channel mentioned above may be, for example, an official publishing channel of an operating system carrying the application, such as an Android operating system publishing channel or an Apple operating system publishing channel, and there is no limitation to this.

[0061] The second day of the above-mentioned phased volume increase of the third-party release channel can specifically be the period from 0:00 to 24:00 on the second day of the phased volume increase of the third-party release channel, or it can also be the period from 12:00 to 24:00 on the second day of the phased volume increase of the third-party release channel. There is no restriction on this.

[0062] That is to say, the phased release process of the first version program and the second program on the third-party release channel can be monitored. When it is monitored that the release has started and the phased release has entered the second day, the first user volume and the first usage frequency of the first version program on the second day of the phased release on the third-party release channel can be counted, and the second user volume and the second usage frequency of the second version program on the second day of the phased release on the third-party release channel can be counted.

[0063] In some other embodiments, a data acquisition device may also be configured and used to capture the first number of users and the first number of uses, as well as the second number of users and the second number of uses of the first version of the program and the second version of the program during the entire release cycle, and store these data accordingly. When the analysis of the second number of uses is started, the corresponding data can be directly pulled from the data acquisition device side, and there is no restriction on this.

[0064] For example, when obtaining the first user quantity and the first usage count within the second day of the first version of the program being released in stages on the third-party release channel, the number of users who launch the first version of the program within the second day of the first version of the program being released in stages on the third-party release channel can be determined, and then the number of all users of the first version of the program can be determined (the number of all users can be, for example, the sum of the number of all users who have used the first version of the program and the number of users who have used other versions of the program), and then, the ratio of the number of users who launch the first version of the program to the number of all users is used as the first user quantity, without any restriction.

[0065] For example, when obtaining the second user quantity and the second usage count within the second day of the second version of the program being released in stages on the third-party release channel, the number of users who launch the second version of the program within the second day of the second version of the program being released in stages on the third-party release channel can be determined, and then the number of all users of the second version of the program can be determined (the number of all users can be, for example, the sum of the number of all users who have used the second version of the program and the number of users who have used other versions of the program), and then the ratio of the number of users who launch the second version of the program to the number of all users is used as the second user quantity, without any restriction.

[0066] For example, when obtaining the first usage count within the second day of the phased release of the first version of the program on the third-party release channel, the average live viewing time per person on the second day of the phased release of the first version of the program on the third-party release channel can be determined, and then the average viewing time per person of all users of other versions of the program on the second day of the phased release on the third-party release channel can be determined. Furthermore, the ratio of the average viewing time per person of the first version of the program to the average viewing time per person of all users can be used as the first usage count, and there is no restriction on this.

[0067] For example, when obtaining the second usage count of the second version of the program on the second day of the phased release on the third-party release channel, the average live viewing time per person on the second day of the phased release on the third-party release channel can be determined, and then the average viewing time per person of all users of other versions of the program on the second day of the phased release on the third-party release channel can be determined. Furthermore, the ratio of the average viewing time per person of the second version of the program to the average viewing time per person of all users can be used as the second usage count, and there is no restriction on this.

[0068] The above reference in determining the number of users refers to the number of users who start the program. Of course, any other possible parameters can also be used to determine the number of users. The above reference in determining the number of uses refers to the average viewing time per person. Of course, any other possible parameters can also be used to determine the number of uses, so that the number of users can be used to describe the user level associated with each version of the program, and the number of uses can describe the user usage of each version of the program, and there is no restriction on this.

[0069] In step S204, a fluctuation coefficient is determined according to the first user amount and the second user amount.

[0070] In some embodiments, the fluctuation coefficient is determined according to the first user amount and the second user amount in combination with a preset formula; wherein the preset formula is:

[0071]

[0072] As an example, assuming a first version program B, a second version program A, a first user volume B and a second user volume A, the first difference between the second user volume A and the first user volume B can be first determined, and the product value of the first difference and the second user volume A can be determined; the ratio value between the product value and the square of the first user volume B can be determined; the product of the ratio value and the set coefficient a can be used as the fluctuation coefficient, or the product of the ratio value and the set coefficient a can be used, and then the product plus 1 can be used to obtain the fluctuation coefficient, and there is no restriction on this.

[0073] The above-mentioned setting coefficient a can be set with reference to the fluctuation redundancy requirements of each version of the program, and can be dynamically set according to the fluctuation redundancy requirements corresponding to the actual application program category, and there is no limitation on this.

[0074] Of course, other methods may also be used to determine the fluctuation coefficient according to the first user volume and the second user volume, such as a model method, an engineering method, etc., and there is no limitation to this.

[0075] By determining the first difference between the second user volume and the first user volume, and determining the product value of the first difference and the second user volume; determining the ratio between the product value and the square of the first user volume; and using the product of the ratio value and the set coefficient as the fluctuation coefficient, the fluctuation of the user volume between the first version of the program and the second version of the program can be learned, and the fluctuation can be quantified in the form of mathematical operations, which can effectively assist in the subsequent analysis of the number of times the second version of the program is used.

[0076] In step S205, whether the second usage times are abnormal is analyzed based on the first usage times and the fluctuation coefficient.

[0077] In the embodiment of the present disclosure, in order to ensure the computing efficiency of massive data and also ensure the balance between computing efficiency and analysis effect, a method is provided for analyzing whether there is an abnormality in the second usage number based on the first usage number and the fluctuation coefficient. The method can be to use the product value of the first usage number and the fluctuation coefficient as the predicted number; determine the second difference between the predicted number and the second usage number; judge whether the second difference is less than or equal to the difference threshold; if the second difference is less than or equal to the difference threshold, determine that the second usage number is normal; if the second difference is greater than the difference threshold, determine that there is an abnormality in the second usage number.

[0078] That is to say, after determining the fluctuation coefficient based on the first user volume and the second user volume, the usage number of the second version of the program can be predicted based on the first usage number of the first version of the program combined with the fluctuation coefficient. The predicted usage number can be called the predicted number. Due to the analysis of historical data, the usage number of each version of the program and the user level will have a relatively stable proportional relationship. Therefore, when the user levels of the first version of the program and the second version of the program in the same release period are relatively stable, the first usage number of the first version of the program combined with the fluctuation coefficient can be used to predict the usage number of the second version of the program. The predicted number is then used to analyze whether there is an abnormality in the second usage number of the second version of the program. The algorithm logic is concise and a more accurate judgment effect can be obtained.

[0079] The above-mentioned difference threshold is greater than 0 and less than or equal to 0.08, that is to say, any value between 0 and 0.08 can be selected as the difference threshold, and the range of the difference threshold between 0 and 0.08 can be obtained in advance based on the performance calibration of the application. In the actual testing process, any value between 0 and 0.08 can be adaptively selected as the difference threshold according to the redundancy requirement of the actual test. On the basis of ensuring the accuracy of the test, the flexibility of the application testing can be improved, so that the application testing can meet the testing requirements in various scenarios, thereby improving the scope of application testing methods.

[0080] In this embodiment, by obtaining the first version program and the second version program, and obtaining the first user volume and the first usage frequency of the first version program in the target release period, and obtaining the second user volume and the second usage frequency of the second version program in the target release period, and analyzing whether the second usage frequency is abnormal based on the first user volume, the first usage frequency and the second user volume, since the user volume and the usage frequency of the first version program in the same release period are selected to analyze the usage frequency of the second version program, and the user volume of the first version program and the second version program in the same release period is relatively stable, it is possible to accurately analyze whether the usage frequency of the second version program is abnormal, improve the accuracy of the abnormal analysis, and improve the abnormal analysis effect of the usage frequency. The target release period is configured as a period within the second day of the phased release of the third-party release channel, so that the data volume is at an appropriate level, which can not only ensure the analysis and prediction effect, but also effectively avoid the continued release of the problematic version program, and achieve timely reduction of losses. By taking the product of the first usage count and the fluctuation coefficient as the predicted count; determining the second difference between the predicted count and the second usage count; judging whether the second difference is less than or equal to the difference threshold; if the second difference is less than or equal to the difference threshold, determining that the second usage count is normal; if the second difference is greater than the difference threshold, determining that there is an abnormality in the second usage count, the balance between computing efficiency and analysis effect can be ensured while ensuring the computing efficiency of massive data.

[0081] Figure 3 The present invention is a flowchart of a method for testing an application program according to another exemplary embodiment.

[0082] like Figure 3 As shown, the testing method of the application includes the following steps:

[0083] In step S301, the first user data is obtained within the second day of the first version of the program being released in stages on a third-party release channel.

[0084] In step S302, the second user data is obtained within the second day of the second version of the program being released in stages on the third-party release channel.

[0085] In step S303, the first user data is parsed, and the first user quantity is determined according to the number of users who start the first version of the program within the second day of the first version of the program being released in stages on the third-party publishing channel and the number of all users.

[0086] In step S304, the first user data is parsed, and the first usage count is determined based on the average live viewing time per user on the second day of the phased release of the first version of the program on a third-party publishing channel and the average viewing time per user of all users.

[0087] In step S305, the second user data is parsed, and the second user quantity is determined based on the number of users who start the second version of the program within the second day of the second version of the program being released in stages on the third-party publishing channel and the number of all users.

[0088] In step S306, the second user data is parsed, and the second usage count is determined based on the average live viewing time per user and the average viewing time per user of all users within the second day of the second version of the program being released in stages on a third-party publishing channel.

[0089] In step S307, a fluctuation coefficient is determined according to the first user amount and the second user amount.

[0090] In step S308, the product of the first usage times and the fluctuation coefficient is used as the predicted times.

[0091] In step S309, it is determined whether the second usage count is abnormal based on a second difference between the predicted count and the second usage count.

[0092] Figure 4 The invention is a block diagram of a testing device for an application program according to an exemplary embodiment.

[0093] Reference Figure 4 , the test device 40 of the application comprises:

[0094] A first acquisition module 401 is configured to acquire a first version program and a second version program;

[0095] The second acquisition module 402 is configured to acquire a first number of users and a first number of times of use of the first version of the program within a target release period, and acquire a second number of users and a second number of times of use of the second version of the program within the target release period;

[0096] The analysis module 403 is configured to analyze whether there is an abnormality in the second usage count according to the first user amount, the first usage count and the second user amount.

[0097] In some embodiments of the present disclosure, see Figure 5 , Figure 5 4 is a block diagram of a test device for an application according to another exemplary embodiment. The analysis module 403 includes:

[0098] A determination unit 4031 is configured to determine a fluctuation coefficient according to the first user amount and the second user amount;

[0099] The analyzing unit 4032 is configured to analyze whether the second usage times are abnormal according to the first usage times and the fluctuation coefficient.

[0100] In some embodiments of the present disclosure, the determining unit 4031 is configured to:

[0101] Determine the fluctuation coefficient according to the first user amount and the second user amount in combination with a preset formula;

[0102] Wherein, the preset formula is:

[0103]

[0104] In some embodiments of the present disclosure, the analysis unit 4032 is configured to:

[0105] The product of the first usage times and the fluctuation coefficient is used as the prediction times;

[0106] determining a second difference between the predicted number of times and the second number of times used;

[0107] Determine whether the second difference is less than or equal to the difference threshold;

[0108] If the second difference is less than or equal to the difference threshold, determining that the second usage count is normal;

[0109] If the second difference is greater than the difference threshold, it is determined that the second usage count is abnormal.

[0110] In some embodiments of the present disclosure, see Figure 5 , the second acquisition module 402 includes:

[0111] The first acquisition unit 4021 is configured to acquire the first user quantity and the first usage count of the first version of the program within the second day of the phased release of the first version of the program on the third-party release channel;

[0112] The second acquisition unit 4022 is configured to acquire the second user quantity and the second usage frequency of the second version of the program within the second day of the phased release of the second version of the program on the third-party release channel.

[0113] In some embodiments of the present disclosure, the difference threshold is greater than 0 and less than or equal to 0.08.

[0114] Regarding the testing device for the application in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the testing method for the application, and will not be elaborated here.

[0115] In this embodiment, by obtaining the first version program and the second version program, and obtaining the first user volume and the first usage count of the first version program in the target release period, and obtaining the second user volume and the second usage count of the second version program in the target release period, and analyzing whether there is an abnormality in the second usage count based on the first user volume, the first usage count and the second user volume, since the user volume and the usage count of the first version program in the same release and volume period are selected to analyze the usage count of the second version program, and the user volume levels of the first version program and the second version program in the same release and volume period are relatively stable, it is possible to accurately analyze whether there is an abnormality in the usage count of the second version program, thereby improving the accuracy of the abnormality analysis and improving the effect of the abnormality analysis of the usage count.

[0116] The present disclosure also provides an electronic device, Figure 6 6 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0117] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0118] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0119] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0120] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0121] The multimedia component 608 includes a touch screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the touch screen may include a liquid crystal display (LCD) and a touch panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0122] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616.

[0123] In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0124] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0125] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0126] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0127] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the test methods of the above-mentioned applications.

[0128] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0129] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device 600, enables the electronic device 600 to execute a method for testing an application.

[0130] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0131] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for testing an application, characterized in that: include: Obtain a first version of the program and a second version of the program; Obtaining a first number of users and a first number of times the first version of the program is used during a target release period, and obtaining a second number of users and a second number of times the second version of the program is used during the target release period; Analyzing whether the second usage times are abnormal based on the first user volume, the first usage times and the second user volume; The step of analyzing whether the second usage count is abnormal based on the first user amount, the first usage count and the second user amount includes: determining a fluctuation coefficient according to the first user amount and the second user amount; analyzing whether the second usage times are abnormal according to the first usage times and the fluctuation coefficient; The step of analyzing whether the second usage times are abnormal according to the first usage times and the fluctuation coefficient comprises: Taking the product of the first usage times and the fluctuation coefficient as the predicted times; determining a second difference between the predicted number of times and the second number of times used; Determining whether the second difference is less than or equal to a difference threshold; If the second difference is less than or equal to the difference threshold, determining that the second usage times is normal; If the second difference is greater than the difference threshold, it is determined that the second usage count is abnormal.

2. The application testing method according to claim 1, characterized in that: The determining the fluctuation coefficient according to the first user amount and the second user amount includes: Determine the fluctuation coefficient according to the first user amount and the second user amount in combination with a preset formula; Wherein, the preset formula is: The setting coefficient includes setting with reference to the fluctuation redundancy requirement of each version of the program or dynamically setting according to the fluctuation redundancy requirement corresponding to the actual application program category.

3. The application testing method according to claim 1, characterized in that: The difference threshold is greater than 0 and less than or equal to 0.

08.

4. A testing device for an application, characterized in that: include: A first acquisition module is configured to acquire a first version of the program and a second version of the program; A second acquisition module is configured to acquire a first number of users and a first number of times the first version of the program is used within a target release period, and to acquire a second number of users and a second number of times the second version of the program is used within the target release period; An analysis module is configured to analyze whether the second usage times are abnormal based on the first user amount, the first usage times and the second user amount; The analysis module comprises: a determining unit, configured to determine a fluctuation coefficient according to the first user amount and the second user amount; An analyzing unit, configured to analyze whether the second usage times is abnormal according to the first usage times and the fluctuation coefficient; The analysis unit is configured to: Taking the product of the first usage times and the fluctuation coefficient as the predicted times; determining a second difference between the predicted number of times and the second number of times used; Determining whether the second difference is less than or equal to a difference threshold; If the second difference is less than or equal to the difference threshold, determining that the second usage times is normal; If the second difference is greater than the difference threshold, it is determined that the second usage count is abnormal.

5. The application testing device according to claim 4, characterized in that: The determining unit is configured to: Determine the fluctuation coefficient according to the first user amount and the second user amount in combination with a preset formula; Wherein, the preset formula is: The setting coefficient includes setting with reference to the fluctuation redundancy requirement of each version of the program or dynamically setting according to the fluctuation redundancy requirement corresponding to the actual application program category.

6. The application testing device according to claim 4, characterized in that: The difference threshold is greater than 0 and less than or equal to 0.

08.

7. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the application testing method according to any one of claims 1 to 3. 8 . A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the test method of the application program according to any one of claims 1 to 3.