Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

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

A technology of page loading and loading time, which is applied in the direction of hardware monitoring, etc., can solve the problems such as the error is not easy to be eliminated, the page loading time is short, and the labor cost is increased, so as to achieve automatic testing, solve the effect of error and high labor cost

Active Publication Date: 2018-01-09
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF6 Cites 22 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 and device for obtaining page loading time, terminal and medium
  • Method and device for obtaining page loading time, terminal and medium
  • Method and device for obtaining page loading time, terminal and medium

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 and device for obtaining page loading time, a terminal and a medium, and belongs to the field of automated testing. The method includes the following steps that the page name of a to-be-tested page is obtained; according to the page name, the coordinate of a trigger control of the preset to-be-tested page is obtained; according to the coordinate, the trigger control is clicked in a simulation mode so as to trigger and execute loading events of the to-be-tested page associated with the trigger control, and at the same time, the current system time is recorded and serves as the start time of page loading; in the process of executing the loading events, according to the loading page of the to-be-tested page and the pre-stored loaded page of the to-be-tested page, the end time of page loading is determined; according to the start time of page loading and the end time of page loading, the loading time of the to-be-tested page is determined. The embodiment ofthe invention provides the method and device for obtaining page loading time, a terminal and a medium, and automatic testing of the loading time of the page is achieved.

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 Applications(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
Eureka Blog
Learn More
PatSnap group products