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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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] ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com