CN110377504A - Test method, device, equipment and the storage medium of application program smoothness degree - Google Patents

Test method, device, equipment and the storage medium of application program smoothness degree Download PDF

Info

Publication number
CN110377504A
CN110377504A CN201910536839.XA CN201910536839A CN110377504A CN 110377504 A CN110377504 A CN 110377504A CN 201910536839 A CN201910536839 A CN 201910536839A CN 110377504 A CN110377504 A CN 110377504A
Authority
CN
China
Prior art keywords
test
app
tested
frame
application program
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.)
Pending
Application number
CN201910536839.XA
Other languages
Chinese (zh)
Inventor
余宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910536839.XA priority Critical patent/CN110377504A/en
Publication of CN110377504A publication Critical patent/CN110377504A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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 invention discloses be related to researching and developing management domain, more particularly to test method, device, equipment and the storage medium of the application program smoothness degree of testing process improvement areas, for improving the fluency testing efficiency of application program, testing cost is reduced, and improve the accuracy of fluency test.The method of the present invention includes: the object code for obtaining application APP to be tested;By the reflection mechanism modification control class of APP to be tested, control class is used to control the quantity for frame log generated;Based on preset test frame and modified control class implementation of test cases, test result is obtained, test case is for testing object code;It extracts frame log from test result, and counts the total quantity of frame log;The fluency of APP to be tested is determined according to the total quantity for falling frame log.

Description

