CN116701236A - APP testing method, system and readable storage medium - Google Patents
APP testing method, system and readable storage medium Download PDFInfo
- Publication number
- CN116701236A CN116701236A CN202310987650.9A CN202310987650A CN116701236A CN 116701236 A CN116701236 A CN 116701236A CN 202310987650 A CN202310987650 A CN 202310987650A CN 116701236 A CN116701236 A CN 116701236A
- Authority
- CN
- China
- Prior art keywords
- app
- test
- data
- value
- test data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 448
- 238000012937 correction Methods 0.000 claims abstract description 70
- 238000000034 method Methods 0.000 claims abstract description 17
- 238000010998 test method Methods 0.000 claims abstract description 10
- 238000007781 pre-processing Methods 0.000 claims abstract description 8
- 230000035484 reaction time Effects 0.000 claims description 20
- 230000004044 response Effects 0.000 claims description 17
- 238000010586 diagram Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 238000005265 energy consumption Methods 0.000 description 16
- 238000011990 functional testing Methods 0.000 description 3
- 238000010438 heat treatment Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses an APP test method, an APP test system and a readable storage medium, wherein the method comprises the following steps: acquiring APP application testing original data information; preprocessing the APP test raw data information to obtain APP test standard data; transmitting the APP test standard data to the corresponding APP for testing to obtain test data; extracting characteristic values of the test data; performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data; judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information; and carrying out feedback correction on the APP through the correction information. According to the method, the APP test standard data numbering sequence is generated through the APP test raw data, so that the APP test efficiency is improved; meanwhile, different thresholds are set at different positions of the APP, so that the accuracy of the APP test is improved.
Description
Technical Field
The application relates to the technical field of APP development, in particular to an APP testing method, an APP testing system and a readable storage medium.
Background
With the popularization of smart phones, the time and cost proportion of digital media consumption of PCs (personal computers) are continuously reduced, and mobile terminal APP (application program) application provides convenience for digital media consumption of users. However, currently, most APP applications of software development enterprises still use a manual test mode, and a lot of manpower needs to be provided; moreover, in the manual testing process, the testing experience can easily cause personal deviation according to different testers.
Accordingly, there is a need for improvement in the art.
Disclosure of Invention
In view of the above problems, an object of the present application is to provide an APP application test method, system and readable storage medium, which can effectively improve the efficiency and accuracy of APP application test.
The first aspect of the present application provides an APP application test method, including:
acquiring APP application testing original data information;
preprocessing the APP test raw data information to obtain APP test standard data;
transmitting the APP test standard data to the corresponding APP for testing to obtain test data;
extracting characteristic values of the test data;
performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data;
judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information;
and carrying out feedback correction on the APP through the correction information.
In this scheme, the step of sending the APP application test standard data to the corresponding APP application for testing to obtain test data specifically includes:
numbering the APP test standard data in sequence to obtain the number of the APP test standard data;
ordering the APP test standard data according to the sequence of the numbers from small to large, and combining the sequence of the APP test standard data numbers;
extracting APP application test standard data of a first number;
transmitting the APP test standard data of the first number to the corresponding APP for manual test, and recording a test route diagram of the APP test standard data of the corresponding first number;
and traversing the whole APP test standard data numbering sequence through automatic test based on the test route map of the APP test standard data with the first number to obtain test data.
In this solution, before generating the correction information, the method further includes:
when the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, recording the number value of the characteristic difference value of the corresponding test data smaller than the preset characteristic difference threshold value;
acquiring the total quantity value of the test data;
judging whether the total quantity value of the test data is larger than a preset first quantity threshold value, if not, continuing to acquire the original data information of the APP application test;
if yes, dividing the number value of the characteristic difference value of the test data smaller than the preset characteristic difference threshold value by the total number value of the test data to obtain the accuracy rate of the test data;
judging whether the accuracy of the test data is greater than a preset accuracy threshold, if so, setting the APP application with the characteristic difference value of the test data greater than or equal to the preset characteristic difference threshold as normal operation; if not, setting the APP application with the characteristic difference value of the test data smaller than the preset characteristic difference threshold value as abnormal operation;
and when the APP is abnormally operated, correcting the APP.
In this solution, the step of generating correction information specifically includes:
when the APP is abnormally operated, extracting a characteristic difference value of corresponding test data;
carrying out average value calculation on the characteristic difference value of the test data to obtain a characteristic correction value of the corresponding test data;
extracting the characteristic type of the test data;
inquiring in a preset APP position table according to the characteristic type of the test data to obtain an APP position corresponding to the characteristic type of the test data;
setting the characteristic correction value of the corresponding test data as a corresponding APP correction parameter according to the APP position corresponding to the characteristic type of the corresponding test data;
and correcting the APP according to the APP correction parameters.
In this scheme, still include:
acquiring a duration time value for maintaining normal operation of an APP test;
judging whether the duration time value of the APP test for keeping normal operation is smaller than a preset time threshold value, if so, determining that the duration time value of the corresponding APP is qualified; if not, obtaining the continuous running time value of the corresponding APP as unqualified information.
In this scheme, still include:
recording a first time when APP test standard data are sent to a corresponding APP;
when the APP test standard data are sent to the corresponding APP for testing, obtaining test data, recording second time;
subtracting the first time from the second time to obtain a test reaction time corresponding to the APP;
judging whether the test reaction time of the APP is greater than a preset first reaction time threshold, if so, obtaining the overlong test reaction time information of the corresponding APP;
and sending the overlong test response time information of the APP to a preset management end for prompting.
The second aspect of the present application provides an APP application test system, including a memory and a processor, where the memory stores an APP application test method program, and the APP application test method program when executed by the processor implements the following steps:
acquiring APP application testing original data information;
preprocessing the APP test raw data information to obtain APP test standard data;
transmitting the APP test standard data to the corresponding APP for testing to obtain test data;
extracting characteristic values of the test data;
performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data;
judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information;
and carrying out feedback correction on the APP through the correction information.
In this scheme, the step of sending the APP application test standard data to the corresponding APP application for testing to obtain test data specifically includes:
numbering the APP test standard data in sequence to obtain the number of the APP test standard data;
ordering the APP test standard data according to the sequence of the numbers from small to large, and combining the sequence of the APP test standard data numbers;
extracting APP application test standard data of a first number;
transmitting the APP test standard data of the first number to the corresponding APP for manual test, and recording a test route diagram of the APP test standard data of the corresponding first number;
and traversing the whole APP test standard data numbering sequence through automatic test based on the test route map of the APP test standard data with the first number to obtain test data.
In this solution, before generating the correction information, the method further includes:
when the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, recording the number value of the characteristic difference value of the corresponding test data smaller than the preset characteristic difference threshold value;
acquiring the total quantity value of the test data;
judging whether the total quantity value of the test data is larger than a preset first quantity threshold value, if not, continuing to acquire the original data information of the APP application test;
if yes, dividing the number value of the characteristic difference value of the test data smaller than the preset characteristic difference threshold value by the total number value of the test data to obtain the accuracy rate of the test data;
judging whether the accuracy of the test data is greater than a preset accuracy threshold, if so, setting the APP application with the characteristic difference value of the test data greater than or equal to the preset characteristic difference threshold as normal operation; if not, setting the APP application with the characteristic difference value of the test data smaller than the preset characteristic difference threshold value as abnormal operation;
and when the APP is abnormally operated, correcting the APP.
In this solution, the step of generating correction information specifically includes:
when the APP is abnormally operated, extracting a characteristic difference value of corresponding test data;
carrying out average value calculation on the characteristic difference value of the test data to obtain a characteristic correction value of the corresponding test data;
extracting the characteristic type of the test data;
inquiring in a preset APP position table according to the characteristic type of the test data to obtain an APP position corresponding to the characteristic type of the test data;
setting the characteristic correction value of the corresponding test data as a corresponding APP correction parameter according to the APP position corresponding to the characteristic type of the corresponding test data;
and correcting the APP according to the APP correction parameters.
In this scheme, still include:
acquiring a duration time value for maintaining normal operation of an APP test;
judging whether the duration time value of the APP test for keeping normal operation is smaller than a preset time threshold value, if so, determining that the duration time value of the corresponding APP is qualified; if not, obtaining the continuous running time value of the corresponding APP as unqualified information.
In this scheme, still include:
recording a first time when APP test standard data are sent to a corresponding APP;
when the APP test standard data are sent to the corresponding APP for testing, obtaining test data, recording second time;
subtracting the first time from the second time to obtain a test reaction time corresponding to the APP;
judging whether the test reaction time of the APP is greater than a preset first reaction time threshold, if so, obtaining the overlong test reaction time information of the corresponding APP;
and sending the overlong test response time information of the APP to a preset management end for prompting.
A third aspect of the present application provides a computer readable storage medium having stored therein an APP application test method program which, when executed by a processor, implements the steps of an APP application test method as described in any one of the preceding claims.
According to the APP testing method, the APP testing system and the readable storage medium, the APP testing standard data number sequence is generated through the APP testing original data, so that the APP testing efficiency is improved; meanwhile, different thresholds are set at different positions of the APP, so that the accuracy of the APP test is improved.
Drawings
FIG. 1 shows a flow chart of a functional test method of an APP application of the present application;
fig. 2 shows a block diagram of a functional test system of an APP application of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, however, the present application may be practiced in other ways than those described herein, and therefore the scope of the present application is not limited to the specific embodiments disclosed below.
Fig. 1 shows a flow chart of a method for functional testing of an APP application of the present application.
S101, acquiring APP application test original data information;
s102, preprocessing APP test raw data information to obtain APP test standard data;
s103, sending the APP test standard data to the corresponding APP for testing to obtain test data;
s104, extracting characteristic values of the test data;
s105, carrying out difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data;
s106, judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information;
and S107, performing feedback correction on the APP through the correction information.
According to the embodiment of the application, the APP has different use modules, the different use modules have different use performances, such as a storage module, a calculation module and the like, the different use modules have different characteristics according to the different use performances, different characteristic values, such as the memory size, the test accuracy and the test time of the test data, are left in the corresponding test data, the characteristic values of the corresponding test data, such as the memory size, the test accuracy and the like, are obtained by extracting keywords from the test data, and the preset characteristic difference threshold is set by a person skilled in the art.
According to an embodiment of the present application, the step of sending APP application test standard data to a corresponding APP application for testing to obtain test data specifically includes:
numbering the APP test standard data in sequence to obtain the number of the APP test standard data;
ordering the APP test standard data according to the sequence of the numbers from small to large, and combining the sequence of the APP test standard data numbers;
extracting APP application test standard data of a first number;
transmitting the APP test standard data of the first number to the corresponding APP for manual test, and recording a test route diagram of the APP test standard data of the corresponding first number;
and traversing the whole APP test standard data numbering sequence through automatic test based on the test route map of the APP test standard data with the first number to obtain test data.
It should be noted that, by performing a manual test on the APP application test standard data with the first number, recording a test route pattern of the APP application test standard data corresponding to the first number, and then sequentially performing an automatic test on the APP application test standard data number sequence, the efficiency of APP application test is improved, and the test route pattern is a route pattern of the APP application test standard data tested in the corresponding APP application.
According to an embodiment of the present application, before generating the correction information, the method further includes:
when the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, recording the number value of the characteristic difference value of the corresponding test data smaller than the preset characteristic difference threshold value;
acquiring the total quantity value of the test data;
judging whether the total quantity value of the test data is larger than a preset first quantity threshold value, if not, continuing to acquire the original data information of the APP application test;
if yes, dividing the number value of the characteristic difference value of the test data smaller than the preset characteristic difference threshold value by the total number value of the test data to obtain the accuracy rate of the test data;
judging whether the accuracy of the test data is greater than a preset accuracy threshold, if so, setting the APP application with the characteristic difference value of the test data greater than or equal to the preset characteristic difference threshold as normal operation; if not, setting the APP application with the characteristic difference value of the test data smaller than the preset characteristic difference threshold value as abnormal operation;
and when the APP is abnormally operated, correcting the APP.
It should be noted that, before generating the correction information, the APP application needs to be determined, where when the accuracy of the test data is greater than a preset accuracy threshold, it is indicated that the corresponding APP application may perform normal operation, where the problem of the individual test data belongs to a normal fault phenomenon, and the normal operation of the whole APP application is not affected, for example, the preset accuracy threshold is 99.6%, it is indicated that the feature difference value of the corresponding APP application test data allowed to have 3 pieces of test data in 1000 pieces is greater than or equal to a preset feature difference threshold, and both the preset accuracy threshold and the preset feature difference threshold are set by those skilled in the art.
According to an embodiment of the present application, the step of generating correction information specifically includes:
when the APP is abnormally operated, extracting a characteristic difference value of corresponding test data;
carrying out average value calculation on the characteristic difference value of the test data to obtain a characteristic correction value of the corresponding test data;
extracting the characteristic type of the test data;
inquiring in a preset APP position table according to the characteristic type of the test data to obtain an APP position corresponding to the characteristic type of the test data;
setting the characteristic correction value of the corresponding test data as a corresponding APP correction parameter according to the APP position corresponding to the characteristic type of the corresponding test data;
and correcting the APP according to the APP correction parameters.
It should be noted that, the preset APP location table stores APP locations corresponding to feature types of various test data, and can find APP locations corresponding to feature types of the test data according to feature types of the test data, and combine feature correction values corresponding to the test data on APP locations corresponding to feature types of the corresponding test data to obtain correction parameters on the corresponding APP locations, where the preset APP location table is set by a person skilled in the art.
It should be noted that, the APP application has different usage modules, and the different usage modules have different usage performances, such as a storage module, a calculation module, and the like, and the different usage modules have different features according to the different usage performances, and the different features are classified according to the different usage performances, so as to determine corresponding feature types, such as different feature types of test time and test accuracy.
According to an embodiment of the present application, further comprising:
acquiring a duration time value for maintaining normal operation of an APP test;
judging whether the duration time value of the APP test for keeping normal operation is smaller than a preset time threshold value, if so, determining that the duration time value of the corresponding APP is qualified; if not, obtaining the continuous running time value of the corresponding APP as unqualified information.
It should be noted that, when the duration value of the APP application test kept in normal operation is smaller than the preset time threshold, it is indicated that the corresponding APP application is still unstable and needs to be continuously adjusted, and the preset time threshold is set by a person skilled in the art.
According to an embodiment of the present application, further comprising:
recording a first time when APP test standard data are sent to a corresponding APP;
when the APP test standard data are sent to the corresponding APP for testing, obtaining test data, recording second time;
subtracting the first time from the second time to obtain a test reaction time corresponding to the APP;
judging whether the test reaction time of the APP is greater than a preset first reaction time threshold, if so, obtaining the overlong test reaction time information of the corresponding APP;
and sending the overlong test response time information of the APP to a preset management end for prompting.
It should be noted that, the longer the test response time of the APP application is, the worse the first feel is given to the user side, when the test response time of the APP application is greater than a preset first response time threshold, the overlong test response time information of the APP application is obtained, and the APP application is adjusted according to the overlong test response time information of the APP application, where the preset first response time threshold is set by a person skilled in the art.
According to an embodiment of the present application, further comprising:
when the APP test keeps normal operation, acquiring the work log information of the mobile terminal;
extracting an electric quantity energy consumption value in the work log information of the mobile terminal;
based on a preset time period, obtaining an average electric quantity energy consumption value in the preset time period when the corresponding APP test keeps normal operation according to the electric quantity energy consumption value in the work log information of the mobile terminal;
judging whether the average electric quantity energy consumption value of the APP test in a preset time period is smaller than a preset electric quantity energy consumption threshold value or not when the APP test keeps normal operation; if yes, triggering electric quantity energy consumption warning information and generating electric quantity energy consumption correction prompt information;
and sending the electric quantity energy consumption correction prompt information to a preset management end for prompting.
It should be noted that, when the APP application tests for continuous running, the power consumption of the corresponding APP application may continuously increase, for example, a phenomenon such as mobile terminal heating occurs, so that the power consumption value of the APP application needs to be limited, and the preset power consumption threshold is set by a person skilled in the art.
Fig. 2 shows a block diagram of a functional test system of an APP application of the present application.
As shown in fig. 2, a second aspect of the present application provides an APP application test system 2, comprising a memory 21 and a processor 22, wherein the memory stores an APP application test method program, and the processor executes the APP application test method program to implement the following steps:
acquiring APP application testing original data information;
preprocessing the APP test raw data information to obtain APP test standard data;
transmitting the APP test standard data to the corresponding APP for testing to obtain test data;
extracting characteristic values of the test data;
performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data;
judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information;
and carrying out feedback correction on the APP through the correction information.
According to the embodiment of the application, the APP has different use modules, the different use modules have different use performances, such as a storage module, a calculation module and the like, the different use modules have different characteristics and characteristic values according to the different use performances, different characteristic values, such as the memory size, the test accuracy, the test time and the like of the test data, are left in the corresponding test data, the characteristic values of the corresponding test data, such as the memory size, the test accuracy and the like of the key words, are obtained by extracting the key words of the test data, and the preset characteristic difference threshold is set by a person skilled in the art.
According to an embodiment of the present application, the step of sending APP application test standard data to a corresponding APP application for testing to obtain test data specifically includes:
numbering the APP test standard data in sequence to obtain the number of the APP test standard data;
ordering the APP test standard data according to the sequence of the numbers from small to large, and combining the sequence of the APP test standard data numbers;
extracting APP application test standard data of a first number;
transmitting the APP test standard data of the first number to the corresponding APP for manual test, and recording a test route diagram of the APP test standard data of the corresponding first number;
and traversing the whole APP test standard data numbering sequence through automatic test based on the test route map of the APP test standard data with the first number to obtain test data.
It should be noted that, by performing a manual test on the APP application test standard data with the first number, recording a test route pattern of the APP application test standard data corresponding to the first number, and then sequentially performing an automatic test on the APP application test standard data number sequence, the efficiency of APP application test is improved, and the test route pattern is a route pattern of the APP application test standard data tested in the corresponding APP application.
According to an embodiment of the present application, before generating the correction information, the method further includes:
when the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, recording the number value of the characteristic difference value of the corresponding test data smaller than the preset characteristic difference threshold value;
acquiring the total quantity value of the test data;
judging whether the total quantity value of the test data is larger than a preset first quantity threshold value, if not, continuing to acquire the original data information of the APP application test;
if yes, dividing the number value of the characteristic difference value of the test data smaller than the preset characteristic difference threshold value by the total number value of the test data to obtain the accuracy rate of the test data;
judging whether the accuracy of the test data is greater than a preset accuracy threshold, if so, setting the APP application with the characteristic difference value of the test data greater than or equal to the preset characteristic difference threshold as normal operation; if not, setting the APP application with the characteristic difference value of the test data smaller than the preset characteristic difference threshold value as abnormal operation;
and when the APP is abnormally operated, correcting the APP.
It should be noted that, before generating the correction information, the APP application needs to be determined, where when the accuracy of the test data is greater than a preset accuracy threshold, it is indicated that the corresponding APP application may perform normal operation, where the problem of the individual test data belongs to a normal fault phenomenon, and the normal operation of the whole APP application is not affected, for example, the preset accuracy threshold is 99.6%, it is indicated that the feature difference value of the corresponding APP application test data allowed to have 3 pieces of test data in 1000 pieces is greater than or equal to a preset feature difference threshold, and both the preset accuracy threshold and the preset feature difference threshold are set by those skilled in the art.
According to an embodiment of the present application, the step of generating correction information specifically includes:
when the APP is abnormally operated, extracting a characteristic difference value of corresponding test data;
carrying out average value calculation on the characteristic difference value of the test data to obtain a characteristic correction value of the corresponding test data;
extracting the characteristic type of the test data;
inquiring in a preset APP position table according to the characteristic type of the test data to obtain an APP position corresponding to the characteristic type of the test data;
setting the characteristic correction value of the corresponding test data as a corresponding APP correction parameter according to the APP position corresponding to the characteristic type of the corresponding test data;
and correcting the APP according to the APP correction parameters.
It should be noted that, the preset APP location table stores APP locations corresponding to feature types of various test data, and can find APP locations corresponding to feature types of the test data according to feature types of the test data, and combine feature correction values corresponding to the test data on APP locations corresponding to feature types of the corresponding test data to obtain correction parameters on the corresponding APP locations, where the preset APP location table is set by a person skilled in the art.
It should be noted that, the APP application has different usage modules, and the different usage modules have different usage performances, such as a storage module, a calculation module, and the like, and the different usage modules have different features according to the different usage performances, and the different features are classified according to the different usage performances, so as to determine corresponding feature types, such as different feature types of test time and test accuracy.
According to an embodiment of the present application, further comprising:
acquiring a duration time value for maintaining normal operation of an APP test;
judging whether the duration time value of the APP test for keeping normal operation is smaller than a preset time threshold value, if so, determining that the duration time value of the corresponding APP is qualified; if not, obtaining the continuous running time value of the corresponding APP as unqualified information.
It should be noted that, when the duration value of the APP application test kept in normal operation is smaller than the preset time threshold, it is indicated that the corresponding APP application is still unstable and needs to be continuously adjusted, and the preset time threshold is set by a person skilled in the art.
According to an embodiment of the present application, further comprising:
recording a first time when APP test standard data are sent to a corresponding APP;
when the APP test standard data are sent to the corresponding APP for testing, obtaining test data, recording second time;
subtracting the first time from the second time to obtain a test reaction time corresponding to the APP;
judging whether the test reaction time of the APP is greater than a preset first reaction time threshold, if so, obtaining the overlong test reaction time information of the corresponding APP;
and sending the overlong test response time information of the APP to a preset management end for prompting.
It should be noted that, the longer the test response time of the APP application is, the worse the first feel is given to the user side, when the test response time of the APP application is greater than a preset first response time threshold, the overlong test response time information of the APP application is obtained, and the APP application is adjusted according to the overlong test response time information of the APP application, where the preset first response time threshold is set by a person skilled in the art.
According to an embodiment of the present application, further comprising:
when the APP test keeps normal operation, acquiring the work log information of the mobile terminal;
extracting an electric quantity energy consumption value in the work log information of the mobile terminal;
based on a preset time period, obtaining an average electric quantity energy consumption value in the preset time period when the corresponding APP test keeps normal operation according to the electric quantity energy consumption value in the work log information of the mobile terminal;
judging whether the average electric quantity energy consumption value of the APP test in a preset time period is smaller than a preset electric quantity energy consumption threshold value or not when the APP test keeps normal operation; if yes, triggering electric quantity energy consumption warning information and generating electric quantity energy consumption correction prompt information;
and sending the electric quantity energy consumption correction prompt information to a preset management end for prompting.
It should be noted that, when the APP application tests for continuous running, the power consumption of the corresponding APP application may continuously increase, for example, a phenomenon such as mobile terminal heating occurs, so that the power consumption value of the APP application needs to be limited, and the preset power consumption threshold is set by a person skilled in the art.
A third aspect of the present application provides a computer readable storage medium having stored therein an APP application test method program which, when executed by a processor, implements the steps of an APP application test method as described in any one of the preceding claims.
The application discloses an APP test method, an APP test system and a readable storage medium, wherein the method comprises the following steps: acquiring APP application testing original data information; preprocessing the APP test raw data information to obtain APP test standard data; transmitting the APP test standard data to the corresponding APP for testing to obtain test data; extracting characteristic values of the test data; performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data; judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information; and carrying out feedback correction on the APP through the correction information. According to the method, the APP test standard data numbering sequence is generated through the APP test raw data, so that the APP test efficiency is improved; meanwhile, different thresholds are set at different positions of the APP, so that the accuracy of the APP test is improved.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Claims (5)
1. An APP application test method, comprising:
acquiring APP application testing original data information;
preprocessing the APP test raw data information to obtain APP test standard data;
transmitting the APP test standard data to the corresponding APP for testing to obtain test data;
extracting characteristic values of the test data;
performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data;
judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information;
performing feedback correction on the APP through the correction information;
the step of sending the APP test standard data to the corresponding APP for testing to obtain test data specifically comprises the following steps:
numbering the APP test standard data in sequence to obtain the number of the APP test standard data;
ordering the APP test standard data according to the sequence of the numbers from small to large, and combining the sequence of the APP test standard data numbers;
extracting APP application test standard data of a first number;
transmitting the APP test standard data of the first number to the corresponding APP for manual test, and recording a test route diagram of the APP test standard data of the corresponding first number;
traversing the whole APP test standard data numbering sequence through automatic test based on the test route diagram of the APP test standard data with the first number to obtain test data;
before generating the correction information, the method further comprises:
when the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, recording the number value of the characteristic difference value of the corresponding test data smaller than the preset characteristic difference threshold value;
acquiring the total quantity value of the test data;
judging whether the total quantity value of the test data is larger than a preset first quantity threshold value, if not, continuing to acquire the original data information of the APP application test;
if yes, dividing the number value of the characteristic difference value of the test data smaller than the preset characteristic difference threshold value by the total number value of the test data to obtain the accuracy rate of the test data;
judging whether the accuracy of the test data is greater than a preset accuracy threshold, if so, setting the APP application with the characteristic difference value of the test data greater than or equal to the preset characteristic difference threshold as normal operation; if not, setting the APP application with the characteristic difference value of the test data smaller than the preset characteristic difference threshold value as abnormal operation;
when the APP is abnormally operated, correcting the APP;
the step of generating correction information specifically includes:
when the APP is abnormally operated, extracting a characteristic difference value of corresponding test data;
carrying out average value calculation on the characteristic difference value of the test data to obtain a characteristic correction value of the corresponding test data;
extracting the characteristic type of the test data;
inquiring in a preset APP position table according to the characteristic type of the test data to obtain an APP position corresponding to the characteristic type of the test data;
setting the characteristic correction value of the corresponding test data as a corresponding APP correction parameter according to the APP position corresponding to the characteristic type of the corresponding test data;
and correcting the APP according to the APP correction parameters.
2. The APP application test method of claim 1, further comprising:
acquiring a duration time value for maintaining normal operation of an APP test;
judging whether the duration time value of the APP test for keeping normal operation is smaller than a preset time threshold value, if so, determining that the duration time value of the corresponding APP is qualified; if not, obtaining the continuous running time value of the corresponding APP as unqualified information.
3. The APP application test method of claim 1, further comprising:
recording a first time when APP test standard data are sent to a corresponding APP;
when the APP test standard data are sent to the corresponding APP for testing, obtaining test data, recording second time;
subtracting the first time from the second time to obtain a test reaction time corresponding to the APP;
judging whether the test reaction time of the APP is greater than a preset first reaction time threshold, if so, obtaining the overlong test reaction time information of the corresponding APP;
and sending the overlong test response time information of the APP to a preset management end for prompting.
4. The APP test system is characterized by comprising a memory and a processor, wherein an APP test method program is stored in the memory, and the APP test method program realizes the following steps when being executed by the processor:
acquiring APP application testing original data information;
preprocessing the APP test raw data information to obtain APP test standard data;
transmitting the APP test standard data to the corresponding APP for testing to obtain test data;
extracting characteristic values of the test data;
performing difference calculation on the characteristic value of the test data and a preset characteristic value to obtain a characteristic difference value of the corresponding test data;
judging whether the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, if so, the corresponding APP is normally applied; if not, generating correction information;
performing feedback correction on the APP through the correction information;
the step of sending the APP test standard data to the corresponding APP for testing to obtain test data specifically comprises the following steps:
numbering the APP test standard data in sequence to obtain the number of the APP test standard data;
ordering the APP test standard data according to the sequence of the numbers from small to large, and combining the sequence of the APP test standard data numbers;
extracting APP application test standard data of a first number;
transmitting the APP test standard data of the first number to the corresponding APP for manual test, and recording a test route diagram of the APP test standard data of the corresponding first number;
traversing the whole APP test standard data numbering sequence through automatic test based on the test route diagram of the APP test standard data with the first number to obtain test data;
before generating the correction information, the method further comprises:
when the characteristic difference value of the test data is smaller than a preset characteristic difference threshold value, recording the number value of the characteristic difference value of the corresponding test data smaller than the preset characteristic difference threshold value;
acquiring the total quantity value of the test data;
judging whether the total quantity value of the test data is larger than a preset first quantity threshold value, if not, continuing to acquire the original data information of the APP application test;
if yes, dividing the number value of the characteristic difference value of the test data smaller than the preset characteristic difference threshold value by the total number value of the test data to obtain the accuracy rate of the test data;
judging whether the accuracy of the test data is greater than a preset accuracy threshold, if so, setting the APP application with the characteristic difference value of the test data greater than or equal to the preset characteristic difference threshold as normal operation; if not, setting the APP application with the characteristic difference value of the test data smaller than the preset characteristic difference threshold value as abnormal operation;
when the APP is abnormally operated, correcting the APP;
the step of generating correction information specifically includes:
when the APP is abnormally operated, extracting a characteristic difference value of corresponding test data;
carrying out average value calculation on the characteristic difference value of the test data to obtain a characteristic correction value of the corresponding test data;
extracting the characteristic type of the test data;
inquiring in a preset APP position table according to the characteristic type of the test data to obtain an APP position corresponding to the characteristic type of the test data;
setting the characteristic correction value of the corresponding test data as a corresponding APP correction parameter according to the APP position corresponding to the characteristic type of the corresponding test data;
and correcting the APP according to the APP correction parameters.
5. A computer readable storage medium, characterized in that it has stored therein an APP application test method program, which when executed by a processor, implements the steps of an APP application test method as claimed in any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310987650.9A CN116701236B (en) | 2023-08-08 | 2023-08-08 | APP testing method, system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310987650.9A CN116701236B (en) | 2023-08-08 | 2023-08-08 | APP testing method, system and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116701236A true CN116701236A (en) | 2023-09-05 |
CN116701236B CN116701236B (en) | 2023-10-03 |
Family
ID=87841930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310987650.9A Active CN116701236B (en) | 2023-08-08 | 2023-08-08 | APP testing method, system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116701236B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201856A (en) * | 2015-05-04 | 2016-12-07 | 阿里巴巴集团控股有限公司 | A kind of multi version performance test methods and device |
CN113823334A (en) * | 2021-11-22 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Environment simulation method applied to vehicle-mounted equipment, related device and equipment |
CN114461534A (en) * | 2022-03-14 | 2022-05-10 | 广域铭岛数字科技有限公司 | Software performance testing method and system, electronic equipment and readable storage medium |
CN114490375A (en) * | 2022-01-24 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Method, device and equipment for testing performance of application program and storage medium |
CN115604621A (en) * | 2022-10-31 | 2023-01-13 | 歌尔科技有限公司(Cn) | Earphone testing method, device, equipment and computer readable storage medium |
CN115757427A (en) * | 2022-12-01 | 2023-03-07 | 北京空间飞行器总体设计部 | Storage method and software for spacecraft test data |
US20230111047A1 (en) * | 2021-10-13 | 2023-04-13 | Servicenow, Inc. | Classification Evaluation and Improvement in Machine Learning Models |
CN116302889A (en) * | 2023-03-15 | 2023-06-23 | 中国工商银行股份有限公司 | Performance test method and device for functional module and server |
CN116380496A (en) * | 2023-06-06 | 2023-07-04 | 苏州艾驰博特检测科技有限公司 | Automobile door fatigue endurance test method, system and medium |
-
2023
- 2023-08-08 CN CN202310987650.9A patent/CN116701236B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201856A (en) * | 2015-05-04 | 2016-12-07 | 阿里巴巴集团控股有限公司 | A kind of multi version performance test methods and device |
US20230111047A1 (en) * | 2021-10-13 | 2023-04-13 | Servicenow, Inc. | Classification Evaluation and Improvement in Machine Learning Models |
CN113823334A (en) * | 2021-11-22 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Environment simulation method applied to vehicle-mounted equipment, related device and equipment |
CN114490375A (en) * | 2022-01-24 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Method, device and equipment for testing performance of application program and storage medium |
CN114461534A (en) * | 2022-03-14 | 2022-05-10 | 广域铭岛数字科技有限公司 | Software performance testing method and system, electronic equipment and readable storage medium |
CN115604621A (en) * | 2022-10-31 | 2023-01-13 | 歌尔科技有限公司(Cn) | Earphone testing method, device, equipment and computer readable storage medium |
CN115757427A (en) * | 2022-12-01 | 2023-03-07 | 北京空间飞行器总体设计部 | Storage method and software for spacecraft test data |
CN116302889A (en) * | 2023-03-15 | 2023-06-23 | 中国工商银行股份有限公司 | Performance test method and device for functional module and server |
CN116380496A (en) * | 2023-06-06 | 2023-07-04 | 苏州艾驰博特检测科技有限公司 | Automobile door fatigue endurance test method, system and medium |
Non-Patent Citations (3)
Title |
---|
JAMES SOLAND: "Comparing different response time threshold setting methods to detect low effort on a large-scale assessment", HTTPS://LARGESCALEASSESSMENTSINEDUCATION.SPRINGEROPEN.COM/ARTICLES/10.1186/S40536-021-00100-W * |
政采云前端团队: "数据统计在性能检测中的应用", HTTPS://CLOUD.TENCENT.COM/DEVELOPER/ARTICLE/2182414 * |
束开亮: "关于数据的异常检测,看这一篇就够了", HTTPS://WWW.INFOQ.CN/ARTICLE/W2RTF2HREQNINUQUE9JY * |
Also Published As
Publication number | Publication date |
---|---|
CN116701236B (en) | 2023-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109729131B (en) | Application request processing method and device and router | |
CN108376171B (en) | Method and device for quickly importing big data, terminal equipment and storage medium | |
CN113485931B (en) | Test method, test device, electronic equipment and computer readable storage medium | |
CN113992340B (en) | User abnormal behavior identification method, device, equipment and storage medium | |
CN111679968A (en) | Interface calling abnormity detection method and device, computer equipment and storage medium | |
CN111176918A (en) | Server testing method, system, equipment and computer readable storage medium | |
CN115858311A (en) | Operation and maintenance monitoring method and device, electronic equipment and readable storage medium | |
CN111367782B (en) | Regression testing data automatic generation method and device | |
CN117724899A (en) | Project data backup method, system and medium | |
CN116701236B (en) | APP testing method, system and readable storage medium | |
CN111062503B (en) | Power grid monitoring alarm processing method, system, terminal and storage medium | |
CN111597093B (en) | Exception handling method, device and equipment thereof | |
CN111415200A (en) | Data processing method and device | |
CN108616870B (en) | Method and device for identifying terminal customized preferentially | |
CN113132178A (en) | Protocol consistency test method and device | |
CN111176917A (en) | Method, system, terminal and storage medium for testing functional stability of CPU SST-BF | |
CN113676377B (en) | Online user number evaluation method, device, equipment and medium based on big data | |
CN117097789A (en) | Data processing method and device, electronic equipment and storage medium | |
CN112148621A (en) | Test method and device and electronic equipment | |
CN111400147B (en) | Service quality testing method, device and system | |
CN113641576B (en) | Database testing method and device and terminal equipment | |
CN112312445B (en) | Voice call processing method and device, storage medium and server | |
CN115858324B (en) | AI-based IT equipment fault processing method, apparatus, equipment and medium | |
CN113051128B (en) | Power consumption detection method and device, electronic equipment and storage medium | |
CN111367640B (en) | Data statistics period determining method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |