Unlock instant, AI-driven research and patent intelligence for your innovation.

Webpage loading time test method and device

A web page loading and testing method technology, applied in the communication field, can solve problems such as long time consumption, time calculation error, and inaccurate test conclusion, and achieve the effect of shortening test time, reducing test error, and improving accuracy

Active Publication Date: 2016-11-23
深圳市雅阅科技有限公司
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventor of the present invention found that it takes a certain amount of time to traverse to the position where the first word appears, which may cause errors in time calculation
Or, before traversing to the position where the first word appears, there are already multiple pixels in the page that have also loaded colors, which are first discovered by the test program, resulting in an error in time calculation. Therefore, by traversing the visible area on the web page The method of testing time for all pixels will lead to a long time-consuming and inaccurate test conclusion

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Webpage loading time test method and device
  • Webpage loading time test method and device
  • Webpage loading time test method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0027] See figure 1 , figure 1 It is a schematic flow chart of a method for testing web page loading time provided by the first embodiment of the present invention. The method includes:

[0028] In step S101, the information of the webpage to be tested is obtained.

[0029] In step S102, load the webpage to be tested according to the information.

[0030] Wherein, the steps S101 and S102 may specifically be:

[0031] It is understandable that the method for testing the loading time of the webpage can be based on running on a mobile terminal. The mobile terminal can be a notebook computer, a tablet PC (Personal Computer), a mobile phone, etc., with a storage unit and a microprocessor installed. The configuration of a terminal with computing capability is not specifically limited in the present invention.

[0032] In addition, the information of the webpage to be tested in the embodiment of the present invention may specifically refer to the identification of the webpage, such as the li...

no. 2 example

[0040] See figure 2 , figure 2 It is a schematic flow chart of a method for testing web page loading time provided by the second embodiment of the present invention. Wherein, the method for testing the loading time of the webpage is based on running on a mobile terminal, and the mobile terminal may be a notebook computer, a tablet PC, a mobile phone, etc., which is composed of a terminal with a storage unit and a microprocessor installed with a computing capability; To facilitate understanding, the following embodiments are mainly described by taking the mobile terminal as a mobile phone as an example, and this example does not constitute a limitation to the present invention.

[0041] Different from the first embodiment, this embodiment mainly describes in detail the process of web page loading and how to generate test results. The method includes:

[0042] In step S201, a test trigger instruction is acquired.

[0043] In step S202, according to the test trigger instruction, a b...

no. 3 example

[0067] In order to facilitate better implementation of the web page loading time testing method provided by the embodiment of the present invention, the embodiment of the present invention also provides an apparatus based on the above web page loading time testing method. The meanings of the nouns are the same as those in the above-mentioned method for testing webpage loading time. For specific implementation details, please refer to the description in the method embodiment.

[0068] See image 3 , image 3 It is a schematic structural diagram of a webpage loading time testing device provided by an embodiment of the present invention, wherein the webpage loading time testing device can be run on a mobile terminal, and the mobile terminal can be a notebook computer, a tablet PC, a mobile phone, etc. The storage unit is also composed of a terminal with a microprocessor and a computing capability, which is not specifically limited in the present invention.

[0069] Such as image 3 As...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a webpage loading time test method and device. The method includes the following steps that: the information of a webpage to be tested is obtained; the webpage to be tested is loaded according to the information; beginning from the start of the loading of the webpage to be tested, screen capture is carried out on the webpage to be tested according to a preset time interval, so that at least one screenshot can be obtained, and the screenshots are labeled until the loading of the webpage to be tested is completed in a preset time range; and all screenshots are traversed, the test result of webpage loading time is obtained according to labels corresponding to the screenshots and the preset time interval. According to the webpage loading time test method and device provided by the embodiments of the invention, In the loading process of the webpage, the information of the webpage is acquired through screen capture; and data are analyzed after the loading of the webpage is finished, so that the emergence time of the first word of the webpage in the loading of the webpage by a browser is calculated. Since the screen capture time interval is adopted as an error range, the degree of error can be adjusted through the screen capture time interval, and therefore, test errors can be decreased, and the accuracy of a test result can be improved.

Description

Technical field [0001] The invention belongs to the field of communication technology, and in particular relates to a method and device for testing web page loading time. Background technique [0002] With the rapid development of Internet technology, users have higher and higher requirements for the speed of browser loading webpages. Generally, when the browser loads a webpage, the time when the first non-white pixel appears in the webpage is commonly called the first word loading time or Time when the first word appears. By testing the loading time of the first word, it is possible to compare and analyze the speed at which different browsers display web pages to users in the first sense. [0003] The existing speed test method for loading the first word of a webpage usually requires an automated test program to loop through all pixels in the entire visible area of ​​the webpage. The automated test program needs to open a blank page before the test. After the URL input on the br...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/26
CPCH04L43/0876
Inventor 陆瑶瑶
Owner 深圳市雅阅科技有限公司