Test method, device, equipment and the storage medium of application program smoothness degree
Technical field
The present invention relates to testing process improvement areas more particularly to a kind of test method of application program smoothness degree, device, Equipment and storage medium.
Background technique
With the fast development of mobile communication field, smart phone is popularized, and people also increasingly pay close attention to intelligent hand The quality problems of machine application.Wherein, the fluency of smart phone is one of the problem for influencing user experience maximum, therefore respectively application Manufacturer or cell phone manufacturer require the fluency of mobile phone higher and higher.And before the fluency for solving application, it is necessary to first can Its fluency is tested, performance test plays a significant role the quality assurance of application program (application, APP).
The performance test of APP includes the performance test and server end of the performance test of client, APP on network Performance test.Various indexs, such as central processing (central are mainly tested in performance test in APP operational process Processing unit, CPU) occupancy etc..
For APP fluency mainly by manual test, manual test time-consuming is more at present, and needs to put into more manpower branch It holds, there are certain deviations for manual test accuracy.
Summary of the invention
The present invention provides test method, device, equipment and the storage mediums of a kind of application program smoothness degree, for improving The fluency testing efficiency of application program reduces testing cost, and improves the accuracy of fluency test.
The first aspect of the embodiment of the present invention provides a kind of test method of application program smoothness degree, comprising: obtains to be measured Try the object code of application APP;By the reflection mechanism modification control class of the APP to be tested, the control class is used for Control the quantity for frame log generated;Based on preset test frame and modified control class implementation of test cases, obtain Test result, the test case is for testing the object code;Extract frame log from the test result, And fall the total quantity of frame log described in counting;According to it is described fall frame log total quantity determine the fluency of the APP to be tested.
Optionally, described to pass through the APP to be tested in the first implementation of first aspect of the embodiment of the present invention Reflection mechanism modification control class, it is described control class be used for control generation the quantity for falling frame log include: by described to be measured Try the generic attribute that the Java reflection mechanism in App determines control class;Determine that the frame that falls in the generic attribute reminds threshold value;By institute Stating frame reminds the default value of threshold value to be revised as 1.
Optionally, in second of implementation of first aspect of the embodiment of the present invention, described by described to be tested After the reflection mechanism modification control class of APP, described based on preset test frame implementation of test cases, test result is obtained Before, the method also includes: generate synchronously control script, the synchronously control script is held for synchronously control test case Row and the output for falling frame log.
Optionally, in the third implementation of first aspect of the embodiment of the present invention, application to be tested is obtained described Before the object code of program APP, the method also includes: generation is uniformly controlled script, and the script that is uniformly controlled is for controlling Make the installation of the APP to be tested, the execution of the synchronously control script and the output for falling frame log parsing report.
Optionally, described based on preset test block in the 4th kind of implementation of first aspect of the embodiment of the present invention Frame and modified control class implementation of test cases, obtain test result, the test case be used for the object code into Row test includes: to call preset jenkins test frame;Jenkins is configured in the preset jenkins test frame Task, the jenkins task are to be uniformly controlled script described in execution;APP to be tested is installed;Test case is input to described APP to be tested;Pass through APP implementation of test cases to be tested described in the synchronously control Script controlling;Pass through the synchronously control Frame log is fallen in script and the modified control class control APP output to be tested;To it is described fall frame log arrange, Obtain test result.
Optionally, described to fall frame log according in the 5th kind of implementation of first aspect of the embodiment of the present invention Total quantity determine that the fluency of the APP to be tested includes: the process parsed in the APP implementation of test cases to be tested In, each second fall frame number;Frame number is subtracted with 60 and obtains frame number difference, and using the frame number difference as described to be tested The test smoothness angle value of APP;According to pre-set matching relationship, by it is described fall frame log total quantity and preset fluency It is matched, obtains the fluency of the APP to be tested, the preset fluency includes very smooth, general smooth, Caton Very Caton.
Optionally, in the 6th kind of implementation of first aspect of the embodiment of the present invention, the method also includes: it will test The test data of use-case is uploaded to server, the test data of the test case include test case and with it is described to be tested The smooth angle value of the smooth angle value of APP, the APP to be tested is corresponding with the test case, so that the server records And save the test data of the test case.
The second aspect of the embodiment of the present invention provides a kind of test device of application program smoothness degree, comprising: obtains single Member, for obtaining the object code of application APP to be tested;Unit is modified, for the reflection machine by the APP to be tested System modification control class, the control class are used to control the quantity for frame log generated;Execution unit, for based on preset survey Frame and modified control class implementation of test cases are tried, test result is obtained, the test case was used for the target generation Code is tested;Statistic unit falls the sum of frame log for extracting frame log from the test result, and described in statistics Amount;Determination unit, the total quantity for falling frame log according to determine the fluency of the APP to be tested.
Optionally, in the first implementation of second aspect of the embodiment of the present invention, modification unit is specifically used for: passing through Java reflection mechanism in the App to be tested determines the generic attribute of control class;Determine that the frame that falls in the generic attribute reminds door Threshold value;By it is described fall frame remind threshold value default value be revised as 1.
Optionally, in second of implementation of second aspect of the embodiment of the present invention, the test of application program smoothness degree Device further include: the first generation unit, for generating synchronously control script, the synchronously control script is tested for synchronously control The execution of use-case and the output for falling frame log.
Optionally, in the third implementation of second aspect of the embodiment of the present invention, the test of application program smoothness degree Device further include: the second generation unit is uniformly controlled script for generating, and described to be uniformly controlled script described to be measured for controlling Try the installation of APP, the execution of the synchronously control script and the output for falling frame log parsing report.
Optionally, in the 4th kind of implementation of second aspect of the embodiment of the present invention, execution unit is specifically used for: calling Preset jenkins test frame;Jenkins task is configured in the preset jenkins test frame, it is described Jenkins task is to be uniformly controlled script described in execution;APP to be tested is installed;Test case is input to described to be tested APP;Pass through APP implementation of test cases to be tested described in the synchronously control Script controlling;By the synchronously control script and Frame log is fallen in the modified control class control APP output to be tested;To it is described fall frame log arrange, surveyed Test result.
Optionally, in the 5th kind of implementation of second aspect of the embodiment of the present invention, determination unit is specifically used for: parsing Out during the APP implementation of test cases to be tested, each second fall frame number;Subtracting frame number with 60, to obtain frame number poor Value, and using the frame number difference as the test smoothness angle value of the APP to be tested;It, will according to pre-set matching relationship It is described fall frame log total quantity and preset fluency matched, obtain the fluency of the APP to be tested, it is described preset Fluency include very smooth, general smooth, Caton and unusual Caton.
Optionally, in the 6th kind of implementation of second aspect of the embodiment of the present invention, the test of application program smoothness degree Device further include: uploading unit, for the test data of test case to be uploaded to server, the test number of the test case According to the smooth angle value including test case and with the APP to be tested, the smooth angle value of the APP to be tested and the test are used Example is corresponding, so that the server records and saves the test data of the test case.
The third aspect of the embodiment of the present invention provides a kind of test equipment of application program smoothness degree, including memory, Processor and it is stored in the computer program that can be run on the memory and on the processor, the processor executes institute The test method of application program smoothness degree described in any of the above-described embodiment is realized when stating computer program.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, including instruction, when the finger When order is run on computers, so that computer executes the test side of application program smoothness degree described in any of the above-described embodiment The step of method.
In technical solution provided in an embodiment of the present invention, the object code of application APP to be tested is obtained;By to be measured The reflection mechanism modification control class of APP is tried, control class is used to control the quantity for frame log generated;Based on preset test block Frame and modified control class implementation of test cases obtain test result, and test case is for testing object code;From It extracts frame log in test result, and counts the total quantity of frame log;It is determined according to the total quantity for falling frame log to be tested The fluency of APP.The embodiment of the present invention improves the fluency testing efficiency of application program, reduces testing cost, and improve The accuracy of fluency test.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of the test method of application program smoothness degree in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of the test method of application program smoothness degree in the embodiment of the present invention;
Fig. 3 is one embodiment schematic diagram of the test device of application program smoothness degree in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of the test device of application program smoothness degree in the embodiment of the present invention;
Fig. 5 is one embodiment schematic diagram of the test equipment of application program smoothness degree in the embodiment of the present invention.
Specific embodiment
The present invention provides test method, device, equipment and the storage mediums of a kind of application program smoothness degree, for improving The fluency testing efficiency of application program reduces testing cost, and improves the accuracy of fluency test.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention The embodiment of the present invention is described in attached drawing.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " or " having " and its any deformation, it is intended that covering is not Exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units be not necessarily limited to it is clear Step or unit those of is listed on ground, but is not clearly listed or for these process, methods, product or is set Standby intrinsic other step or units.
Referring to Fig. 1, the flow chart of the test method of application program smoothness degree provided in an embodiment of the present invention, specific to wrap It includes:
101, the object code of application APP to be tested is obtained.
The test device of application program smoothness degree obtains the object code of APP to be tested, the object code packet of APP to be tested Various function codes and various category codes are included, the object code in the embodiment of the present invention refers to whole codes in APP, do not do and have Body subdivision, requires to be tested.
It is understood that executing subject of the invention is the test device of application program smoothness degree, terminal can also be Or server, specifically herein without limitation.The present invention by the test device of application program smoothness degree be executing subject for into Row explanation.
102, by the reflection mechanism of APP to be tested modification control class, what control class was used to control generation falls frame log Quantity.
The reflection mechanism modification control class that the test device of application program smoothness degree passes through APP to be tested, wherein control class For controlling the quantity for frame log generated.Specifically, the test device of application program smoothness degree is first according to APP to be tested Reflection mechanism to control class variable modify;Then APP to be tested is controlled according to modified control class.
For example, the test device of application program smoothness degree is according to the reflection mechanism of APP to be tested to the target of App to be tested The frame that falls in code reminds threshold value to modify, specifically, the test device of application program smoothness degree is by Android The frame that falls of the variable SKIPPED_FRAME_WARNING_LIMIT of Choreographer class reminds threshold value to be set as 1, so that APP to be tested, as long as there is the phenomenon that frame number is more than or equal to 1, will export correspondence during executing test script Fall frame log.
The test device of application program smoothness degree modifies App's to be tested by the Java reflection mechanism in APP to be tested Code.Wherein, Java reflection mechanism is, for any one entity class, can to obtain the institute of this class in operating status There are attribute and method;For any one object, its any means and attribute can be called, this dynamic acquisition information with And the function of dynamic call object method is known as the reflection mechanism of Java language.
103, based on preset test frame and modified control class implementation of test cases, test result is obtained, is tested Use-case is for testing object code.
The test device of application program smoothness degree executes test based on preset test frame and modified control class and uses Example obtains test result, and test case is for testing object code.Specifically, the test of application program smoothness degree fills The jenkins test frame for calling and pre-setting is set, goes to execute pre-set test use by the jenkins test frame Example, the test case is for testing object code.Wherein, test frame is pre-set, and test case can be with It pre-sets, is also possible to be currently generated, specifically herein without limitation.
For example, the test frame of automation is built based on jenkins, implementation of test cases, so that the test case is automatic Change the object code for testing APP to be tested.Wherein, jenkins is the open source continuous integrating (Continuous of a prevalence Integration) tool is widely used in project development, has the function of automation building, test and deployment etc..
104, it extracts frame log from test result, and counts the total quantity of frame log.
The test device of application program smoothness degree is extracted from test result falls frame log, and counts the sum of frame log Amount.Specifically, the test device of application program smoothness degree parses the test result got, wherein in test result Include test case test data and fall frame log, by it is therein fall frame log individually extract and count, obtain To the total quantity for falling frame log.
105, the fluency of APP to be tested is determined according to the total quantity for falling frame log.
The test device of application program smoothness degree determines the fluency of APP to be tested according to the total quantity for falling frame log.Tool Body, the test device of application program smoothness degree can according to pre-set matching relationship, by fall frame log total quantity and Fluency is matched, wherein matching relationship can be what staff was configured in advance, for example, falling the sum of frame log When amount is 0-10, corresponding frame number difference is 50-60, and matched fluency is very smooth;The total quantity for falling frame log is 10- When 20, corresponding frame number difference is 40-50, and matched fluency is substantially smooth;When the total quantity for falling frame log is 20-40, Corresponding frame number difference is 20-40, and matched fluency is normal;Fall the total quantity of frame log in 40-50, corresponding frame number Difference is 10-20, and matched fluency is Caton;When the total quantity for falling frame log is 50-60, corresponding frame number difference is 0- 10, matched fluency is very Caton.
It should be noted that falling the total quantity of frame log and the matching relationship of fluency can be set according to the actual situation It sets, for example, corresponding fluency can also be other corresponding smoothnesses to be general smooth when the total quantity for pawning frame log is 1-5 Degree, specifically herein without limitation.
The embodiment of the present invention obtains the object code of application APP to be tested;Pass through the reflection mechanism of APP to be tested Modification control class, control class are used to control the quantity for frame log generated;Based on preset test frame and modified control Class implementation of test cases processed obtains test result, and test case is for testing object code;It is extracted from test result Fall frame log, and counts the total quantity of frame log;The fluency that APP to be tested is determined according to the total quantity for falling frame log, mentions The high fluency testing efficiency of application program, reduces testing cost, and improve the accuracy of fluency test.
Referring to Fig. 2, another flow chart of the test method of application program smoothness degree provided in an embodiment of the present invention, tool Body includes:
201, it generates and is uniformly controlled script, be uniformly controlled script for controlling installation, the synchronously control script of APP to be tested Execution and fall frame log parsing report output.
The test device generation of application program smoothness degree is uniformly controlled script, and it is to be tested for controlling that this is uniformly controlled script The installation of APP, the execution of synchronously control script and the output for falling frame log parsing report.Wherein, it is uniformly controlled script and passes through control Synchronously control script processed indirectly controls the execution of test case and falls the output of frame log.
202, the object code of application APP to be tested is obtained.
The test device of application program smoothness degree obtains the object code of APP to be tested, the object code packet of APP to be tested Various function codes and various category codes are included, the object code in the embodiment of the present invention refers to whole codes in APP, do not do and have Body subdivision, requires to be tested.
It is understood that executing subject of the invention is the test device of application program smoothness degree, terminal can also be Or server, specifically herein without limitation.The present invention by the test device of application program smoothness degree be executing subject for into Row explanation.
203, by the reflection mechanism of APP to be tested modification control class, what control class was used to control generation falls frame log Quantity.
The reflection mechanism modification control class that the test device of application program smoothness degree passes through APP to be tested, wherein control class For controlling the quantity for frame log generated.Specifically, the test device of application program smoothness degree is first according to APP to be tested Reflection mechanism to control class variable modify;Then APP to be tested is controlled according to modified control class.Example Such as, the generic attribute of control class is determined by the Java reflection mechanism in App to be tested;Determine that the frame that falls in generic attribute reminds threshold Value;Frame, which will be fallen, reminds the default value of threshold value to be revised as 1.Specifically, the test device of application program smoothness degree determines The generic attribute SKIPPED_FRAME_WARNING_LIMIT of AndroidChoreographer class;Generic attribute SKIPPED_ The frame prompting threshold value default value that falls of FRAME_WARNING_LIMIT is 30, which is revised as 1, so that APP to be tested During executing test script, when there is frame number more than or equal to 1 the phenomenon that, export it is corresponding fall frame log.
The test device of application program smoothness degree modifies App's to be tested by the Java reflection mechanism in APP to be tested Code.Wherein, Java reflection mechanism is, for any one entity class, can to obtain the institute of this class in operating status There are attribute and method;For any one object, its any means and attribute can be called, this dynamic acquisition information with And the function of dynamic call object method is known as the reflection mechanism of Java language.
204, synchronously control script is generated, synchronously control script is used for the execution of synchronously control test case and falls frame log Output.
The test device of application program smoothness degree generates synchronously control script, which surveys for synchronously control The execution of example on probation and the output for falling frame log.
In this example, the frame log project that be two different is fallen with output due to implementation of test cases, the two is each other It independently carries out, therefore the test device of application program smoothness degree needs to generate a control script and carrys out synchronously control and executes test Frame log is fallen in use-case and output, so that APP to be tested is in implementation of test cases, once there is frame number more than or equal to default value The phenomenon that with regard to synchronism output it is corresponding fall frame log.
205, based on preset test frame and modified control class implementation of test cases, test result is obtained, is tested Use-case is for testing object code.
The test device of application program smoothness degree executes test based on preset test frame and modified control class and uses Example obtains test result, and test case is for testing object code.Specifically, the implementation procedure of test case is as follows: Call preset jenkins test frame;Jenkins task is configured in preset jenkins test frame, jenkins appoints Business is uniformly controlled script to execute;APP to be tested is installed;Test case is input to APP to be tested;Pass through synchronously control script Control APP implementation of test cases to be tested;APP output to be tested is controlled by synchronously control script and modified control class to fall Frame log;It is arranged to frame log is fallen, obtains test result.Wherein, test frame is pre-set, and test case can To pre-set, it is also possible to be currently generated, specifically herein without limitation.
In the present embodiment, jenkins task is configured first, is installed APP to be tested, secondly pulls test case To the machine of execution, APP implementation of test cases to be tested is controlled by synchronously control script and frame is fallen in control android system output Log.
206, it extracts frame log from test result, and counts the total quantity of frame log.
The test device of application program smoothness degree is extracted from test result falls frame log, and counts the sum of frame log Amount.Specifically, the test device of application program smoothness degree parses the test result got, wherein in test result Include test case test data and fall frame log, by it is therein fall frame log individually extract and count, obtain To the total quantity for falling frame log.
207, the fluency of APP to be tested is determined according to the total quantity for falling frame log.
The test device of application program smoothness degree determines the fluency of APP to be tested according to the total quantity for falling frame log.Tool Body, it parses during APP implementation of test cases to be tested, falls frame number within each second;Frame number is subtracted with 60 to obtain Frame number difference, and using frame number difference as the test smoothness angle value of APP to be tested;According to pre-set matching relationship, will fall The total quantity of frame log and preset fluency are matched, and the fluency of APP to be tested is obtained, and preset fluency includes non- Chang Liuchang, general smooth, Caton and unusual Caton.Wherein, matching relationship can be what staff was configured in advance, example Such as, when the total quantity for falling frame log is 0-10, corresponding frame number difference is 50-60, and matched fluency is very smooth;Fall frame When the total quantity of log is 10-20, corresponding frame number difference is 40-50, and matched fluency is substantially smooth;Fall frame log When total quantity is 20-40, corresponding frame number difference is 20-40, and matched fluency is normal;The total quantity for falling frame log exists When 40-50, corresponding frame number difference is 10-20, and matched fluency is Caton;It is right when the total quantity for falling frame log is 50-60 The frame number difference answered is 0-10, and matched fluency is very Caton.
It should be noted that the test device of application program smoothness degree, which can also arrange frame log and be formed, falls frame log Parsing report, and will fall frame log parsing report be uploaded to server, wherein it is described fall frame log parsing report content include Fall frame log and falls frame analysis result.
It is understood that the test device of application program smoothness degree can also will be in the test data of implementation of test cases It reaches code administration server to be managed, to record and save the test data of implementation of test cases, the test of test case Data include test case and the smooth angle value with APP to be tested, and the smooth angle value of APP to be tested is corresponding with test case, with So that server records and saves the test data of test case, when smooth angle value is lower than 20, server determines APP to be tested Test Caton.Wherein, server can be GIT or SVN, and GIT is the distributed version control system of an open source, Ke Yiyou From very little to very big Item version management, GIT is Linus Torvalds to help to manage for the processing of effect, high speed Linux kernel is developed and the Version Control software of an open source code of exploitation.SVN is the abbreviation of Subversion, is one The version control system of open source code, compared to RCS and CVS, it uses branch management system, its design object is exactly Replace CVS.Many Version Control services move to Subversion from CVS on internet, i.e. SVN is common for multiple people Develop the same project, the purpose of common source.
The embodiment of the present invention, generation are uniformly controlled script, are uniformly controlled script for controlling the installation, same of APP to be tested The execution of step control script and the output for falling frame log parsing report;Obtain the object code of application APP to be tested;Pass through The reflection mechanism modification control class of APP to be tested, control class are used to control the quantity for frame log generated;Generate synchronously control Script, the output that executes with fall frame log of the synchronously control script for synchronously control test case;Based on preset test Frame and modified control class implementation of test cases obtain test result, and test case is for testing object code; It extracts frame log from test result, and counts the total quantity of frame log;It is determined according to the total quantity for falling frame log to be measured The fluency for trying APP, improves the fluency testing efficiency of application program, reduces testing cost, and improves fluency survey The accuracy of examination.
The test method of application program smoothness degree in the embodiment of the present invention is described above, below to of the invention real The test device for applying application program smoothness degree in example is described, referring to Fig. 3, application program smoothness degree in the embodiment of the present invention One embodiment of test device include:
Acquiring unit 301, for obtaining the object code of application APP to be tested;
Unit 302 is modified, for the reflection mechanism modification control class by the APP to be tested, the control class is used for Control the quantity for frame log generated;
Execution unit 303, for being surveyed based on preset test frame and modified control class implementation of test cases Test result, the test case is for testing the object code;
Statistic unit 304 falls the sum of frame log for extracting frame log from the test result, and described in statistics Amount;
Determination unit 305, the total quantity for falling frame log according to determine the fluency of the APP to be tested.
The embodiment of the present invention obtains the object code of application APP to be tested;Pass through the reflection mechanism of APP to be tested Modification control class, control class are used to control the quantity for frame log generated;Based on preset test frame and modified control Class implementation of test cases processed obtains test result, and test case is for testing object code;It is extracted from test result Fall frame log, and counts the total quantity of frame log;The fluency that APP to be tested is determined according to the total quantity for falling frame log, mentions The high fluency testing efficiency of application program, reduces testing cost, and improve the accuracy of fluency test.
Referring to Fig. 4, another embodiment of the test device of application program smoothness degree includes: in the embodiment of the present invention
Acquiring unit 301, for obtaining the object code of application APP to be tested;
Unit 302 is modified, for the reflection mechanism modification control class by the APP to be tested, the control class is used for Control the quantity for frame log generated;
Execution unit 303, for being surveyed based on preset test frame and modified control class implementation of test cases Test result, the test case is for testing the object code;
Statistic unit 304 falls the sum of frame log for extracting frame log from the test result, and described in statistics Amount;
Determination unit 305, the total quantity for falling frame log according to determine the fluency of the APP to be tested.
Optionally, modification unit 302 is specifically used for:
The generic attribute of control class is determined by the Java reflection mechanism in the App to be tested;It determines in the generic attribute Fall frame remind threshold value;By it is described fall frame remind threshold value default value be revised as 1.
Optionally, the test device of application program smoothness degree further include:
First generation unit 306, for generating synchronously control script, the synchronously control script is tested for synchronously control The execution of use-case and the output for falling frame log.
Optionally, the test device of application program smoothness degree further include:
Second generation unit 307 is uniformly controlled script for generating, and described to be uniformly controlled script described to be measured for controlling Try the installation of APP, the execution of the synchronously control script and the output for falling frame log parsing report.
Optionally, execution unit 303 is specifically used for:
Call preset jenkins test frame;Jenkins is configured in the preset jenkins test frame to appoint Business, the jenkins task are to be uniformly controlled script described in execution;APP to be tested is installed;By test case be input to it is described to Test APP;Pass through APP implementation of test cases to be tested described in the synchronously control Script controlling;Pass through the synchronously control foot Frame log is fallen in this and the modified control class control APP output to be tested;To it is described fall frame log arrange, obtain To test result.
Optionally, determination unit 305 is specifically used for:
It parses during the APP implementation of test cases to be tested, falls frame number within each second;Frame is subtracted with 60 Number obtains frame number difference, and using the frame number difference as the test smoothness angle value of the APP to be tested;According to pre-set Matching relationship, by it is described fall frame log total quantity and preset fluency match, obtain the smoothness of the APP to be tested Degree, the preset fluency include very smooth, general smooth, Caton and unusual Caton.
Optionally, the test device of application program smoothness degree further include:
Uploading unit 308, for the test data of test case to be uploaded to server, the test number of the test case According to the smooth angle value including test case and with the APP to be tested, the smooth angle value of the APP to be tested and the test are used Example is corresponding, so that the server records and saves the test data of the test case.
The embodiment of the present invention, generation are uniformly controlled script, are uniformly controlled script for controlling the installation, same of APP to be tested The execution of step control script and the output for falling frame log parsing report;Obtain the object code of application APP to be tested;Pass through The reflection mechanism modification control class of APP to be tested, control class are used to control the quantity for frame log generated;Generate synchronously control Script, the output that executes with fall frame log of the synchronously control script for synchronously control test case;Based on preset test Frame and modified control class implementation of test cases obtain test result, and test case is for testing object code; It extracts frame log from test result, and counts the total quantity of frame log;It is determined according to the total quantity for falling frame log to be measured The fluency for trying APP, improves the fluency testing efficiency of application program, reduces testing cost, and improves fluency survey The accuracy of examination.
Angle of the above figure 3 to Fig. 4 from modular functionality entity is to the application program smoothness degree in the embodiment of the present invention Test device is described in detail, below the test from the angle of hardware handles to application program smoothness degree in the embodiment of the present invention Equipment is described in detail.
Fig. 5 is a kind of structural schematic diagram of the test equipment of application program smoothness degree provided in an embodiment of the present invention, this is answered Bigger difference can be generated because configuration or performance are different with the test equipment 500 of program fluency, may include one or More than one processor (central processing units, CPU) 501 (for example, one or more processors) and Storage medium 508 (such as one or one of memory 509, one or more storage application programs 507 or data 506 The above mass memory unit).Wherein, memory 509 and storage medium 508 can be of short duration storage or persistent storage.It is stored in The program of storage medium 508 may include one or more modules (diagram does not mark), and each module may include corresponding to It is operated with the series of instructions in the test equipment of program fluency.Further, processor 501 can be set to and store Medium 508 communicates, and the series of instructions operation in storage medium 508 is executed in the test equipment 500 of application program smoothness degree.
The test equipment 500 of application program smoothness degree can also include one or more power supplys 502, one or one The above wired or wireless network interface 503, one or more input/output interfaces 504, and/or, one or more Operating system 505, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD etc..Those skilled in the art It is appreciated that the test equipment structure of application program smoothness degree shown in Fig. 5 does not constitute the survey freely spent to application flow The restriction for trying equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Processor 501 can execute acquiring unit 301 in above-described embodiment, modification unit 302, execution unit 303, statistic unit 304, the function of determination unit 305, the first generation unit 306, the second generation unit 307 and associative cell 310.Input and output connect Mouth 504 can execute the function of uploading unit 308 in above-described embodiment.
It is specifically introduced below with reference to each component parts of the Fig. 5 to the test equipment that application flow is freely spent:
Processor 501 is the control centre of the test equipment of application program smoothness degree, can be according to the application program of setting The test method of fluency is handled.Processor 501 utilizes various interfaces and the entire application program smoothness degree of connection The various pieces of test equipment, by running or executing the software program and/or module that are stored in memory 509, and tune With the data being stored in memory 509, the various functions and processing data of the test equipment of executing application fluency, from And realize the purpose of test APP fluency.Storage medium 508 and memory 509 are all the carriers of storing data, and the present invention is implemented In example, storage medium 508 can refer to that storage volume is smaller, but fireballing built-in storage, and memory 509 can be storage Capacity is big, but the external memory that storage speed is slow.
Memory 509 can be used for storing software program and module, and processor 501 is stored in memory 509 by operation Software program and module, thereby executing the various function application and data of the test equipment 500 of application program smoothness degree Processing.Memory 509 can mainly include storing program area and storage data area, wherein storing program area can storage program area, Application program needed at least one function (such as the reflection mechanism modification control class by the APP to be tested, the control Class is used to control the quantity for frame log generated) etc.;Storage data area can be stored to be set according to the test of application program smoothness degree It is standby to use created data (for example be uniformly controlled script etc.) etc..In addition, memory 509 may include high random access Memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are volatile Property solid-state memory.The test method program of the application program smoothness degree provided in embodiments of the present invention and the number received In memory according to stream storage, when it is desired to be used, processor 501 is called from memory 509.
When loading on computers and executing the computer program instructions, entirely or partly generate according to of the invention real Apply process described in example or function.The computer can be general purpose computer, special purpose computer, computer network or its His programmable device.The computer instruction may be stored in a computer readable storage medium, or can from a computer Read storage medium transmitted to another computer readable storage medium, for example, the computer instruction can from a web-site, Computer, server or data center pass through wired (such as coaxial cable, optical fiber, twisted pair) or wireless (such as infrared, nothing Line, microwave etc.) mode transmitted to another web-site, computer, server or data center.It is described computer-readable Storage medium can be any usable medium that computer can store or include that one or more usable mediums are integrated The data storage devices such as server, data center.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, magnetic Band), optical medium (for example, CD) or semiconductor medium (such as solid state hard disk (solid state disk, SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in embodiments of the present invention can integrate in one processing unit, it is also possible to each A unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit was both It can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of test method of application program smoothness degree characterized by comprising
Obtain the object code of application APP to be tested;
By the reflection mechanism of the APP to be tested modification control class, what the control class was used to control generation falls frame log Quantity;
Based on preset test frame and modified control class implementation of test cases, test result, the test case are obtained For testing the object code;
It extracts frame log from the test result, and falls the total quantity of frame log described in statistics;
According to it is described fall frame log total quantity determine the fluency of the APP to be tested.
2. the test method of application program smoothness degree according to claim 1, which is characterized in that described by described to be measured The reflection mechanism modification control class of APP is tried, the control class is used to control the quantity for frame log generated and includes:
The generic attribute of control class is determined by the Java reflection mechanism in the App to be tested;
Determine that the frame that falls in the generic attribute reminds threshold value;
By it is described fall frame remind threshold value default value be revised as 1.
3. the test method of application program smoothness degree according to claim 1, which is characterized in that it is described by it is described to It tests after the reflection mechanism modification control class of APP, described based on preset test frame implementation of test cases, is tested As a result before, the method also includes:
Synchronously control script is generated, the synchronously control script is used for the execution of synchronously control test case and falls the defeated of frame log Out.
4. the test method of application program smoothness degree according to claim 3, which is characterized in that be tested in the acquisition Before the object code of application APP, the method also includes:
Generation is uniformly controlled script, and the script that is uniformly controlled is used to control the installation of the APP to be tested, the synchronously control The execution of script and the output for falling frame log parsing report.
5. the test method of application program smoothness degree according to claim 4, which is characterized in that described based on preset survey Frame and modified control class implementation of test cases are tried, test result is obtained, the test case was used for the target generation Code carries out test
Call preset jenkins test frame;
Jenkins task is configured in the preset jenkins test frame, the jenkins task is to execute the system One control script;
APP to be tested is installed;
Test case is input to the APP to be tested;
Pass through APP implementation of test cases to be tested described in the synchronously control Script controlling;
The APP output to be tested, which is controlled, by the synchronously control script and the modified control class falls frame log;
To it is described fall frame log arrange, obtain test result.
6. according to claim 1 in -5 any application program smoothness degree test method, which is characterized in that the basis It is described fall frame log total quantity determine that the fluency of the APP to be tested includes:
It parses during the APP implementation of test cases to be tested, falls frame number within each second;
Frame number is subtracted with 60 and obtains frame number difference, and using the frame number difference as the test fluency of the APP to be tested Value;
According to pre-set matching relationship, by it is described fall frame log total quantity and preset fluency match, obtain The fluency of the APP to be tested, the preset fluency include very smooth, general smooth, Caton and unusual Caton.
7. the test method of application program smoothness degree according to claim 6, which is characterized in that the method also includes:
The test data of test case is uploaded to server, the test data of the test case include test case and with institute The smooth angle value of APP to be tested is stated, the smooth angle value of the APP to be tested is corresponding with the test case, so that the clothes Business device records and saves the test data of the test case.
8. a kind of test device of application program smoothness degree characterized by comprising
Acquiring unit, for obtaining the object code of application APP to be tested;
Unit is modified, for the reflection mechanism modification control class by the APP to be tested, the control class is generated for controlling The quantity for falling frame log;
Execution unit, for obtaining test result based on preset test frame and modified control class implementation of test cases, The test case is for testing the object code;
Statistic unit falls the total quantity of frame log for extracting frame log from the test result, and described in statistics;
Determination unit, the total quantity for falling frame log according to determine the fluency of the APP to be tested.
9. a kind of test equipment of application program smoothness degree, which is characterized in that including memory, processor and be stored in described deposit On reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program The test method of application program smoothness degree described in any one of claim 1-7.
10. a kind of computer readable storage medium, which is characterized in that including instruction, when described instruction is run on computers, So that computer executes the test method of the application program smoothness degree as described in any one of claim 1-7.
CN201910536839.XA 2019-06-20 2019-06-20 Test method, device, equipment and the storage medium of application program smoothness degree Pending CN110377504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910536839.XA CN110377504A (en) 2019-06-20 2019-06-20 Test method, device, equipment and the storage medium of application program smoothness degree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910536839.XA CN110377504A (en) 2019-06-20 2019-06-20 Test method, device, equipment and the storage medium of application program smoothness degree

Publications (1)

Publication Number Publication Date
CN110377504A true CN110377504A (en) 2019-10-25

Family

ID=68250478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910536839.XA Pending CN110377504A (en) 2019-06-20 2019-06-20 Test method, device, equipment and the storage medium of application program smoothness degree

Country Status (1)

Country Link
CN (1) CN110377504A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113993157A (en) * 2021-10-27 2022-01-28 深圳市芯中芯科技有限公司 Bluetooth transparent transmission-based cellular Internet of things network parameter online detection system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162894A1 (en) * 2006-01-11 2007-07-12 Archivas, Inc. Method of and system for dynamic automated test case generation and execution
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method
CN108628735A (en) * 2017-03-22 2018-10-09 腾讯科技(深圳)有限公司 The automated testing method and system of application
CN109766258A (en) * 2018-11-30 2019-05-17 北京奇艺世纪科技有限公司 A kind of performance test methods, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162894A1 (en) * 2006-01-11 2007-07-12 Archivas, Inc. Method of and system for dynamic automated test case generation and execution
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method
CN108628735A (en) * 2017-03-22 2018-10-09 腾讯科技(深圳)有限公司 The automated testing method and system of application
CN109766258A (en) * 2018-11-30 2019-05-17 北京奇艺世纪科技有限公司 A kind of performance test methods, device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈帅: "【Android场景化性能测试】UI流畅度篇", pages 1 - 10, Retrieved from the Internet <URL:https://cloud.tencent.com/developer/article/1006242> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113993157A (en) * 2021-10-27 2022-01-28 深圳市芯中芯科技有限公司 Bluetooth transparent transmission-based cellular Internet of things network parameter online detection system and method

Similar Documents

Publication Publication Date Title
CN104598380B (en) A kind of automated testing method and system based on control
CN107688530A (en) Method for testing software and device
CN107832226A (en) Report-generating method, device, equipment and computer media based on performance test
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN105302706B (en) Applied program testing method and device
CN110941467A (en) Data processing method, device and system
CN109857630A (en) Code detection method, system and equipment
CN111782317A (en) Page testing method and device, storage medium and electronic device
US10536339B2 (en) Systems and methods for system configuration for communication network devices
CN103246606A (en) Method and system for testing performances of ESB (enterprises service bus) platform
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN115698941A (en) Efficient packaging of components
CN110413503A (en) A kind of application program capacity monitoring method, device, equipment and storage medium
CN110377504A (en) Test method, device, equipment and the storage medium of application program smoothness degree
CN105045717B (en) Test environment dispositions method, device and system
CN109582560A (en) Test file edit methods, device, equipment and computer readable storage medium
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN108875536A (en) Pedestrian&#39;s analysis method, device, system and storage medium
CN107678965A (en) It is automatically integrating method of testing and system, service terminal, memory
CN106302011A (en) Method of testings based on multiterminal and terminal
CN115357493A (en) Test method, test device, electronic equipment and storage medium
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
CN112231186B (en) Performance data processing method and device, electronic equipment and medium
CN103269341A (en) Spyware analysis method and computer system
CN109688025B (en) Test monitoring method, device, terminal and storage medium based on digital KVM

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