CN104424092A - Page loading time length testing method and device - Google Patents
Page loading time length testing method and device Download PDFInfo
- Publication number
- CN104424092A CN104424092A CN201310370294.2A CN201310370294A CN104424092A CN 104424092 A CN104424092 A CN 104424092A CN 201310370294 A CN201310370294 A CN 201310370294A CN 104424092 A CN104424092 A CN 104424092A
- Authority
- CN
- China
- Prior art keywords
- page
- time
- terminal
- video
- loading
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a page loading time length testing method and device and belongs to the field of computers. The method comprises obtaining screen recording video; obtaining relative time points of loading starting of pages in the screen recording video; obtaining relative time points of loading completing of preset contents in the pages; using differences between the page loading starting relative time points and the loading completing relative time points of preset contents in the pages as the loading time length of the preset contents in the pages. By means of the method and the device, the loading starting relative time points of the pages and the loading completing relative time points of the preset contents in the pages are obtained through video recording the loading processes of the pages in terminals, and the differences between the page loading starting relative time points and the loading completing relative time points of preset contents in the pages are used as the loading time length of the preset contents in the pages, accordingly, human resources are saved, the test period is shortened, the test efficiency is improved, and the test accuracy is guaranteed.
Description
Technical field
The present invention relates to computer realm, particularly a kind of page loads duration method of testing and device.
Background technology
Along with the development of computing machine and mobile terminal technology, more and more based on electric terminal application positive maximum enrich the life of people.Meanwhile, it is more and more higher that the experience requirements of user to application also becomes, and wherein, the page loads the index that duration is outbalance in Consumer's Experience.
Developer loads duration to the page improving a application, first needs to load duration to the page of this application and tests.The method of testing that the existing page loads duration mainly contains two kinds:
The first adds for completing the correlative code loading duration test in the program source code of application, when this correlative code is by starting to load at the page applied, record loads the time started, the time loaded is recorded at the end of the page of application loads, calculate the difference loading the time started and the time loaded, difference is loaded duration as the page applied.
The second is by manually testing.Concrete, tester carries out manual operations to application, such as manually clicks startup application, certain page etc. clicked in application.Meanwhile, tester is by timing tool, such as stopwatch, and the time that the page of the time that record is manually clicked and application has loaded, and the difference calculating the time that time of manually clicking and the page have loaded, using difference as the page loading duration applied.
Realizing in process of the present invention, inventor finds that prior art at least exists following shortcoming:
In the program source code of application, add correlative code needs source code very familiar, causes the test period page of application being loaded to duration longer, and then the development process of impact application; And the method for manual testing can consume a large amount of human resources, testing efficiency is low and accuracy is not high.
Summary of the invention
Add correlative code in order to solve in prior art and need source code very familiar in the program source code of application, cause the test period page of application being loaded to duration longer, and then the development process of impact application, and manual testing can consume a large amount of human resources, low and the problem that accuracy is not high of testing efficiency, embodiments provides a kind of loading velocity method of testing and device.Described technical scheme is as follows:
On the one hand, provide a kind of page and load duration method of testing, described method comprises:
Obtain record screen video, described record screen video is the video recording at least one page loading procedure in the terminal;
Obtain in described record screen video, the relative point in time of described page start-up loading;
Obtain the relative point in time that the predetermined content in described record screen screen, in the described page has loaded;
Difference between the relative point in time loaded the predetermined content in the relative point in time of described page start-up loading and the described page is as the loading duration of the predetermined content in the described page.
On the other hand, provide a kind of page and load duration proving installation, described device comprises:
Video acquiring module, for obtaining record screen video, described record screen video is the video recording at least one page loading procedure in the terminal;
Very first time point acquisition module, for obtaining, described record is shielded in video, the relative point in time of described page start-up loading;
Second time point acquisition module, the relative point in time that the predetermined content for obtaining in described record screen screen, in the described page has loaded;
Load duration acquisition module, for the loading duration of the difference between the relative point in time that the predetermined content in the relative point in time of described page start-up loading and the described page loaded as the predetermined content in the described page.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By the relative point in time that the relative point in time of this page start-up loading of video acquisition of record page loading procedure has in the terminal loaded with the predetermined content in this page, and difference between the relative point in time predetermined content in the relative point in time of this page start-up loading and this page loaded is as the loading duration of the predetermined content in this page, in the program source code of application, adding correlative code in solution prior art needs source code very familiar, cause the test period page of application being loaded to duration longer, and then the development process of impact application, and manual testing can consume a large amount of human resources, low and the problem that accuracy is not high of testing efficiency, reach in saving human resources, shorten test period, while improving testing efficiency, ensure the object of test accuracy.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the page loading duration method of testing that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the page loading duration method of testing that the embodiment of the present invention two provides;
Fig. 3 is the structure drawing of device of the page loading duration proving installation that the embodiment of the present invention three provides;
Fig. 4 is the structure drawing of device of the page loading duration proving installation that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Refer to Fig. 1, the page that it illustrates the embodiment of the present invention one provides loads the method flow diagram of duration method of testing, and the method may be used for testing page loading velocity in the terminal.The method can comprise:
Step 102, obtains record screen video, and this record screen video is the video recording at least one page loading procedure in the terminal;
Step 104, obtains in this record screen video, the relative point in time of this page start-up loading;
Step 106, obtains the relative point in time that the predetermined content in this record screen screen, in this page has loaded;
Step 108, the difference between the relative point in time loaded the predetermined content in the relative point in time of this page start-up loading and this page is as the loading duration of the predetermined content in this page.
In sum, the page that the embodiment of the present invention provides loads duration method of testing, by the relative point in time that the relative point in time of this page start-up loading of video acquisition of record page loading procedure has in the terminal loaded with the predetermined content in this page, and difference between the relative point in time predetermined content in the relative point in time of this page start-up loading and this page loaded is as the loading duration of the predetermined content in this page, in the program source code of application, adding correlative code in solution prior art needs source code very familiar, cause the test period page of application being loaded to duration longer, and then the development process of impact application, and manual testing can consume a large amount of human resources, low and the problem that accuracy is not high of testing efficiency, reach in saving human resources, shorten test period, while improving testing efficiency, ensure the object of test accuracy.
Embodiment two
In order to the method provided above-described embodiment one is further described, refer to Fig. 2, the page that it illustrates the embodiment of the present invention two provides loads the method flow diagram of duration method of testing, the method may be used for the page in terminal, and the loading velocity in the such as mobile terminal such as smart mobile phone, panel computer is tested.The method can comprise:
Step 202, proving installation receives the SOT state of termination parameter of input, is configured this terminal according to this SOT state of termination parameter.
Wherein, this SOT state of termination parameter comprises network type and/or whether empties buffer memory.
When testing, need the page loading velocity of test terminal under different networks and buffer status respectively.Proving installation is before control terminal carries out record screen to the process of load page, first can receive the configuration parameter such as network type, buffer status (whether emptying buffer memory) of test subscriber's input, and according to the configuration parameter received, test terminal is configured.
Concrete, network type can comprise 2G(2nd-Generation, Generation Mobile Telecommunication System technology), 3G(3rd-Generation, G mobile communication), 4G(4th-Generation, forth generation mobile communication technology) and Wi-Fi(Wireless-Fidelity, Wireless Fidelity) etc., the current network of terminal can be configured to 2G/3G/4G/Wi-Fi according to network type by proving installation.
In addition, for a certain application program, having buffer memory and without under buffer status, its page loads required duration and usually can make a big difference.Test more targetedly to load duration to the page, proving installation is according in configuration parameter being the buffer memory that buffer status determines whether to empty terminal.
Step 204, proving installation obtains the record screen video of record page loading procedure in the terminal;
Proving installation can complete the start-up loading process of the pages at different levels of a certain application and carries out record screen to said process by control terminal, obtains record screen video.
Concrete, proving installation can control this terminal and start record screen; And control this terminal and start at least one page successively, wherein, this terminal is adjacent starts the first scheduled wait duration of being separated by between the page for twice; Proving installation controls this terminal at last page started in this at least one page and terminates record screen after waiting for the second scheduled wait duration; Finally, proving installation receives the record screen video that this terminal exports.
Proving installation can send instruction to terminal and carry out analog subscriber manual operation in the terminal.To test three kinds of different pages in a certain application, first proving installation sends to terminal the operation that instruction simulation user starts record screen software in the terminal, starts record screen, then, proving installation sends to terminal the operation that instruction simulation user starts application in the terminal, after waiting for the first scheduled duration, proving installation sends to terminal the operation that instruction simulation user clicks a certain original list opened in application homepage in the terminal, after again waiting for the first scheduled duration, proving installation sends to terminal the operation that instruction simulation user clicks a certain details page opened in this original list in the terminal, and after wait second scheduled duration, the operation that instruction simulation user closes record screen software is in the terminal sent to terminal, and the record screen video that the record screen software in receiving terminal exports.Wherein, above-mentioned first scheduled duration and the second scheduled duration can be arranged voluntarily by test subscriber, and the duration of being separated by between the adjacent twice transmission instruction of proving installation can be identical, also can be different, and to this, the embodiment of the present invention is not specifically limited.
It should be noted that, guide page can be shown when the first time be much applied in after installing or upgrading uses, therefore, when proving installation in step 201 according in configuration parameter be buffer status determine the buffer memory emptying terminal time, after proving installation starts the operation of application in the terminal to terminal transmission instruction simulation user, also need to send to terminal the operation that instruction simulation user closes guide page in the terminal.
In addition, when proving installation sends instruction simulation user clicking operation in the terminal to terminal, need the coordinate of simulating clicking operation, and in different terminals, due to the difference of resolution, the coordinate for same application simulation clicking operation is often different.To this, test subscriber can in advance by under different terminals resolution, the manual input test device of the simulation click coordinate corresponding to this application, and when testing, proving installation can search corresponding simulation click coordinate according to terminal type and embody rule.But when the device application that is more or test of test is more, said method needs test subscriber to search and manually each application of input is corresponding to the simulation click coordinate under each resolution, and waste plenty of time and manpower, testing efficiency is low.
To this, in order to the terminal type that adaptation is different, proving installation can calculate the coordinate of simulating clicking operation in current test terminal based on reference to resolution and reference coordinate.Concrete, test terminal obtains the resolution of the screen of this terminal, calculates start coordinate according to the resolution of the screen of reference resolution, reference coordinate and this terminal preset; Wherein, this reference coordinate is the position coordinates of startup button under this reference resolution of at least one page in this application, and this startup coordinate is the position coordinates of startup button under the resolution of the screen of this terminal of at least one page in this application; Test terminal starts at least one page in this application successively according to this this terminal of startup coordinate control.
Concrete, the reference resolution preset is (400*854), and the reference coordinate of startup button under this reference resolution of a certain page is (x
0, y
0), it is (320*480) that proving installation obtains current resolution, then proving installation can calculate the coordinate (x, y) of startup button under the resolution of this terminal of this page, wherein, and x=(320/400) * x
0; Y=(480/854) * y
0.
By the above-mentioned utilization method with reference to resolution and reference coordinate calculating simulation click coordinate, tester only needs to obtain and inputs and is eachly applied in reference to the corresponding click coordinate under resolution, cost of labor and test duration can be reduced, improve testing efficiency.
Step 206, proving installation obtains in this record screen video, the relative point in time of this page start-up loading;
Concrete, proving installation when control terminal carries out record screen in step 204, can obtain the time point t starting and record this record and shield video
0, and obtain the time point t starting a certain page in this record of recording screen video process
1; Proving installation can according to t
0and t
1calculate in this record screen video, the relative point in time t of this page start-up loading, wherein, t=t
1-t
0-T, T are the delay duration estimated.
Concrete, still with in above-mentioned steps to kind of the page (homepage of three in a certain application, original list and details page) to carry out test be example, test terminal record sends to terminal the running time point a that instruction simulation user starts record screen software in the terminal, the running time point b that instruction simulation user starts application is in the terminal sent to terminal, click the running time of opening original list in the terminal to terminal transmission instruction simulation user put c and click the running time point d opening details page to terminal transmission instruction simulation user in the terminal, consider proving installation to terminal send instructions to terminal receive instruction make a response between there is expected latency T, therefore, test terminal can calculate in this record screen video, the relative point in time of homepage page start-up loading is b-a-T, the relative point in time of original list start-up loading is c-a-T, the relative point in time of details page start-up loading is d-a-T.
Step 208, proving installation obtains the relative point in time that the predetermined content in this record screen screen, in this page has loaded;
Proving installation can carry out framing to this record screen video, obtains the relative point in time at least two frame pictures and this record of each leisure of this at least two frames picture screen video; Proving installation determines Target Photo from this at least two frames picture, and this Target Photo has been load predetermined content in this page and relative point in time picture the earliest; The relative point in time of this Target Photo is defined as the relative point in time that the predetermined content in this page has loaded by proving installation.This predetermined content can comprise the complete page of the framework of this page, the first word of this page and/or this page.
Wherein, when proving installation determines Target Photo from this at least two frames picture, that prestore, when having loaded corresponding to the predetermined content of this page reference picture can be obtained, and calculate the similarity of this at least two frames picture and this reference picture; Similarity is greater than predetermined threshold value, and relative point in time picture is the earliest defined as this Target Photo.
Step 210, the difference between the relative point in time that the predetermined content in the relative point in time of this page start-up loading and this page has loaded by proving installation is as the loading duration of the predetermined content in this page.
Wherein, this predetermined content can comprise the complete page of the framework of this page, the first word of this page and/or this page, and the loading duration of this predetermined content comprises the loading duration of the framework of this page, the loading duration of first word of this page and/or the loading duration of the complete page of this page.
Preferably, above-mentioned proving installation can be divided into two parts, i.e. video record part and loading duration detecting portion.When needs carry out the test of loading duration to multiple intimate application, video record part is carried out video record to the plurality of application and is preserved the video exported, load the video that duration detecting portion can extract one or more application from the video preserved, detect targetedly.
Concrete, during recorded video, the video record part in proving installation receives the resolution of the mark of one or more application of test subscriber's input, the screen of cycle index, configuration parameter (network type and buffer status) and the terminal to each application recorded video.It should be noted that, when the application identities of test subscriber's input is multiple, the record screen environment applied to make each is as far as possible close, poll record screen can be carried out to the plurality of application, such as, test subscriber inputs application A, B and C these 3 application mark and circulation 3 times, then video record part is according to the order can applying A->B->C->A->B->C->A->B->C, according to the method shown in above-mentioned steps 204 to these 3 application poll recorded video, finally obtain and preserve terminal export video.
When carrying out the test of loading duration, load the mark of application and the mark of video that duration detecting portion can receive test subscriber's input, according to the mark of the application received and the corresponding video of the marker extraction of video, and calculate the page loading duration of corresponding application according to the method shown in step 206 ~ 210.
In sum, the page that the embodiment of the present invention provides loads duration method of testing, by the relative point in time that the relative point in time of this page start-up loading of video acquisition of record page loading procedure has in the terminal loaded with the predetermined content in this page, and difference between the relative point in time predetermined content in the relative point in time of this page start-up loading and this page loaded is as the loading duration of the predetermined content in this page, solve in prior art and add correlative code and need source code very familiar in the program source code of application, cause the test period page of application being loaded to duration longer, and then the development process of impact application, and manual testing can consume a large amount of human resources, low and the problem that accuracy is not high of testing efficiency, reach in saving human resources, shorten test period, while improving testing efficiency, ensure the object of test accuracy.
Embodiment three
Refer to Fig. 3, the page that it illustrates the embodiment of the present invention three provides loads the structure drawing of device of duration proving installation, and this device can comprise:
Video acquiring module 301, for obtaining record screen video, described record screen video is the video recording at least one page loading procedure in the terminal;
Very first time point acquisition module 302, for obtaining, described record is shielded in video, the relative point in time of described page start-up loading;
Second time point acquisition module 303, the relative point in time that the predetermined content for obtaining in described record screen screen, in the described page has loaded;
Load duration acquisition module 304, for the loading duration of the difference between the relative point in time that the predetermined content in the relative point in time of described page start-up loading and the described page loaded as the predetermined content in the described page.
In sum, the page that the embodiment of the present invention provides loads duration proving installation, by the relative point in time that the relative point in time of this page start-up loading of video acquisition of record page loading procedure has in the terminal loaded with the predetermined content in this page, and difference between the relative point in time predetermined content in the relative point in time of this page start-up loading and this page loaded is as the loading duration of the predetermined content in this page, in the program source code of application, adding correlative code in solution prior art needs source code very familiar, cause the test period page of application being loaded to duration longer, and then the development process of impact application, and manual testing can consume a large amount of human resources, low and the problem that accuracy is not high of testing efficiency, reach in saving human resources, shorten test period, while improving testing efficiency, ensure the object of test accuracy.
Embodiment four
In order to the device provided above-described embodiment three is described further, refer to Fig. 4, the page that it illustrates the embodiment of the present invention four provides loads the structure drawing of device of duration proving installation, this device may be used for control terminal and records page loading video, and obtains the loading duration of the page according to the video recorded.This device can comprise:
Video acquiring module 401, for obtaining record screen video, described record screen video is the video recording at least one page loading procedure in the terminal;
Very first time point acquisition module 402, for obtaining, described record is shielded in video, the relative point in time of described page start-up loading;
Second time point acquisition module 403, the relative point in time that the predetermined content for obtaining in described record screen screen, in the described page has loaded;
Load duration acquisition module 404, for the loading duration of the difference between the relative point in time that the predetermined content in the relative point in time of described page start-up loading and the described page loaded as the predetermined content in the described page.
Described very first time point acquisition module 402, comprising:
First acquiring unit 4021, for obtaining the time point t starting and record described record screen video
0;
Second acquisition unit 4022, is recording for obtaining the time point t starting the described page in described record screen video process
1;
Time point computing unit 4023, for calculating, described record is shielded in video, the relative point in time t of described page start-up loading, wherein, t=t
1-t
0-T, T are the delay duration estimated.
Described second time point acquisition module 403, comprising:
Dividing frame unit 4031, for carrying out framing to described record screen video, obtaining the relative point in time at least two frame pictures and each leisure of described at least two frame picture described record screen video;
Picture determining unit 4032, for determining Target Photo from described at least two frame pictures, described Target Photo has been load predetermined content in the described page and relative point in time picture the earliest;
Time point determining unit 4033, for being defined as the relative point in time that the predetermined content in the described page has loaded by the relative point in time of described Target Photo.
Described picture determining unit 4032, comprising:
Picture obtains subelement 4032a, for obtain prestore, loaded corresponding to the predetermined content of the described page time reference picture;
Similarity Measure subelement 4032b, for the similarity of at least two frame pictures described in calculating and described reference picture;
Picture determination subelement 4032c, for similarity is greater than predetermined threshold value, and relative point in time picture is the earliest defined as described Target Photo.
Described video acquiring module 401, comprising:
Record screen start unit 4011, starts record screen for controlling described terminal;
Page start unit 4012, starts at least one page described successively for controlling described terminal, wherein, and the first scheduled wait duration of being separated by between the adjacent twice startup page of described terminal;
Record screen end unit 4013, terminates record screen for controlling described terminal at last page started at least one page described after waiting for the second scheduled wait duration;
Video reception unit 4014, for receiving the described record screen video that described terminal exports.
Described video acquiring module 401 also comprises:
Resolution acquiring unit 4015, before described terminal starts at least one page described successively, obtains the resolution of the screen of described terminal for controlling at described page start unit 4012;
Coordinate calculating unit 4016, the resolution for the screen according to reference resolution, reference coordinate and the described terminal preset calculates and starts coordinate; Wherein, described reference coordinate is the position coordinates of startup button under described reference resolution of at least one page described, and described startup coordinate is the position coordinates of startup button under the resolution of the screen of described terminal of at least one page described;
Described page start unit 4012, starts at least one page described successively for terminal according to described startup coordinate control.
Described device also comprises:
Parameter receiver module 405, for obtain record screen video in described video acquiring module 401 before, receive the SOT state of termination parameter of input, described SOT state of termination parameter comprises network type and/or whether empties buffer memory;
Configuration module 406, for being configured described terminal according to described SOT state of termination parameter.
In sum, the page that the embodiment of the present invention provides loads duration proving installation, by the relative point in time that the relative point in time of this page start-up loading of video acquisition of record page loading procedure has in the terminal loaded with the predetermined content in this page, and difference between the relative point in time predetermined content in the relative point in time of this page start-up loading and this page loaded is as the loading duration of the predetermined content in this page, solve in prior art and add correlative code and need source code very familiar in the program source code of application, cause the test period page of application being loaded to duration longer, and then the development process of impact application, and manual testing can consume a large amount of human resources, low and the problem that accuracy is not high of testing efficiency, reach in saving human resources, shorten test period, while improving testing efficiency, ensure the object of test accuracy.
It should be noted that: the page that above-described embodiment provides loads duration proving installation when test page loads duration, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the page that above-described embodiment provides loads duration proving installation and the page and loads the embodiment of the method that duration tests and belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (14)
1. the page loads a duration method of testing, and it is characterized in that, described method comprises:
Obtain record screen video, described record screen video is the video recording at least one page loading procedure in the terminal;
Obtain in described record screen video, the relative point in time of described page start-up loading;
Obtain the relative point in time that the predetermined content in described record screen screen, in the described page has loaded;
Difference between the relative point in time loaded the predetermined content in the relative point in time of described page start-up loading and the described page is as the loading duration of the predetermined content in the described page.
2. method according to claim 1, is characterized in that, the described record of described acquisition is shielded in video, the time point of described page start-up loading, comprising:
Obtain the time point t starting and record described record screen video
0;
Obtain and recording the time point t starting the described page in described record screen video process
1;
Calculate in described record screen video, the relative point in time t of described page start-up loading, wherein, t=t
1-t
0-T, T are the delay duration estimated.
3. method according to claim 1 and 2, is characterized in that, the relative point in time that the predetermined content in described acquisition described record screen screen, in the described page has loaded, and comprising:
Framing is carried out to described record screen video, obtains the relative point in time at least two frame pictures and each leisure of described at least two frame picture described record screen video;
From described at least two frame pictures, determine Target Photo, described Target Photo has been load predetermined content in the described page and relative point in time picture the earliest;
The relative point in time of described Target Photo is defined as the relative point in time that the predetermined content in the described page has loaded.
4. method according to claim 3, is characterized in that, describedly from described at least two frame pictures, determines Target Photo, comprising:
Obtain that prestore, when having loaded corresponding to the predetermined content of the described page reference picture;
The similarity of at least two frame pictures and described reference picture described in calculating;
Similarity is greater than predetermined threshold value, and relative point in time picture is the earliest defined as described Target Photo.
5. method according to claim 1, is characterized in that, described acquisition record screen video, comprising:
Control described terminal and start record screen;
Control described terminal and start at least one page described successively, wherein, the first scheduled wait duration of being separated by between the adjacent twice startup page of described terminal;
Controlling described terminal at last page started at least one page described terminates record screen after waiting for the second scheduled wait duration;
Receive the described record screen video that described terminal exports.
6. method according to claim 5, is characterized in that, before the described terminal of described control starts at least one page described successively, described method also comprises:
Obtain the resolution of the screen of described terminal;
Calculate according to the resolution of the screen of reference resolution, reference coordinate and the described terminal preset and start coordinate; Wherein, described reference coordinate is the position coordinates of startup button under described reference resolution of at least one page described, and described startup coordinate is the position coordinates of startup button under the resolution of the screen of described terminal of at least one page described;
The described terminal of described control starts at least one page described successively, comprising:
According to described startup coordinate control, terminal starts at least one page described successively.
7. method according to claim 1, is characterized in that, before described acquisition record screen video, described method also comprises:
Receive the SOT state of termination parameter of input, described SOT state of termination parameter comprises network type and/or whether empties buffer memory;
According to described SOT state of termination parameter, described terminal is configured.
8. the page loads a duration proving installation, and it is characterized in that, described device comprises:
Video acquiring module, for obtaining record screen video, described record screen video is the video recording at least one page loading procedure in the terminal;
Very first time point acquisition module, for obtaining, described record is shielded in video, the relative point in time of described page start-up loading;
Second time point acquisition module, the relative point in time that the predetermined content for obtaining in described record screen screen, in the described page has loaded;
Load duration acquisition module, for the loading duration of the difference between the relative point in time that the predetermined content in the relative point in time of described page start-up loading and the described page loaded as the predetermined content in the described page.
9. device according to claim 8, is characterized in that, described very first time point acquisition module, comprising:
First acquiring unit, for obtaining the time point t starting and record described record screen video
0;
Second acquisition unit, is recording for obtaining the time point t starting the described page in described record screen video process
1;
Time point computing unit, for calculating, described record is shielded in video, the relative point in time t of described page start-up loading, wherein, t=t
1-t
0-T, T are the delay duration estimated.
10. device according to claim 8 or claim 9, it is characterized in that, described second time point acquisition module, comprising:
Dividing frame unit, for carrying out framing to described record screen video, obtaining the relative point in time at least two frame pictures and each leisure of described at least two frame picture described record screen video;
Picture determining unit, for determining Target Photo from described at least two frame pictures, described Target Photo has been load predetermined content in the described page and relative point in time picture the earliest;
Time point determining unit, for being defined as the relative point in time that the predetermined content in the described page has loaded by the relative point in time of described Target Photo.
11. devices according to claim 10, is characterized in that, described picture determining unit, comprising:
Picture obtains subelement, for obtain prestore, loaded corresponding to the predetermined content of the described page time reference picture;
Similarity Measure subelement, for the similarity of at least two frame pictures described in calculating and described reference picture;
Picture determination subelement, for similarity is greater than predetermined threshold value, and relative point in time picture is the earliest defined as described Target Photo.
12. devices according to claim 8, is characterized in that, described video acquiring module, comprising:
Record screen start unit, starts record screen for controlling described terminal;
Page start unit, starts at least one page described successively for controlling described terminal, wherein, and the first scheduled wait duration of being separated by between the adjacent twice startup page of described terminal;
Record screen end unit, terminates record screen for controlling described terminal at last page started at least one page described after waiting for the second scheduled wait duration;
Video reception unit, for receiving the described record screen video that described terminal exports.
13. devices according to claim 12, is characterized in that, described video acquiring module also comprises:
Resolution acquiring unit, before described terminal starts at least one page described successively, obtains the resolution of the screen of described terminal for controlling at described page start unit;
Coordinate calculating unit, the resolution for the screen according to reference resolution, reference coordinate and the described terminal preset calculates and starts coordinate; Wherein, described reference coordinate is the position coordinates of startup button under described reference resolution of at least one page described, and described startup coordinate is the position coordinates of startup button under the resolution of the screen of described terminal of at least one page described;
Described page start unit, starts at least one page described successively for terminal according to described startup coordinate control.
14. devices according to claim 8, is characterized in that, described device also comprises:
Parameter receiver module, for obtain record screen video in described video acquiring module before, receive the SOT state of termination parameter of input, described SOT state of termination parameter comprises network type and/or whether empties buffer memory;
Configuration module, for being configured described terminal according to described SOT state of termination parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310370294.2A CN104424092B (en) | 2013-08-22 | 2013-08-22 | The page loads duration method of testing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310370294.2A CN104424092B (en) | 2013-08-22 | 2013-08-22 | The page loads duration method of testing and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104424092A true CN104424092A (en) | 2015-03-18 |
CN104424092B CN104424092B (en) | 2018-01-09 |
Family
ID=52973137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310370294.2A Active CN104424092B (en) | 2013-08-22 | 2013-08-22 | The page loads duration method of testing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104424092B (en) |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104916299A (en) * | 2015-06-04 | 2015-09-16 | 湖南康通电子科技有限公司 | Recording method and recording device |
CN104936002A (en) * | 2015-06-05 | 2015-09-23 | 网易有道信息技术(北京)有限公司 | Screen recording method and screen recording device |
CN104951392A (en) * | 2015-06-25 | 2015-09-30 | 上海卓易科技股份有限公司 | Method and device for measuring starting time of application program |
CN105117243A (en) * | 2015-07-30 | 2015-12-02 | 北京奇虎科技有限公司 | Method and apparatus for obtaining application starting time |
CN106021092A (en) * | 2016-05-04 | 2016-10-12 | 北京小米移动软件有限公司 | Method and device for determining starting duration of application program |
CN106326098A (en) * | 2015-07-01 | 2017-01-11 | 上海云双信息科技有限公司 | Method and device for testing page perceived performance |
CN106802935A (en) * | 2016-12-29 | 2017-06-06 | 腾讯科技(深圳)有限公司 | The method of testing and device of a kind of page fluency |
CN106815036A (en) * | 2015-11-30 | 2017-06-09 | 阿里巴巴集团控股有限公司 | Loading reminding method and device |
CN107122448A (en) * | 2017-04-25 | 2017-09-01 | 广州市诚毅科技软件开发有限公司 | A kind of intelligent display method and device of the estimated response time of front end page request |
CN107562610A (en) * | 2017-09-21 | 2018-01-09 | 上海谦问万答吧云计算科技有限公司 | Obtain method, apparatus, terminal and the medium of page load time |
CN107678895A (en) * | 2017-09-11 | 2018-02-09 | 上海斐讯数据通信技术有限公司 | A kind of method of testing and system of intelligent terminal page jump time |
CN108196904A (en) * | 2017-12-27 | 2018-06-22 | 广州品唯软件有限公司 | Calculate the method, apparatus and computer storage media of page response duration |
CN108399129A (en) * | 2018-02-28 | 2018-08-14 | 车智互联(北京)科技有限公司 | H5 page method for testing performance |
CN108984395A (en) * | 2018-06-21 | 2018-12-11 | 腾讯科技(北京)有限公司 | A kind of application program launching time-consuming test method, device and storage medium |
CN109039715A (en) * | 2018-07-17 | 2018-12-18 | 中国联合网络通信集团有限公司 | User's web page browsing experience evaluation method and system, network base station configuration method |
CN109683994A (en) * | 2018-12-12 | 2019-04-26 | 北京字节跳动网络技术有限公司 | Determine method, apparatus, storage medium and the electronic equipment of view building time |
CN110008107A (en) * | 2018-01-04 | 2019-07-12 | 北京奇虎科技有限公司 | Test method, device and the computer readable storage medium of application |
CN110177270A (en) * | 2019-06-05 | 2019-08-27 | 北京字节跳动网络技术有限公司 | Video head frame test method and device |
CN110324707A (en) * | 2019-07-12 | 2019-10-11 | 北京奇艺世纪科技有限公司 | A kind of video starts broadcasting time-consuming test method and device |
CN110333903A (en) * | 2018-03-28 | 2019-10-15 | 优酷网络技术(北京)有限公司 | The determination method and device of page load duration |
CN110471855A (en) * | 2019-08-21 | 2019-11-19 | 小胡杨信息技术(武汉)有限公司 | A kind of computer application software test macro and method |
CN110768835A (en) * | 2019-10-25 | 2020-02-07 | 杭州迪普科技股份有限公司 | Application duration statistical method, device, equipment and storage medium |
CN110888812A (en) * | 2019-11-26 | 2020-03-17 | 国核自仪系统工程有限公司 | System and method for testing response time of terminal page |
WO2020056878A1 (en) * | 2018-09-21 | 2020-03-26 | 网宿科技股份有限公司 | Method for acquiring launching duration of application interface, apparatus, and terminal device |
CN111614990A (en) * | 2020-05-08 | 2020-09-01 | 北京达佳互联信息技术有限公司 | Method and device for acquiring loading duration and electronic equipment |
CN111625432A (en) * | 2019-02-28 | 2020-09-04 | 北京字节跳动网络技术有限公司 | Page loading time consumption determination method and device and computer readable storage medium |
CN112363919A (en) * | 2020-11-02 | 2021-02-12 | 北京云测信息技术有限公司 | Automatic test method, device, equipment and storage medium for user interface AI |
US11762939B2 (en) | 2021-08-25 | 2023-09-19 | International Business Machines Corporation | Measure GUI response time |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101593146A (en) * | 2008-05-30 | 2009-12-02 | 国际商业机器公司 | Page automated testing method and device |
US7761841B1 (en) * | 2005-04-29 | 2010-07-20 | Sprint Communications Company L.P. | Enhanced data loading for test management tool |
CN101882105A (en) * | 2010-06-01 | 2010-11-10 | 华南理工大学 | Method for testing response time of Web page under concurrent environment |
CN102521100A (en) * | 2011-12-01 | 2012-06-27 | 江苏仕德伟网络科技股份有限公司 | Method for determining time spent in opening web page by website visitor |
-
2013
- 2013-08-22 CN CN201310370294.2A patent/CN104424092B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7761841B1 (en) * | 2005-04-29 | 2010-07-20 | Sprint Communications Company L.P. | Enhanced data loading for test management tool |
CN101593146A (en) * | 2008-05-30 | 2009-12-02 | 国际商业机器公司 | Page automated testing method and device |
CN101882105A (en) * | 2010-06-01 | 2010-11-10 | 华南理工大学 | Method for testing response time of Web page under concurrent environment |
CN102521100A (en) * | 2011-12-01 | 2012-06-27 | 江苏仕德伟网络科技股份有限公司 | Method for determining time spent in opening web page by website visitor |
Non-Patent Citations (1)
Title |
---|
周峰、王征: "高效的Web性能提升机制研究", 《鸡西大学学报》 * |
Cited By (39)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104916299B (en) * | 2015-06-04 | 2018-02-09 | 湖南康通电子科技有限公司 | The way of recording and recording device |
CN104916299A (en) * | 2015-06-04 | 2015-09-16 | 湖南康通电子科技有限公司 | Recording method and recording device |
CN104936002B (en) * | 2015-06-05 | 2018-11-06 | 网易有道信息技术(北京)有限公司 | A kind of method and apparatus of screen recording |
CN104936002A (en) * | 2015-06-05 | 2015-09-23 | 网易有道信息技术(北京)有限公司 | Screen recording method and screen recording device |
CN104951392A (en) * | 2015-06-25 | 2015-09-30 | 上海卓易科技股份有限公司 | Method and device for measuring starting time of application program |
CN106326098B (en) * | 2015-07-01 | 2020-09-01 | 上海云双信息科技有限公司 | Method and device for testing page perception performance |
CN106326098A (en) * | 2015-07-01 | 2017-01-11 | 上海云双信息科技有限公司 | Method and device for testing page perceived performance |
CN105117243B (en) * | 2015-07-30 | 2018-07-24 | 北京奇虎科技有限公司 | A kind of method and apparatus for the startup time obtaining application program |
CN105117243A (en) * | 2015-07-30 | 2015-12-02 | 北京奇虎科技有限公司 | Method and apparatus for obtaining application starting time |
CN106815036A (en) * | 2015-11-30 | 2017-06-09 | 阿里巴巴集团控股有限公司 | Loading reminding method and device |
CN106021092A (en) * | 2016-05-04 | 2016-10-12 | 北京小米移动软件有限公司 | Method and device for determining starting duration of application program |
CN106802935A (en) * | 2016-12-29 | 2017-06-06 | 腾讯科技(深圳)有限公司 | The method of testing and device of a kind of page fluency |
CN107122448A (en) * | 2017-04-25 | 2017-09-01 | 广州市诚毅科技软件开发有限公司 | A kind of intelligent display method and device of the estimated response time of front end page request |
CN107678895A (en) * | 2017-09-11 | 2018-02-09 | 上海斐讯数据通信技术有限公司 | A kind of method of testing and system of intelligent terminal page jump time |
CN107562610A (en) * | 2017-09-21 | 2018-01-09 | 上海谦问万答吧云计算科技有限公司 | Obtain method, apparatus, terminal and the medium of page load time |
CN108196904A (en) * | 2017-12-27 | 2018-06-22 | 广州品唯软件有限公司 | Calculate the method, apparatus and computer storage media of page response duration |
CN110008107A (en) * | 2018-01-04 | 2019-07-12 | 北京奇虎科技有限公司 | Test method, device and the computer readable storage medium of application |
CN108399129A (en) * | 2018-02-28 | 2018-08-14 | 车智互联(北京)科技有限公司 | H5 page method for testing performance |
CN110333903B (en) * | 2018-03-28 | 2022-05-24 | 阿里巴巴(中国)有限公司 | Method and device for determining page loading duration |
CN110333903A (en) * | 2018-03-28 | 2019-10-15 | 优酷网络技术(北京)有限公司 | The determination method and device of page load duration |
CN108984395A (en) * | 2018-06-21 | 2018-12-11 | 腾讯科技(北京)有限公司 | A kind of application program launching time-consuming test method, device and storage medium |
CN109039715A (en) * | 2018-07-17 | 2018-12-18 | 中国联合网络通信集团有限公司 | User's web page browsing experience evaluation method and system, network base station configuration method |
WO2020056878A1 (en) * | 2018-09-21 | 2020-03-26 | 网宿科技股份有限公司 | Method for acquiring launching duration of application interface, apparatus, and terminal device |
CN109683994A (en) * | 2018-12-12 | 2019-04-26 | 北京字节跳动网络技术有限公司 | Determine method, apparatus, storage medium and the electronic equipment of view building time |
CN109683994B (en) * | 2018-12-12 | 2022-03-18 | 北京字节跳动网络技术有限公司 | Method and device for determining view construction time, storage medium and electronic equipment |
CN111625432B (en) * | 2019-02-28 | 2023-03-28 | 北京字节跳动网络技术有限公司 | Page loading time consumption determination method and device and computer readable storage medium |
CN111625432A (en) * | 2019-02-28 | 2020-09-04 | 北京字节跳动网络技术有限公司 | Page loading time consumption determination method and device and computer readable storage medium |
CN110177270A (en) * | 2019-06-05 | 2019-08-27 | 北京字节跳动网络技术有限公司 | Video head frame test method and device |
CN110324707A (en) * | 2019-07-12 | 2019-10-11 | 北京奇艺世纪科技有限公司 | A kind of video starts broadcasting time-consuming test method and device |
CN110324707B (en) * | 2019-07-12 | 2021-12-10 | 北京奇艺世纪科技有限公司 | Video playing time consumption testing method and device |
CN110471855A (en) * | 2019-08-21 | 2019-11-19 | 小胡杨信息技术(武汉)有限公司 | A kind of computer application software test macro and method |
CN110768835A (en) * | 2019-10-25 | 2020-02-07 | 杭州迪普科技股份有限公司 | Application duration statistical method, device, equipment and storage medium |
CN110768835B (en) * | 2019-10-25 | 2022-03-25 | 杭州迪普科技股份有限公司 | Application duration statistical method, device, equipment and storage medium |
CN110888812A (en) * | 2019-11-26 | 2020-03-17 | 国核自仪系统工程有限公司 | System and method for testing response time of terminal page |
CN110888812B (en) * | 2019-11-26 | 2023-11-07 | 国核自仪系统工程有限公司 | Test system and test method for response time of terminal page |
CN111614990A (en) * | 2020-05-08 | 2020-09-01 | 北京达佳互联信息技术有限公司 | Method and device for acquiring loading duration and electronic equipment |
CN112363919A (en) * | 2020-11-02 | 2021-02-12 | 北京云测信息技术有限公司 | Automatic test method, device, equipment and storage medium for user interface AI |
CN112363919B (en) * | 2020-11-02 | 2024-02-13 | 北京云测信息技术有限公司 | User interface AI automatic test method, device, equipment and storage medium |
US11762939B2 (en) | 2021-08-25 | 2023-09-19 | International Business Machines Corporation | Measure GUI response time |
Also Published As
Publication number | Publication date |
---|---|
CN104424092B (en) | 2018-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104424092A (en) | Page loading time length testing method and device | |
CN107562610B (en) | Method, device, terminal and medium for acquiring page loading time | |
US12093708B2 (en) | Virtual machine scheduling method and apparatus | |
CN102420712B (en) | Testing method and equipment | |
CN105446799A (en) | Method and system for performing rule management in computer system | |
CN110362460B (en) | Application program performance data processing method, device and storage medium | |
CN104732285A (en) | Performance optimizing strategy obtaining and terminal performance optimizing method, server and terminal | |
CN104216826A (en) | Test method and device | |
CN102981949A (en) | Method for on-line automatic tests of server | |
CN104348680A (en) | Method and device for detecting network speed | |
CN112333734A (en) | Serving cell switching method and device | |
CN106648854A (en) | Task execution method and device for terminal | |
CN103581987A (en) | Method and device for testing webpage downloading speed of mobile terminal device | |
CN103516856A (en) | Method and apparatus for information combination | |
CN104809054A (en) | Method and system for realizing program testing | |
CN105487960B (en) | A kind of mobile terminal APP load energy consumption method for automatic measurement based on physics actual measurement | |
WO2021115178A1 (en) | Application program pre-compilation method and apparatus, server and storage medium | |
CN106302011A (en) | Method of testings based on multiterminal and terminal | |
CN106776277A (en) | A kind of method of striding course test, device and electronic equipment | |
US12047247B2 (en) | Network data analysis method, network data analysis functional network element and communication system | |
CN104424198A (en) | Method and device for acquiring page display speed | |
CN106817383B (en) | Access cycle management method and device based on data statistics reporting | |
CN113821438B (en) | Application response performance test method, system and computing device | |
CN113722228A (en) | Software system testing method and device | |
CN103888990A (en) | Power consumption test method, device and system for network service application of terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |