Method, device, terminal and medium for obtaining page loading time

A page loading and page technology, applied in hardware monitoring and other directions, can solve problems such as increased labor cost, time error of loading completion, page loading time error, etc.

Active Publication Date: 2021-04-27
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of applying the above method to test the loading time of the pages in the application, the inventor found that the existing technology has the following defects: there may be some errors in the time of manually recording the manual click and the time when the loading of the application page is completed
For example, there is a certain reaction time between the tester's action of seeing the page load complete and clicking the stopwatch to record the page load completion time. This time may be short, but the page load time is also very short, so this reaction time will give Tests for page load times create errors
Moreover, the reaction time varies from person to person, or the reaction time of the same tester in different states is also different, so the error caused by the reaction time is not easy to be eliminated
In addition, manual testing will increase labor costs

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
  • Method, device, terminal and medium for obtaining page loading time
  • Method, device, terminal and medium for obtaining page loading time
  • Method, device, terminal and medium for obtaining page loading time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 It is a flow chart of a method for obtaining page loading time provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of testing the page loading time. The method can be executed by a device for obtaining page loading time, and the device can be composed of software and / or hardware. see figure 1 , the method for obtaining the page load time provided by the embodiment of the present invention includes:

[0048] S110. Obtain the page name of the page to be tested.

[0049] Wherein, the page to be tested may be a web page or an application program page, typically an application program page in a mobile terminal. The page name is a preset page identifier, which can be set as required.

[0050] S120. Obtain the pre-stored coordinates of the trigger control of the page to be tested according to the page name.

[0051] Wherein, the coordinates may be one or more coordinates in the area corresponding to the trigger contr...

Embodiment 2

[0078] figure 2 It is a flow chart of a method for obtaining page loading time provided by Embodiment 2 of the present invention. This embodiment is an optional solution proposed on the basis of the foregoing embodiments. see figure 2 A method for obtaining page loading time provided in this embodiment includes:

[0079] S210. Obtain the page when the loading of the page to be tested is completed, and use it as a pre-stored loading completion page of the page to be tested.

[0080] S220. Obtain the page name of the page to be tested and the coordinates of the trigger control of the page to be tested.

[0081] S230. Associate and store the storage path of the pre-stored loaded page, the page name of the page to be tested, and the coordinates of the trigger control of the page to be tested into the configuration file.

[0082] S240. Obtain the page name of the page to be tested determined by the tester, and obtain the pre-stored coordinates of the trigger control of the pa...

Embodiment 3

[0093] image 3 It is a schematic structural diagram of a device for obtaining page loading time provided by Embodiment 3 of the present invention. see image 3 , an apparatus for obtaining page loading time provided by an embodiment of the present invention includes: a name obtaining module 10 , a coordinate obtaining module 20 , a first recording module 30 , a second recording module 40 and a loading time determination module 50 .

[0094] Wherein, the name obtaining module 10 is used to obtain the page name of the page to be tested;

[0095] A coordinate acquisition module 20, configured to acquire the pre-stored coordinates of the trigger control of the page to be tested according to the page name;

[0096] The first recording module 30 is configured to trigger and execute the loading event of the page to be tested associated with the trigger control according to the coordinates, and simultaneously record the current system time as the page loading start time;

[0097] ...

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 method, device, equipment and medium for obtaining page loading time, belonging to the field of automatic testing. The method includes: obtaining the page name of the page to be tested; obtaining the pre-stored coordinates of the trigger control of the page to be tested according to the page name; simulating clicking the trigger control according to the coordinates to trigger execution and the trigger control The associated loading event of the page to be tested, while recording the current system time as the page loading start time; in the process of executing the loading event, according to the loading page of the page to be tested and the pre-stored loading of the page to be tested Complete the page, determine the end time of page loading; determine the loading time of the page to be tested according to the page loading start time and the page loading end time. Embodiments of the present invention provide a method, device, device and medium for obtaining page loading time, so as to realize automatic testing of page loading time.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of automated testing, and in particular to a method, device, terminal and medium for obtaining page loading time. Background technique [0002] With the continuous development of computer and mobile terminal technologies, more and more electronic terminal-based applications are greatly enriching people's lives. At the same time, users have higher and higher requirements for application experience. Among them, the page loading time is an important indicator in user experience. [0003] To improve the page load time of an app, developers first need to test the page load time of the app. The existing testing method of page loading time is mainly: testing by manual. Specifically, the tester performs manual operations on the application, such as manually clicking to start the application, clicking a certain page in the application, and the like. At the same time, testers use timing to...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/34
Inventor 郭晓雪李志耿敏张凯磊
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products