CN106161133A - The method of testing of a kind of web page loading time and device - Google Patents

The method of testing of a kind of web page loading time and device Download PDF

Info

Publication number
CN106161133A
CN106161133A CN201510190350.3A CN201510190350A CN106161133A CN 106161133 A CN106161133 A CN 106161133A CN 201510190350 A CN201510190350 A CN 201510190350A CN 106161133 A CN106161133 A CN 106161133A
Authority
CN
China
Prior art keywords
webpage
tested
time
sectional drawing
web page
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
Application number
CN201510190350.3A
Other languages
Chinese (zh)
Other versions
CN106161133B (en
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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510190350.3A priority Critical patent/CN106161133B/en
Publication of CN106161133A publication Critical patent/CN106161133A/en
Application granted granted Critical
Publication of CN106161133B publication Critical patent/CN106161133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses method of testing and the device of a kind of web page loading time, wherein the method includes: obtain the information of webpage to be tested;According to information, load webpage to be tested;From loading webpage to be tested just started, according to prefixed time interval, webpage to be tested is carried out screenshotss, obtain at least one sectional drawing, and carry out label for sectional drawing, until determining that webpage to be tested has loaded in preset time range;Travel through all sectional drawings, the label corresponding according to sectional drawing and prefixed time interval, obtain the test result of web page loading time.The embodiment of the present invention is in web page loading process, timing acquiring info web is carried out by screenshotss, webpage loads analytical data again after terminating, add up browser and load the lead-in time of occurrence of webpage, the method is with sectional drawing interval time as range of error, test error can be reduced by sectional drawing alignment error interval time size, improve test result accuracy.

Description

The method of testing of a kind of web page loading time and device
Technical field
The invention belongs to communication technical field, particularly relate to method of testing and the device of a kind of web page loading time.
Background technology
Along with developing rapidly of Internet technology, user loads the rate request of webpage the most increasingly to browser Height, usually, when browser loads webpage, in webpage, the time of first non-white pixel appearance is commonly called as For lead-in load time or lead-in time of occurrence.By the test to the lead-in load time, can be with relative analysis Different browsers displayed web page is to user's speed speed on the first sense organ.
The existing testing method that webpage lead-in is loaded, it usually needs followed by automatic test program Ring travels through all pixels in whole webpage viewing area.Automatic test program needs before test, Opening a blank page, inputted from the network address on browser and loading webpage, searching loop is whole All pixels of web page area in individual screen, until stopping meter when a certain pixel point color value is not white Time, using this period as the browser lead-in load time, and it is fast to assess, with this, the speed that webpage lead-in loads Slowly.
To in the research of prior art and practice process, it was found by the inventors of the present invention that owing to traversing head The position that word occurs need to take some time, the error being likely to result in Time Calculation.Or, also do not have When traversing the position that lead-in occurs, in the page, existing multiple pixels also add and set out color, and first by testing Program finds, causes the error in Time Calculation, therefore by all pictures in viewing area on traversal webpage Vegetarian refreshments carrys out the method for testing time, can cause the longest, the inaccurate problem of test result.
Summary of the invention
It is an object of the invention to provide method of testing and the device of a kind of web page loading time, it is intended to shorten and survey The time of examination webpage lead-in loading velocity, reduce test error, improve test result accuracy.
For solving above-mentioned technical problem, embodiment of the present invention offer techniques below scheme:
A kind of method of testing of web page loading time, including:
Obtain the information of webpage to be tested;
According to described information, load described webpage to be tested;
From loading described webpage to be tested just started, according to prefixed time interval to described to be tested Webpage carries out screenshotss, obtains at least one sectional drawing, and carries out label for described sectional drawing, until determining described Webpage to be tested has loaded in preset time range;
Travel through all sectional drawings, the label corresponding according to sectional drawing and described prefixed time interval, generate webpage and load The test result of time.
For solving above-mentioned technical problem, the embodiment of the present invention also provides for techniques below scheme:
A kind of test device of web page loading time, including:
Acquisition module, for obtaining the information of webpage to be tested;
Load-on module, for according to described information, loads described webpage to be tested;
Screenshotss label module, for just having started from the described webpage to be tested of loading, according to Preset Time Interval carries out screenshotss to described webpage to be tested, obtains at least one sectional drawing, and marks for described sectional drawing Number, until determining that described webpage to be tested has loaded in preset time range;
Generation module, is used for traveling through all sectional drawings, the label corresponding according to sectional drawing and described prefixed time interval, Generate the test result of web page loading time.
Relative to prior art, the present embodiment, load webpage according to the information of webpage to be tested;Loaded Cheng Zhong, carries out screenshotss according to prefixed time interval to webpage to be tested, obtains at least one sectional drawing label, Until determining that webpage to be tested has all loaded in preset time range;All sections are traveled through after loading Figure, the label corresponding according to sectional drawing and prefixed time interval, generate the test result of web page loading time;This Inventive embodiments, in web page loading process, carrys out timing acquiring info web by screenshotss, and webpage loads and terminates After analytical data again, add up browser and load the lead-in time of occurrence of webpage, when the method is spaced with sectional drawing Between be range of error, can be by sectional drawing alignment error interval time size, with respect on traversal webpage The method that all pixels in viewing area carry out the testing time, shortens the testing time, reduces test error, Improve test result accuracy.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings, by the detailed description of the invention of the present invention is described in detail, the skill of the present invention will be made Art scheme and other beneficial effect are apparent.
Fig. 1 is the schematic flow sheet of the method for testing of the web page loading time that first embodiment of the invention provides;
The schematic flow sheet of the method for testing of the web page loading time that Fig. 2 provides for second embodiment of the invention;
The structural representation of the test device of the web page loading time that Fig. 3 provides for third embodiment of the invention;
The structural representation of the test device of the web page loading time that Fig. 4 provides for fourth embodiment of the invention.
Detailed description of the invention
Refer to graphic, the most identical element numbers represents identical assembly, and the principle of the present invention is with reality The computing environment that Shi Yi is suitable illustrates.The following description is concrete based on the illustrated present invention Embodiment, it is not construed as limiting other specific embodiment that the present invention is the most detailed herein.
In the following description, the specific embodiment of the present invention will be with reference to by performed by one or multi-section computer Step and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation will have mention for several times by Computer performs, and computer as referred to herein performs to include by representing with the data in a structuring pattern The operation of computer processing unit of electronic signal.This operation is changed these data or is maintained at this calculating Position in the memory system of machine, it is reconfigurable or other with the side known to the tester of this area Formula changes the running of this computer.The data structure that these data are maintained is the provider location of this internal memory, its Have by particular characteristics defined in this data form.But, the principle of the invention illustrates with above-mentioned word, It is not represented as a kind of restriction, and this area tester will appreciate that plurality of step and the behaviour of the following stated Also may be implemented in the middle of hardware.
First embodiment
Refer to the method for testing that Fig. 1, Fig. 1 are the web page loading time that first embodiment of the invention provides Schematic flow sheet.Described method includes:
In step S101, obtain the information of webpage to be tested.
In step s 102, according to described information, load described webpage to be tested.
Wherein, described step S101 and step S102 can particularly as follows:
It is understood that the method for testing of described web page loading time can be run based on a mobile terminal, Described mobile terminal can be the tools such as mobile computer, flat board PC (Personal Computer), mobile phone Standby storage element is also provided with microprocessor and has the terminating machine composition of operational capability, and this is not made by the present invention Concrete restriction.
It addition, the information of webpage to be tested described in the embodiment of the present invention can refer specifically to the mark of this webpage, The chained address etc. of webpage as to be visited in this;It is contemplated that this information can be clicked on by user or touches The screen touching mobile terminal carries out triggering transmission, is not especially limited herein.
In step s 103, from loading described webpage to be tested just started, according between Preset Time Every described webpage to be tested is carried out screenshotss, obtain at least one sectional drawing, and carry out label for described sectional drawing, Until determining that described webpage to be tested has loaded in preset time range.
It is understood that step S103 is the process that webpage to be tested loads, further, described Webpage to be tested is that browser based on Windows operating system carries out loading, and webpage loads namely The process of webpage opened by browser.
It is contemplated that described prefixed time interval and described preset time range all can be pre-set at In mobile terminal;Wherein, described prefixed time interval is sectional drawing interval time, can adjust according to actual scene Its size whole, with alignment error scope;Described preset time range can be set based on experience value, this reality Execute example the concrete value of prefixed time interval and preset time range is all not construed as limiting.
In step S104, travel through all sectional drawings, between the label corresponding according to sectional drawing and described Preset Time Every, generate the test result of web page loading time.
It is understood that described label may refer to the number being ranked up according to screenshotss tandem, with Indicating the sectional drawing that it is corresponding, according to aforementioned prefixed time interval and label, available each sectional drawing loads Time, such that it is able to obtain time that webpage lead-in loads and the test result such as total time that webpage loads, It is not specifically described herein.
From the foregoing, the method for testing of the web page loading time of the present embodiment offer, according to net to be tested The information of page loads webpage;In loading procedure, according to prefixed time interval, webpage to be tested is carried out screenshotss, Obtain at least one sectional drawing label, until determining that webpage to be tested all adds in preset time range Load completes;All sectional drawings are traveled through after loading, the label corresponding according to sectional drawing and prefixed time interval, generate net The test result of page load time;The embodiment of the present invention, in web page loading process, is regularly adopted by screenshotss Collection info web, webpage loads analytical data again after terminating, and adds up browser and loads the lead-in of webpage and occur Time, the method, can be big by sectional drawing alignment error interval time with sectional drawing interval time as range of error Method that is little, that carry out the testing time with respect to all pixels in viewing area on traversal webpage, shortens Testing time, reduce test error, improve test result accuracy.
Second embodiment
Refer to the method for testing of the web page loading time that Fig. 2, Fig. 2 provide for second embodiment of the invention Schematic flow sheet.Wherein, the method for testing of described web page loading time is run based on a mobile terminal, institute Stating mobile terminal can be that mobile computer, flat board PC, mobile phone etc. possess storage element and be provided with micro-place Manage device and there is the terminating machine composition of operational capability;For convenience of understanding, following example are mainly with mobile terminal Being to be described as a example by mobile phone, this citing does not constitute limitation of the invention.
Being different from first embodiment, the present embodiment loads mainly for webpage and combines how to generate test The process of result is described in detail.Described method includes:
In step s 201, test triggering command is obtained.
In step S202, according to described test triggering command, in preset time threshold, access one blank Page.
Wherein, described step S201 and step S202 can particularly as follows:
It is understood that before webpage to be tested is tested, first open browser, wherein, institute Stating webpage to be tested can be that browser based on Windows operating system carries out loading, and webpage loads Namely the process of webpage opened by browser.After opening browser, it is necessary first in a preset time threshold One blank page is conducted interviews, i.e. determine access blank page terminate after just access webpage to be tested, mesh Be easy for determine the initial time loading webpage to be tested.
It is contemplated that the time (the most described preset time threshold) accessing blank page can pre-set In the terminal, concrete, could be arranged to the several seconds, such as 2 seconds, 3 seconds etc., be not especially limited herein.
In step S203, obtain the information of webpage to be tested.
In step S204, according to described information, load described webpage to be tested.
Wherein, described step S203 and step S204 can particularly as follows:
The information of webpage to be tested described in the embodiment of the present invention can refer specifically to the mark of this webpage, such as this The chained address etc. of webpage to be visited;It is contemplated that this information can be clicked on by user or touch shifting The screen of dynamic terminal carries out triggering transmission, it is also possible to be that automatization test system is detecting that blank page accesses Automatically obtain after end, be not especially limited herein.
In step S205, from loading described webpage to be tested just started, according between Preset Time Every described webpage to be tested is carried out screenshotss, obtain at least one sectional drawing, and carry out label for described sectional drawing;
It is understood that start timing, every prefixed time interval in time loading described webpage to be tested To described Web page screen-cutting to be tested once, it is followed successively by described sectional drawing according to the sequencing of screenshotss and carries out label.
As, described prefixed time interval is the M second, every the M second, (the most to be tested for browser Webpage) sectional drawing once, and is sectional drawing flag sequence number, from the beginning of 1, the sequencing according to screenshotss increases successively Add 1, until webpage has loaded.
It is contemplated that described prefixed time interval and described preset time range all can be pre-set at In mobile terminal;Wherein, described prefixed time interval is sectional drawing interval time, can adjust according to actual scene Its size whole, with alignment error scope;Described preset time range can be set based on experience value, this reality Execute example the concrete value of prefixed time interval and preset time range is all not construed as limiting.
In step S206, it is judged that whether described webpage to be tested has loaded in preset time range;
During loading webpage to be tested, perform step S207a according to the judged result of step S206 Or step S207b;
In step S207a, however, it is determined that go out described webpage to be tested and loaded in preset time range, Then according to the sequencing of screenshotss, from first sectional drawing, travel through all sectional drawings, obtain described net to be tested In Ye first non-white pixel occur sectional drawing and the label of correspondence;
In getting webpage to be tested first non-white pixel occur sectional drawing and correspondence label after, Perform step S208.
In step S208, cut graph laplacian and described time according to what described first non-white pixel occurred Interval, calculates the time that first non-white pixel occurs, and using result of calculation as web page loading time Test result.
It is understood that described step S207a and step S208 are until determining described to be tested When webpage has loaded in preset time range, mobile terminal needs to travel through all sectional drawings, according to sectional drawing pair The label answered and described prefixed time interval, implementing of the test result of generation web page loading time;
As, described prefixed time interval is the M second, from the beginning of first sectional drawing, travels through this webpage to be tested All sectional drawings, find the serial number of the sectional drawing that lead-in occurs.According to the serial number of the sectional drawing that lead-in occurs, fortune The time that this website lead-in occurs is calculated with formula t=n*M.Wherein, n is sectional drawing serial number, and M is every The time interval (the most described prefixed time interval) of two sectional drawings, and interval time is constant.
It is to say, according to label corresponding to sectional drawing and described prefixed time interval, each section can be calculated The time that figure loads, such that it is able to obtain the time of webpage lead-in loading and surveying total time etc. of webpage loading Test result.
In step S207b, however, it is determined that go out described webpage to be tested and do not loaded in preset time range, Then stop described webpage to be tested is carried out sectional drawing, and close corresponding webpage to be tested.
If i.e. arrived after setting time-out time, this website there still is not loading to complete, and no longer timing cuts for browser Figure, and close this website.
From the foregoing, the method for testing of the web page loading time of the present embodiment offer, according to net to be tested The information of page loads webpage;In loading procedure, according to prefixed time interval, webpage to be tested is carried out screenshotss, Obtain at least one sectional drawing label, until determining that webpage to be tested all adds in preset time range Load completes;All sectional drawings are traveled through after loading, the label corresponding according to sectional drawing and prefixed time interval, generate net The test result of page load time;The embodiment of the present invention, in web page loading process, is regularly adopted by screenshotss Collection info web, webpage loads analytical data again after terminating, and adds up browser and loads the lead-in of webpage and occur Time, the method, can be big by sectional drawing alignment error interval time with sectional drawing interval time as range of error Method that is little, that carry out the testing time with respect to all pixels in viewing area on traversal webpage, shortens Testing time, reduce test error, improve test result accuracy.
3rd embodiment
For ease of preferably implementing the method for testing of the web page loading time that the embodiment of the present invention provides, the present invention Embodiment also provides for the device of a kind of method of testing based on above-mentioned web page loading time.The wherein implication of noun Identical with the method for testing of above-mentioned web page loading time, implement details and be referred in embodiment of the method Explanation.
Refer to the structure of the test device of the web page loading time that Fig. 3, Fig. 3 provide for the embodiment of the present invention Schematic diagram, the test device of wherein said web page loading time can run based on a mobile terminal, described shifting Dynamic terminal can be that mobile computer, flat board PC, mobile phone etc. possess storage element and be provided with microprocessor And the terminating machine with operational capability is constituted, this is not especially limited by the present invention.
As it is shown on figure 3, the test device of web page loading time of the present invention can include data obtaining module 301, load-on module 302, screenshotss label module 303 and generation module 304.
Wherein, described data obtaining module 301, for obtaining the information of webpage to be tested;Described loading Module 302, for according to described information, loads described webpage to be tested;
It is understood that the information of webpage to be tested described in the embodiment of the present invention can refer specifically to this net The mark of page, the chained address etc. of webpage as to be visited in this;It is contemplated that this information can be by using Family is clicked on or is touched the screen of mobile terminal and carries out triggering transmission, is not especially limited herein
Described screenshotss label module 303, for just having started from the described webpage to be tested of loading, according to Prefixed time interval carries out screenshotss to described webpage to be tested, obtains at least one sectional drawing, and is described section Figure carries out label, until determining that described webpage to be tested has loaded in preset time range;Described Generation module 304, is used for traveling through all sectional drawings, the label corresponding according to sectional drawing and described prefixed time interval, Generate the test result of web page loading time.
It is understood that described screenshotss label module 303 is for the loading of webpage to be visited, further, Described webpage to be tested is that browser based on Windows operating system carries out loading, and webpage loads also It it is exactly the browser process of opening webpage.
It is contemplated that described prefixed time interval and described preset time range all can be pre-set at In mobile terminal;Wherein, described prefixed time interval is sectional drawing interval time, can adjust according to actual scene Its size whole, with alignment error scope;Described preset time range can be set based on experience value, this reality Execute example the concrete value of prefixed time interval and preset time range is all not construed as limiting.
Wherein, described label may refer to the number being ranked up according to screenshotss tandem, to indicate its institute Corresponding sectional drawing, according to aforementioned prefixed time interval and label, can get the time that each sectional drawing loads, Such that it is able to obtain the test result such as the time of webpage lead-in loading and the total time of webpage loading, the most not It is described specifically.
From the foregoing, the test device of the web page loading time of the present embodiment offer, according to net to be tested The information of page loads webpage;In loading procedure, according to prefixed time interval, webpage to be tested is carried out screenshotss, Obtain at least one sectional drawing label, until determining that webpage to be tested all adds in preset time range Load completes;All sectional drawings are traveled through after loading, the label corresponding according to sectional drawing and prefixed time interval, generate net The test result of page load time;The embodiment of the present invention, in web page loading process, is regularly adopted by screenshotss Collection info web, webpage loads analytical data again after terminating, and adds up browser and loads the lead-in of webpage and occur Time, the method, can be big by sectional drawing alignment error interval time with sectional drawing interval time as range of error Method that is little, that carry out the testing time with respect to all pixels in viewing area on traversal webpage, shortens Testing time, reduce test error, improve test result accuracy.
4th embodiment
Refer to the structure of the test device of the web page loading time that Fig. 4, Fig. 4 provide for the embodiment of the present invention Schematic diagram, the test device of wherein said web page loading time includes: data obtaining module 401, loading mould Block 402, screenshotss label module 403 and generation module 404, wherein, above-mentioned each function mould in this embodiment The function of block can be corresponding with reference to the described data obtaining module 301 in the 4th embodiment, load-on module 302, screenshotss label module 303 and the associated description of generation module 304, do not repeat.
Preferably, the test device of described web page loading time can also include: instruction acquisition module 405, For obtaining test triggering command;Access modules 406, for according to described test triggering command, presetting Access a blank page in time threshold, accessing, to determine, the webpage that after blank page terminates, triggering access is to be tested.
It is understood that before webpage to be tested is tested, first open browser, wherein, institute Stating webpage to be tested can be that browser based on Windows operating system carries out loading, and webpage loads Namely the process of webpage opened by browser.After opening browser, it is necessary first in a preset time threshold One blank page is conducted interviews, i.e. determine access blank page terminate after just access webpage to be tested, mesh Be easy for determine the initial time loading webpage to be tested.
The test device of described web page loading time can also include: control module 407, for if it is determined that Described webpage to be tested has not loaded in preset time range, then control described screenshotss label module and stop Only described webpage to be tested is carried out sectional drawing, and closes corresponding webpage to be tested.
If i.e. arrived after setting time-out time, this website there still is not loading to complete, and no longer timing cuts for browser Figure, and close this website.
Described screenshotss label module 403 can be also used for: is followed successively by described sectional drawing according to the sequencing of screenshotss Carry out label.
Based on this, described generation module 404 can include acquiring unit 4041 and calculate signal generating unit 4042, wherein said acquiring unit 4041, for according to the sequencing of screenshotss, from first sectional drawing time Go through all sectional drawings, obtain sectional drawing that first non-white pixel in described webpage to be tested occurs and correspondence Label;Described calculating signal generating unit 4042, for the sectional drawing according to the appearance of described first non-white pixel Label and described time interval, calculate first non-white pixel occur time, and using result of calculation as The test result of web page loading time.
It is understood that the part the most not described in detail, may refer to add above with respect to webpage The detailed description of the method for testing of load time, here is omitted.
From the foregoing, the test device of the web page loading time of the present embodiment offer, according to net to be tested The information of page loads webpage;In loading procedure, according to prefixed time interval, webpage to be tested is carried out screenshotss, Obtain at least one sectional drawing label, until determining that webpage to be tested all adds in preset time range Load completes;All sectional drawings are traveled through after loading, the label corresponding according to sectional drawing and prefixed time interval, generate net The test result of page load time;The embodiment of the present invention, in web page loading process, is regularly adopted by screenshotss Collection info web, webpage loads analytical data again after terminating, and adds up browser and loads the lead-in of webpage and occur Time, the method, can be big by sectional drawing alignment error interval time with sectional drawing interval time as range of error Method that is little, that carry out the testing time with respect to all pixels in viewing area on traversal webpage, shortens Testing time, reduce test error, improve test result accuracy.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, in certain embodiment the most in detail The part stated, may refer to the detailed description of the method for testing above with respect to web page loading time, the most no longer Repeat.
The test device of the described web page loading time that the embodiment of the present invention provides, is such as computer, flat board Computer, the mobile phone with touch function etc., the test device of described web page loading time and foregoing embodiments In the method for testing of web page loading time belong to same design, at the test device of described web page loading time On the either method provided in the method for testing embodiment of described web page loading time can be provided, it is specifically real Existing process refers to the method for testing embodiment of described web page loading time, and here is omitted.
It should be noted that for the method for testing of web page loading time of the present invention, this area is common Tester is appreciated that the whole or portion of the method for testing realizing web page loading time described in the embodiment of the present invention Split flow, can be by the hardware that computer program controls to be correlated with and completes, and described computer program can It is stored in a computer read/write memory medium, as being stored in the memorizer of terminal, and by this terminal At least one processor perform, can include in the process of implementation such as the method for testing of described web page loading time The flow process of embodiment.Wherein, described storage medium can be magnetic disc, CD, read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the test device of the described web page loading time of the embodiment of the present invention, its each functional module is permissible It is integrated in one to process in chip, it is also possible to be that modules is individually physically present, it is also possible to two or two It is integrated in a module with upper module.Above-mentioned integrated module both can realize, also to use the form of hardware Can realize to use the form of software function module.If described integrated module is with the shape of software function module Formula realizes and as independent production marketing or when using, it is also possible to be stored in the storage of embodied on computer readable In medium, described storage medium is such as read only memory, disk or CD etc..
Method of testing and the device of a kind of web page loading time provided the embodiment of the present invention above are carried out Being discussed in detail, principle and the embodiment of the present invention are set forth by specific case used herein, with The explanation of upper embodiment is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this The technical staff in field, according to the thought of the present invention, the most all has and changes In place of change, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. the method for testing of a web page loading time, it is characterised in that including:
Obtain the information of webpage to be tested;
According to described information, load described webpage to be tested;
From loading described webpage to be tested just started, according to prefixed time interval to described to be tested Webpage carries out screenshotss, obtains at least one sectional drawing, and carries out label for described sectional drawing, until determining described Webpage to be tested has loaded in preset time range;
Travel through all sectional drawings, the label corresponding according to sectional drawing and described prefixed time interval, generate webpage and load The test result of time.
The method of testing of web page loading time the most according to claim 1, it is characterised in that described in obtain Before taking the information of webpage to be tested, also include:
Obtain test triggering command;
According to described test triggering command, in preset time threshold, access a blank page, accessing to determine Blank page triggers after terminating and accesses webpage to be tested.
The method of testing of web page loading time the most according to claim 1, it is characterised in that described time Before going through all sectional drawings, also include:
If it is determined that described webpage to be tested has not loaded in preset time range, then stop described Webpage to be tested carries out sectional drawing, and closes corresponding webpage to be tested.
4., according to the method for testing of the web page loading time described in any one of claims 1 to 3, its feature exists In, described carry out label for described sectional drawing, including:
It is followed successively by described sectional drawing according to the sequencing of screenshotss and carries out label.
The method of testing of web page loading time the most according to claim 4, it is characterised in that described time Go through all sectional drawings, the label corresponding according to sectional drawing and described prefixed time interval, generate web page loading time Test result, including:
According to the sequencing of screenshotss, from first sectional drawing, travel through all sectional drawings, obtain described to be tested In webpage first non-white pixel occur sectional drawing and the label of correspondence;
Cut graph laplacian and described time interval according to what described first non-white pixel occurred, calculate first The time that non-white pixel occurs, and using result of calculation as the test result of web page loading time.
6. the test device of a web page loading time, it is characterised in that including:
Data obtaining module, for obtaining the information of webpage to be tested;
Load-on module, for according to described information, loads described webpage to be tested;
Screenshotss label module, for just having started from the described webpage to be tested of loading, according to Preset Time Interval carries out screenshotss to described webpage to be tested, obtains at least one sectional drawing, and marks for described sectional drawing Number, until determining that described webpage to be tested has loaded in preset time range;
Generation module, is used for traveling through all sectional drawings, the label corresponding according to sectional drawing and described prefixed time interval, Generate the test result of web page loading time.
The test device of web page loading time the most according to claim 6, it is characterised in that described dress Put and also include:
Instruction acquisition module, is used for obtaining test triggering command;
Access modules, for according to described test triggering command, accesses a blank page in preset time threshold, The webpage that after blank page terminates, triggering access is to be tested is being accessed to determine.
The test device of web page loading time the most according to claim 6, it is characterised in that described dress Put and also include:
Control module, is used for if it is determined that described webpage to be tested has not loaded in preset time range, Then control described screenshotss label module and stop described webpage to be tested is carried out sectional drawing, and close corresponding to be measured The webpage of examination.
9., according to the test device of the web page loading time described in any one of claim 6 to 8, its feature exists In, described screenshotss label module is additionally operable to: is followed successively by described sectional drawing according to the sequencing of screenshotss and carries out label.
The test device of web page loading time the most according to claim 9, it is characterised in that described Generation module, including:
Acquiring unit, for the sequencing according to screenshotss, travels through all sectional drawings from first sectional drawing, obtains Take sectional drawing and the label of correspondence that in described webpage to be tested, first non-white pixel occurs;
Calculate signal generating unit, cut graph laplacian and described for occur according to described first non-white pixel Time interval, calculate first non-white pixel occur time, and using result of calculation as webpage load time Between test result.
CN201510190350.3A 2015-04-21 2015-04-21 Method and device for testing webpage loading time Active CN106161133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510190350.3A CN106161133B (en) 2015-04-21 2015-04-21 Method and device for testing webpage loading time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510190350.3A CN106161133B (en) 2015-04-21 2015-04-21 Method and device for testing webpage loading time

Publications (2)

Publication Number Publication Date
CN106161133A true CN106161133A (en) 2016-11-23
CN106161133B CN106161133B (en) 2020-08-04

Family

ID=58058467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510190350.3A Active CN106161133B (en) 2015-04-21 2015-04-21 Method and device for testing webpage loading time

Country Status (1)

Country Link
CN (1) CN106161133B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109299000A (en) * 2018-08-22 2019-02-01 中国平安人寿保险股份有限公司 A kind of webpage response test method, computer readable storage medium and terminal device
CN109446095A (en) * 2018-11-07 2019-03-08 北京奇艺世纪科技有限公司 A kind of test method, device and the electronic equipment of page presentation speed
CN109710529A (en) * 2018-12-27 2019-05-03 江苏满运软件科技有限公司 Web project operation detection method, device, electronic equipment, storage medium
CN110688602A (en) * 2019-09-25 2020-01-14 杭州安恒信息技术股份有限公司 Method, device and system for testing webpage loading speed
CN111026989A (en) * 2019-11-15 2020-04-17 汉海信息技术(上海)有限公司 Page loading time detection method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624576A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for automatically testing webpage downloading time of browser and system thereof
CN103581987A (en) * 2012-07-31 2014-02-12 腾讯科技(深圳)有限公司 Method and device for testing webpage downloading speed of mobile terminal device
CN103729285A (en) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 Method, device and system for testing web page
US20140380278A1 (en) * 2013-06-20 2014-12-25 Nir Dayan Automatic framework for parallel testing on multiple testing environments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624576A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for automatically testing webpage downloading time of browser and system thereof
CN103581987A (en) * 2012-07-31 2014-02-12 腾讯科技(深圳)有限公司 Method and device for testing webpage downloading speed of mobile terminal device
CN103729285A (en) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 Method, device and system for testing web page
US20140380278A1 (en) * 2013-06-20 2014-12-25 Nir Dayan Automatic framework for parallel testing on multiple testing environments

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109299000A (en) * 2018-08-22 2019-02-01 中国平安人寿保险股份有限公司 A kind of webpage response test method, computer readable storage medium and terminal device
CN109446095A (en) * 2018-11-07 2019-03-08 北京奇艺世纪科技有限公司 A kind of test method, device and the electronic equipment of page presentation speed
CN109710529A (en) * 2018-12-27 2019-05-03 江苏满运软件科技有限公司 Web project operation detection method, device, electronic equipment, storage medium
CN110688602A (en) * 2019-09-25 2020-01-14 杭州安恒信息技术股份有限公司 Method, device and system for testing webpage loading speed
CN111026989A (en) * 2019-11-15 2020-04-17 汉海信息技术(上海)有限公司 Page loading time detection method and device and electronic equipment
CN111026989B (en) * 2019-11-15 2023-06-27 汉海信息技术(上海)有限公司 Page loading time detection method and device and electronic equipment

Also Published As

Publication number Publication date
CN106161133B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN106161133A (en) The method of testing of a kind of web page loading time and device
US9600400B1 (en) Performance testing of web application components using image differentiation
CN106296779B (en) A kind of threedimensional model rendering indication method and system
CN102306174B (en) Method and equipment for interacting with user based on web page elements
CN104899336A (en) Method for measuring full rendering time of front page of webpage
US20120110453A1 (en) Display of Image Search Results
US20210103515A1 (en) Method of detecting user interface layout issues for web applications
CN105094622B (en) Adjust the method and apparatus of form col width
CN107885645A (en) Calculate method, apparatus and electronic equipment that the first screen of the page renders duration
CN107908959A (en) Site information detection method, device, electronic equipment and storage medium
CN102930099B (en) A kind of actual situation mode contrast verification system
CN105320602A (en) Testing method and device for application starting speed
US11120193B2 (en) Analysis of coupled noise for integrated circuit design
CN113221855B (en) Small target detection method and system based on scale sensitive loss and feature fusion
CN104133884A (en) Webpage displaying method and device
CN107315833A (en) Method and apparatus of the retrieval with downloading based on application program
CN105376311B (en) A kind of page stay time based on terminal access determines method and device
CN102866885B (en) Method and device for confirming clicking position in webpage
CN113270159B (en) Interface display method and device of clinical test electronic data acquisition and management system
CN104270471A (en) Method, device and system for achieving new function reminding
Su et al. Research on surface settlement prediction based on the combination prediction model of S-shaped growth curves
CN110708270A (en) Abnormal link detection method and device
CN103383695B (en) A kind of method and apparatus for being used to identify WAP web page
CN107239391B (en) Application program testing method and device and terminal
US10318682B1 (en) Systems and methods for analyzing node impedance state

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221205

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518,101

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right