Embodiment
Further to illustrate the present invention to reach the technological means and effect that predetermined goal of the invention is taken, below in conjunction withAccompanying drawing and preferred embodiment, to the fluency method of testing and device that change according to display content proposed by the present invention, it is specific realMode, structure, feature and effect are applied, is described in detail as after.
For the present invention foregoing and other technology contents, feature and effect, in the following preferable reality coordinated with reference to schemaApplying during example describes in detail to be clearly presented.By the explanation of embodiment, when predetermined mesh can be reached to the present inventionThe technological means taken and effect be able to more deeply and it is specific understand, but institute's accompanying drawings are only to provide with reference to sayingIt is bright to be used, not it is used for being any limitation as the present invention.
Fig. 1 is refer to, the fluency method of testing of the display content change provided it illustrates one embodiment of the inventionMethod flow diagram.The fluency method of testing of the display content change, it may include following steps 101-109:
Step 101, according to the application construction display content handover operation to be measured on electronic equipment to be measured.
Display content handover operation can be slip to display content, page layout switch (such as the label of display contentPage layout switch), the operation for the user such as zooming in or out and commonly using of display content.
Step 103, test case is generated according to the display content handover operation of construction, testing results use-case, and to be measuredElectronic equipment sends test data.
It is to simulate constructed handover operation to generate test case.Testing results use-case be exactly in application to be measured display inThe switching of appearance is tested.The information for the handover operation that test data is constructed by test, for example, it is slip to display content, aobviousShow that the page layout switch (such as page layout switch of label) of content, display content zoom in or out operation, the dynamics of operation, operationThe information such as scope.
Step 105, display content handover operation is carried out to the application to be measured on electronic equipment to be measured according to test data, withThe application to be measured on electronic equipment to be measured is set to change to another display content from present displayed content according to handover operation.
Carrying out display content handover operation includes the operation such as the slip to display content, page layout switch, amplification, diminution.
Application to be measured on electronic equipment to be measured changes to another display content according to handover operation from present displayed contentMethod be:Application to be measured on electronic equipment to be measured can be according to the sliding force of handover operation, sliding type, sliding scalePresent displayed content is changed into another display content etc. information.
Step 107, detected from present displayed content and changed to during another display content according to the change of display contentFrame per second.
Frame per second is the frame number of display image per second, the display figure per second that can be obtained in the change procedure according to display contentThe frame number of picture, so as to obtain the curve tendency figure of frame per second (Frames per Second, FPS) and show that the curve of this frame per second is walkedGesture figure.
Step 109, according to the frame per second detected, the display content change of application to be measured on electronic equipment to be measured is analyzedFluency.
Frame per second is directly proportional to the fluency that display content changes.Frame per second is higher, then the fluency of display content change is better,Frame per second is lower, then the fluency of display content change is poorer., can be according to reaching more than preset value in whole test processFrame per second ratio shared in display content change procedure, to determine whether slip fluency is preferable.For example, it can set per secondRatio of the frame per second in whole test process more than 35 frames is more than 60%, then it represents that slip fluency is preferable, conversely, then tableShow that slip fluency is poor.
In summary, the fluency method of testing for the display content change that the present embodiment provides, by being set to electronics to be measuredStandby upper application to be measured carries out display content handover operation so that the application to be measured on electronic equipment to be measured according to handover operation fromPresent displayed content changes to another display content, and the change detection further according to display content changes to separately from present displayed contentFrame per second during one display content, to analyze the smoothness of the display content of the application to be measured on electronic equipment to be measured changeDegree.Solve that testing efficiency in test process is low, can not obtain the problems such as accurate test value, can realize automatically to electricity to be measuredApplication to be measured in sub- equipment carries out display content handover operation and the automatic stream for assessing the change of whole operation process display contentSmooth degree, and accurate frame per second test value is obtained, testing efficiency can be so improved, avoids the mistake caused by manual hand manipulationDifference, the effective monitoring to fluency is realized automatically, can also be switched according to the different display content of different application constructions to be measuredOperation, the testing requirement of the fluency of the display content change of varying environment can be applicable.
Fig. 2 is refer to, the fluency test side of the display content change provided it illustrates another embodiment of the present inventionThe method flow diagram of method.Fig. 2 is improved on the basis of Fig. 1.The fluency method of testing of the display content change,It may include following steps 201-213:
Step 201, according to the application construction display content handover operation to be measured on electronic equipment to be measured.
Electronic equipment to be measured can be the electronic equipments such as computer, mobile phone, game machine.Application to be measured can be web page browsingDevice, Photo Browser etc..
Display content handover operation can be slip to display content, page layout switch (such as the label of display contentPage layout switch), the operation for the user such as zooming in or out and commonly using of display content.If for example, electronic equipment to be measured be withThe mobile phone of touch display screen, application to be measured are web browser, then can be with for the display content handover operation of web browserFor by single finger touch display screen, so as to realize to the slide of web browser display content or by two handsFinger is flared out and inwardly closes up touch display screen, so as to realize amplification and the reduction operation to web browser display content.
Step 203, test case is generated according to the display content handover operation of construction, testing results use-case, and to be measuredElectronic equipment sends test data.
Test case can be written as by the way of JS (Javascript) script using will simulate constructed handover operationGeneration.Certainly, during the present invention is implemented, test case can also be generated using other methods according to being actually needed, herein notEnumerate again.Still it is illustrated by taking the electronic equipment to be measured with touch-screen as an example, in practice, is slided if finger touchesDuring touch-screen, corresponding trigger signal will be generated, this trigger signal include finger touch slide touch-screen when sliding scale,The information such as sliding type (such as horizontally slip, slide up and down), sliding force, test case is generated according to above-mentioned handover operationWhen will simulate and touch the operation for sliding touch-screen according to finger in practice and caused trigger signal, such as simulate trigger signalSliding type, sliding force, the initial position slided and the information such as end position.
Testing results use-case is exactly that the switching to display content in application to be measured is tested, and can be that operation is above-mentioned writesJS scripts.
The information for the handover operation that test data is constructed by test, such as slip to display content, display contentPage layout switch (such as page layout switch of label), display content zoom in or out operation, the dynamics of operation, scope etc. of operationInformation.
During test, electronic equipment to be measured can be connected to slide by data wire and be surveyed in fluency test deviceExamination.It can be computer to slide fluency test device, certainly, in embodiments of the present invention, slide fluency test device and also may be usedThink other electronic equipments, will not enumerate herein.
Step 205, display content handover operation is carried out to the application to be measured on electronic equipment to be measured according to test data, withThe application to be measured on electronic equipment to be measured is set to change to another display content from present displayed content according to handover operation.
Display content can be that can slide audio frequency and video picture, Neng Goufang that picture, the audio/video player of display playBig or diminution display picture etc..
Carrying out display content handover operation includes the operation such as the slip to display content, page layout switch, amplification, diminution.
It can be the operation of simulation to the slide of display content, such as enter line slip behaviour to present displayed content automaticallyMake or click on the operation of the another location different from display content current location, so as to so that present displayed content passes through slipAnother display content is changed to, such as by sliding web browser display content on touch-screen, it is possible to realization makes touch-screenUpper web browser display content changes to another display content by sliding.
It is relatively common to the operation of the page layout switch of display content for page turn over operation such as label switchings, such as mould can be passed throughIntend the label display page that horizontally slips, show that page layout switch shows the page to another label so as to realize from current label.
Amplification, reduction operation to display content for example can be flared out by two fingers of analog subscriber and inwardly closedHold together the mode of operation amplified to display content and reduced for touching and sliding display screen and realizing, present displayed content is carried out automaticallyZoom in or out.
Application to be measured on electronic equipment to be measured changes to another display content according to handover operation from present displayed contentMethod be:Application to be measured on electronic equipment to be measured can be according to the sliding force of handover operation, sliding type, sliding scalePresent displayed content is changed into another display content etc. information.Such as if handover operation is to the amplifieroperation of image, mouldThe automatic amplifieroperation intended includes the position coordinates for the beginning and end slided during amplifieroperation, the length of slip, the power of slipThe information such as degree, the application to be measured on electronic equipment to be measured will be according to information such as the position coordinates of beginning and end, length, dynamicsThe multiplication factor of image and time used are calculated, image is amplified to what is calculated by then application to be measured within this time againMultiplication factor, and the process of this image amplification is shown, finally show the image of this amplification.
Step 207, detected from present displayed content and changed to during another display content according to the change of display contentFrame per second.
Frame per second is the frame number of display image per second, the display figure per second that can be obtained in the change procedure according to display contentThe frame number of picture, so as to obtain the curve tendency figure of frame per second and show the curve tendency figure of this frame per second.Animation can be utilized to test(Core Animation) instrument obtains the curve tendency figure of frame per second.For example, changed to from present displayed content in another displayIt is 3 seconds to hold spent time, and the frame number of display image each second in transformation period will be shown on frame per second curve map.
Step 209, according to the frame per second detected, the display content change of application to be measured on electronic equipment to be measured is analyzedFluency.
Frame per second is directly proportional to the fluency that display content changes.Frame per second is higher, then the fluency of display content change is better,Frame per second is lower, then the fluency of display content change is poorer., can be according to reaching more than preset value in whole test processFrame per second ratio shared in display content change procedure, to determine whether slip fluency is preferable.For example, it can set per secondRatio of the frame per second in whole test process more than 30 frames is more than 50%, then it represents that slip fluency is preferable, conversely, then tableShow that slip fluency is poor.
Step 211, by the fluency that the display content of the application to be measured on electronic equipment to be measured changes with presetting in displayThe fluency for holding change is compared, judge application to be measured on electronic equipment to be measured display content change fluency whetherFluency than the change of default display content is poor, if so, step 213 is then carried out, if it is not, then terminating.
Step 213, the fluency changed to the display content of the application to be measured on electronic equipment to be measured optimizes.
The fluency of display content change is preferable, it is possible to display content variation effect more smooth, more true to nature is obtained, andThe quality of fluency depends on electronic equipment hardware configuration to be measured, processing speed of application to be measured etc..Therefore to the excellent of fluencyChange mainly changes to the excellent of the processing speed of another display content to application to be measured according to handover operation from present displayed contentChange.The method optimized to fluency can be:The frame per second for being less than preset value in display content change procedure is obtained, according to smallObtain spending class, method, function of time length etc., and class, the side that time length will be spent in application to be measured in the frame per second of preset valueMethod, function etc. are revised as class, method, function to take a short time etc..The frame less than preset value can be obtained from frame per second curveRate, and correspond in application to be measured less than the frame per second of preset value and spend class, method, function etc. of time length, thus can be withObtain rapidly and class, method, function of time length etc. are spent in application to be measured.
In addition it is also possible to arrived using time evaluation and test (TimeProfiler) instrument fast positioning of Instruments instrumentsMost classes, method, function etc. are taken in application to be measured, then optimizing (will take most classes, method, function etc.Be revised as time-consuming few class, method or function etc.), so, when the application to be measured on electronic equipment to be measured according to handover operation fromWhen present displayed content changes to another display content, the application to be measured on electronic equipment to be measured can improve to be become to display contentThe calculating of change and processing speed, can so improve from present displayed content change to another display content during frame per second,So as to greatly lift the fluency of display content change.
In embodiments of the present invention, this step 213 can also according to be actually needed and including:
The fluency for controlling the application to be measured on electronic equipment to be measured to change display content optimizes.
The method that the fluency that application to be measured on electronic equipment to be measured changes to display content optimizes can useThe method that the fluency test device of above-mentioned display content change optimizes to fluency.
In summary, the fluency method of testing for the display content change that the present embodiment provides, by being set to electronics to be measuredStandby upper application to be measured carries out display content handover operation so that the application to be measured on electronic equipment to be measured according to handover operation fromPresent displayed content changes to another display content, and the change detection further according to display content changes to separately from present displayed contentFrame per second during one display content, to analyze the smoothness of the display content of the application to be measured on electronic equipment to be measured changeDegree.Solve that testing efficiency in test process is low, can not obtain the problems such as accurate test value, can realize automatically to electricity to be measuredApplication to be measured in sub- equipment carries out display content handover operation and the automatic stream for assessing the change of whole operation process display contentSmooth degree, and accurate frame per second test value is obtained, testing efficiency can be so improved, avoids the mistake caused by manual hand manipulationDifference, the effective monitoring to fluency is realized automatically, can also be switched according to the different display content of different application constructions to be measuredOperation, the testing requirement of the fluency of the display content change of varying environment can be applicable.
In addition, the present embodiment also by by the fluency that the display content of the application to be measured on electronic equipment to be measured changes withThe fluency of default display content change is compared, and judges the display content change of application to be measured on electronic equipment to be measuredWhether fluency is poorer than the fluency of default display content change, if so, then being optimized to the fluency of display content change.Allow the invention to optimize the fluency to be measured changed using display content on electronic equipment to be measured, treated after optimizationThe more preferable service experience of fluency can be brought to user by surveying application.
It is below the device embodiment of the present invention, the details of not detailed description, may be referred to above-mentioned in device embodimentCorresponding embodiment of the method.
Fig. 3 is refer to, the fluency test device of the display content change provided it illustrates one embodiment of the inventionMain frame block diagram.The fluency test device of the display content change, including:Constructing module 301, sending module 303,Switching control module 305, detection module 307 and fluency analysis module 309.
Specifically, constructing module 301, for switching behaviour according to the application construction display content to be measured on electronic equipment to be measuredMake.
Sending module 303, for according to the display content handover operation of construction generate test case, testing results use-case,And send test data to electronic equipment to be measured.
Switching control module 305, in being shown according to test data to the application to be measured on electronic equipment to be measuredHold handover operation, so that the application to be measured on electronic equipment to be measured changes to another show according to handover operation from present displayed contentShow content.
Carrying out display content handover operation includes slip to display content, page layout switch, zooms in or out operation.
Detection module 307, changed to for being detected according to the change of display content from present displayed content in another displayFrame per second during appearance.
Fluency analysis module 309, for according to the frame per second that detects, analyzing the application to be measured on electronic equipment to be measuredThe fluency of display content change.
In addition, detection module 307, is additionally operable to the frame of display image per second obtained in the change procedure according to display contentNumber, obtain the curve tendency figure of simultaneously display frame rate.
In addition, the fluency test device of display content change, can also include:Judge module 311 and optimization module313。
Judge module 311, for by the fluency of the display content change of the application to be measured on electronic equipment to be measured and in advanceIf fluency is compared, judge the fluency of display content change of application to be measured on electronic equipment to be measured whether than defaultFluency is poor.
Optimization module 313, if the fluency that the display content of the application to be measured on electronic equipment to be measured changes is than pre-If fluency is poor, then the fluency changed to the display content of the application to be measured on electronic equipment to be measured optimizes.
Optimization module 313, if the smoothness of the display content change for the application to be measured being additionally operable on the electronic equipment to be measuredDegree is poorer than the default fluency, then the fluency for controlling the application to be measured on the electronic equipment to be measured to change display content entersRow optimization.
In addition, optimization module 313, is additionally operable to obtain the frame per second for being less than preset value in display content change procedure, according to smallObtain spending class, method or the function of time length, and class, the method that the time will be spent to grow in application to be measured in the frame per second of preset valueOr function is revised as the class, method or function that take a short time.
In summary, the fluency test device for the display content change that the present embodiment provides, by being set to electronics to be measuredStandby upper application to be measured carries out display content handover operation so that the application to be measured on electronic equipment to be measured according to handover operation fromPresent displayed content changes to another display content, and the change detection further according to display content changes to separately from present displayed contentFrame per second during one display content, to analyze the smoothness of the display content of the application to be measured on electronic equipment to be measured changeDegree.Solve that testing efficiency in test process is low, can not obtain the problems such as accurate test value, can realize automatically to electricity to be measuredApplication to be measured in sub- equipment carries out display content handover operation and the automatic stream for assessing the change of whole operation process display contentSmooth degree, and accurate frame per second test value is obtained, testing efficiency can be so improved, avoids the mistake caused by manual hand manipulationDifference, the effective monitoring to fluency is realized automatically, can also be switched according to the different display content of different application constructions to be measuredOperation, the testing requirement of the fluency of the display content change of varying environment can be applicable.
In addition, the present embodiment also by by the fluency that the display content of the application to be measured on electronic equipment to be measured changes withThe fluency of default display content change is compared, and judges the display content change of application to be measured on electronic equipment to be measuredWhether fluency is poorer than the fluency of default display content change, if so, then being optimized to the fluency of display content change.Allow the invention to optimize the fluency to be measured changed using display content on electronic equipment to be measured, treated after optimizationThe more preferable service experience of fluency can be brought to user by surveying application.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be withThe hardware of correlation is controlled to complete by computer program, described program can be stored in computer read/write memory mediumIn, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..
The above described is only a preferred embodiment of the present invention, any formal limitation not is made to the present invention, thoughSo the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology peopleMember, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modificationFor the equivalent embodiment of equivalent variations, as long as being the technical spirit pair according to the present invention without departing from technical solution of the present invention contentAny simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.