Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page script monitoring method and device

A page script and page technology, applied in the field of communication, can solve the problem of inaccurate measurement of page script stability, achieve the effect of high accuracy and reduce the probability of false alarms

Pending Publication Date: 2019-08-13
ALIBABA GRP HLDG LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above problems, the embodiment of the present application provides a page script monitoring method to determine the page stability parameters according to the page status message including the script execution status information by monitoring the script execution status during the page execution process, so as to solve the problems in the prior art. Inaccurate measurement of page script stability

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
  • Page script monitoring method and device
  • Page script monitoring method and device
  • Page script monitoring method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] This embodiment of the application is described from the server side. The server such as figure 1 logs in the monitoring server or figure 2 application server in .

[0053] refer to Figure 4 , which shows a flow chart of an embodiment of a page script monitoring method according to an embodiment of the present application, which may specifically include the following steps:

[0054] Step 401, receiving a page status message sent by a client during page execution; the page status message includes script execution status information.

[0055] In the embodiment of the present application, the page information obtained from the application server is used in the execution process of the client, and the window.onerror function is used to capture the script error in the execution process of the page. Towards figure 1 logs in the monitoring server or figure 2 The application server in the page sends the page status message during the page execution process, and the pag...

Embodiment 2

[0065] This embodiment of the application is described from the server side.

[0066] refer to Figure 5 , which shows a specific flowchart of an embodiment of a method for monitoring page scripts according to an embodiment of the present application, which may specifically include the following steps:

[0067] Step 501 , receiving a page status message for the page loading process sent by the client when the page loading is completed.

[0068] In the embodiment of this application, the client sends a page request to the corresponding application server, and the application server returns the corresponding page information according to the received page request. After receiving the page information, the client loads the page information in the web page, and the page During loading, the window.onerror function can be used to capture script errors during page loading.

[0069] refer to Image 6 , shows a schematic diagram of sending a page status message according to an embod...

Embodiment 3

[0108] This embodiment of the application is described from the client side.

[0109] refer to Figure 7 , which shows a flow chart of another embodiment of a page script monitoring method according to the embodiment of the present application, which may specifically include the following steps:

[0110] Step 701, determine the script execution status during the page execution process.

[0111] In the embodiment of this application, when a user needs to access a certain page on the client, the client will send a page request to the corresponding application server, and the application server will return the corresponding page information according to the received page request, and the client will After receiving the information, load and run the page in the webpage of the client; use the window.onerror function in the client to capture script errors during page execution. During page execution, as long as a script error is captured, it can be determined that it occurred Scri...

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 provides a page script monitoring method and device, and relates to the technical field of communication. The method comprises: receiving the page state message in the page execution process sent by the client, the page state message comprising the script execution state information, and determining the page stability parameter according to the page state message belonging to the same page; in a page execution process, the received page state message comprising script execution state information; when a script error occurs, recording script error state information; when no scripterror occurs, recording the normal state information of one script, so that the reported page state information is equivalent to the user reporting the script execution state information, the page script stability parameter is determined according to the script execution state information, the accuracy is higher and more objective, and the probability of false alarm can be reduced.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a method and device for monitoring page scripts. Background technique [0002] With the rapid development of Internet technology, the use of the Internet is becoming more and more frequent. When using the Internet, it is necessary to visit the page to complete various activities and obtain the required content. JS (JavaScript, script) programs are usually embedded in the page. Various dynamic functions can be realized by executing the JS program, and the stability of the page script will directly affect the browsing effect of the user. Therefore, it is necessary to monitor the stability of the page script execution process. [0003] Currently, there are two ways to monitor the stability of the page script execution process. The first is to use the window.onerror and try catch functions to capture script errors in the web page, and send the absolute value of t...

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/30
CPCG06F11/3006
Inventor 荣先乾
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products