WO2019029627A1 - 网页异常监控方法、设备及系统、计算设备及存储介质 - Google Patents
网页异常监控方法、设备及系统、计算设备及存储介质 Download PDFInfo
- Publication number
- WO2019029627A1 WO2019029627A1 PCT/CN2018/099642 CN2018099642W WO2019029627A1 WO 2019029627 A1 WO2019029627 A1 WO 2019029627A1 CN 2018099642 W CN2018099642 W CN 2018099642W WO 2019029627 A1 WO2019029627 A1 WO 2019029627A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- webpage
- information
- abnormality
- page
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Definitions
- the embodiments of the present invention relate to the field of computer technologies, and in particular, to a webpage abnormality monitoring method, device and system, computing device, and storage medium.
- a browser is a software that displays HyperText Mark-up Language (HTML) files in a web server or file system and allows users to interact with such files.
- HTML HyperText Mark-up Language
- a browser is a client program that users often use.
- the method of maintaining the webpage by the webpage maintainer includes: the user feeds back the problem to the webpage maintainer, but the user and the webpage maintainer cannot directly contact, resulting in no problem feedback.
- the web page maintainer needs to describe the problem according to the user's description of the problem, but because the user has limited knowledge of the webpage, the webpage maintainer cannot accurately locate according to the user's description. problem. As a result, the real-time and accuracy of web page maintenance is low.
- the embodiment of the invention provides a webpage abnormality monitoring method, device and system, so as to improve real-time and accuracy of webpage maintenance.
- An aspect of the embodiments of the present invention provides a webpage abnormality monitoring method, including:
- the client obtains the location information of the abnormality when the webpage is abnormal
- the client sends the abnormality information to the server, where the abnormality information includes the location information of the abnormality, so that the server sends the prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel can
- the prompt information is logged into the server, and the abnormality of the webpage is located and processed according to the location information of the abnormality.
- Another aspect of the embodiments of the present invention provides a webpage abnormality monitoring method, including:
- the server receives the abnormality information sent by the client, where the abnormality information includes location information of the abnormality, and the location information of the abnormality is information generated by the webpage code when the webpage is abnormal;
- Another aspect of the embodiments of the present invention provides a client, including:
- a first obtaining module configured to acquire location information that occurs when an abnormality occurs on a webpage
- a sending module configured to send abnormal information to the server, where the abnormality information includes location information of the abnormality, so that the server sends the prompting information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel
- the prompt information is logged into the server, and the abnormality of the webpage is located and processed according to the location information of the abnormality.
- a server including:
- a receiving module configured to receive abnormal information sent by the client, where the abnormal information includes location information of the abnormality, where the location information of the abnormality is information generated by the webpage code when the webpage is abnormal;
- a sending module configured to send prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel logs in to the server according to the prompt information, and compare the webpage according to the location information of the abnormality The occurrence of anomalies is located and processed.
- Another aspect of the embodiments of the present invention provides a webpage abnormality monitoring system, including the client, the server, and the terminal device of the maintenance personnel.
- Another aspect of an embodiment of the present invention is to provide a computing device, including: a processor; and a memory having stored thereon executable code that, when executed by the processor, causes the processor Perform the method of any of the above.
- Another aspect of the present invention is to provide a non-transitory machine readable storage medium having stored thereon executable code that, when executed by a processor of an electronic device, causes the processor to perform the above One of the methods described.
- the webpage abnormality monitoring method, device and system provided by the embodiment of the present invention obtain the location information of the abnormality of the webpage when the webpage is abnormal, and send the abnormality information including the location information to the server, and the server sends the abnormality information to the maintenance personnel according to the abnormality information.
- the terminal device sends the prompt information, so that the maintenance personnel can immediately know that the webpage is abnormal.
- the problem can be accurately located according to the location information of the abnormality, thereby improving the real-time and accuracy of the webpage maintenance.
- FIG. 1 is a flowchart of a webpage abnormality monitoring method according to an embodiment of the present invention
- FIG. 2 is a structural diagram of a webpage abnormality monitoring system according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of a user interface according to an embodiment of the present invention.
- FIG. 4 is a flowchart of a webpage abnormality monitoring method according to another embodiment of the present invention.
- FIG. 5 is a flowchart of a webpage abnormality monitoring method according to another embodiment of the present invention.
- FIG. 6 is a schematic diagram of a remote login interface according to another embodiment of the present invention.
- FIG. 7 is a schematic diagram of a screenshot of a webpage according to another embodiment of the present invention.
- FIG. 8 is a flowchart of a webpage abnormality monitoring method according to another embodiment of the present invention.
- FIG. 9 is a structural diagram of a client according to an embodiment of the present invention.
- FIG. 10 is a structural diagram of a client according to another embodiment of the present invention.
- FIG. 11 is a structural diagram of a server according to an embodiment of the present invention.
- FIG. 12 is a structural diagram of a computing device according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a webpage abnormality monitoring method according to an embodiment of the present invention.
- the embodiment of the present invention provides a method for monitoring abnormality of a webpage according to the low-time and low-accuracy of webpage maintenance in the prior art.
- the specific steps of the method are as follows:
- Step S101 The client acquires location information that abnormally occurs when the webpage is abnormal.
- the client may be a browser.
- the designer creates a webpage by coding, and the browser displays the webpage content by running the webpage code.
- the webpage code includes at least one of the following types. : HyperText Markup Language (HTML), Java Script (JavaScript), Active Server Pages (ASP), Hypertext Preprocessor (PHP), Computer Graphics Interface Standard ( Computer Graphics Interface (CGI), etc.
- HTML HyperText Markup Language
- JavaScript Java Script
- ASP Active Server Pages
- PHP Hypertext Preprocessor
- CGI Computer Graphics Interface Standard
- this embodiment takes JavaScript as an example.
- the browser When the webpage is abnormal, the browser will not be able to load the complete webpage. At this time, JavaScript will generate an error event (error event).
- error event the capture method of the error event can be added to the JavaScript.
- the e object is an exception object.
- the e object can be captured by adding the function window.addEventListener('error', function(e) ⁇ ) in JavaScript.
- the browser can capture the abnormal object generated by the JavaScript when the web page is abnormal.
- the object attribute of the abnormal object includes error information
- the error information includes location information of the abnormality.
- the location information includes : Stack information, which is used to identify a function that has an exception in the web page code.
- JavaScript For example, based on the language feature of JavaScript, JavaScript generates an error event and generates stack information.
- the stack information is used to identify which line of a function in the webpage code, such as function A, is running incorrectly, and function B calls function A, so that function B runs.
- the e.stack object is the stack information for the exception.
- the e.stack object can be captured by adding the function window.addEventListener(‘error', function(e.stack) ⁇ ) in JavaScript.
- Step S102 The client sends abnormal information to the server, where the abnormality information includes location information of the abnormality, so that the server sends prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance is performed.
- the person logs in to the server according to the prompt information, and locates and processes the abnormality of the webpage according to the location information of the abnormality.
- the client may be a browser installed in the user equipment 21.
- the browser captures The location information of the exception occurred.
- the browser transmits abnormal information to the server 22 through the user device 21, and the abnormality information includes location information such as stack information in which the abnormality occurs.
- the server 22 may be a web server of the webpage, and the server 22 may store the webpage code of the webpage.
- the server 22 sends a prompt message to the terminal device of the maintenance personnel.
- the maintenance personnel are the designer or maintainer of the webpage code
- the terminal device of the maintenance personnel may be a mobile terminal, a notebook computer, or a personal computer.
- a mobile terminal such as a smart phone 23
- the server 22 can send the prompt information to the smart phone 23 of the maintenance personnel by using a short message, and the smart phone 23 receives the The user interface after the prompt message is shown in Figure 3.
- the remote login server 22 specifically, the maintenance personnel remotely log in to the server 22 through the personal computer 24.
- the maintenance personnel can also remotely log in to the server 22 through the smart phone 23.
- the server 22 receives the location information, such as the stack information, that the abnormality occurs in the abnormality information sent by the user equipment 21, after the maintenance personnel remotely logs in to the server 22, the problem in the webpage code can be located according to the stack information, and the webpage code is The problem in the fix is fixed.
- the location information of the abnormality occurs when the webpage is abnormal, and the abnormality information including the location information is sent to the server, and the server sends the prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel immediately The known webpage is abnormal.
- the problem can be accurately located according to the location information of the abnormality, thereby improving the real-time and accuracy of the webpage maintenance.
- FIG. 4 is a flowchart of a webpage abnormality monitoring method according to another embodiment of the present invention. Based on the foregoing embodiment, the webpage abnormality monitoring method provided in this embodiment includes the following steps:
- Step S401 The client acquires location information that abnormally occurs when the webpage is abnormal.
- Step S401 is consistent with the principle and implementation manner of step S101, and details are not described herein again.
- Step S402 The client acquires page image information of the webpage.
- the page image information of the webpage in which the abnormality occurs is further obtained.
- the client obtains the page image information of the webpage, including: The client performs a screenshot operation on the webpage to obtain a screenshot of the page, and the screenshot of the page is page image information of the webpage.
- the browser installed in the user device 21 generates a current page screenshot based on the open source framework html2canvas.
- the screenshot of the page can completely record the page displayed by the browser to the user when the web page is abnormal.
- the screenshot of the page can reflect the actual application scenario of the user, for example, the screenshot of the page includes information input by the user.
- Step S403 The client sends abnormal information to the server, where the abnormality information includes location information of the abnormality and page image information of the webpage, and the location information of the maintenance personnel according to the abnormality and the webpage.
- the page image information locates and processes the abnormality that occurs in the webpage.
- the abnormality information sent by the browser in the user equipment 21 to the server 22 through the user equipment 21 includes location information of the abnormality, such as stack information and page image information of the webpage.
- the stack information and the page image information of the web page are stored, for example, in a database of the server 22, and the server 22 transmits the prompt information to the terminal device of the maintenance person based on the abnormality information.
- the problem in the webpage code is located according to the stack information stored by the server 22 and the page image information of the webpage, and the problem in the webpage code is fixed.
- the page image information of the webpage is obtained by the client, and the stack information and the page image information of the webpage are simultaneously sent to the server.
- the page image information of the webpage may reflect the actual application scenario of the user. Therefore, the maintenance personnel can locate and process the abnormality of the webpage by combining the location information of the abnormality and the page image information of the webpage, thereby further improving the accuracy of the webpage maintenance.
- FIG. 5 is a flowchart of a webpage abnormality monitoring method according to another embodiment of the present invention. Based on the foregoing embodiment, the webpage abnormality monitoring method provided in this embodiment includes the following steps:
- Step S501 The client acquires location information that occurs abnormally when the webpage is abnormal.
- Step S501 is consistent with the principle and implementation manner of step S101, and details are not described herein again.
- Step S502 The client acquires page image information of the webpage.
- step S502 The principle and implementation of the step S502 are the same as those of the step S402, and are not described here.
- Step S503 The client converts page image information of the webpage into page text information of the webpage.
- the browser in the user equipment 21 transmits the page image information of the web page in which the abnormality occurs to the server 22 through the user equipment 21, and if the data amount of the page image information is large, the browser takes a large amount.
- the page image information of the webpage may be further converted into the page text information of the webpage.
- the client converts the page image information of the webpage into the page text information of the webpage
- the method includes: converting, by the client, the page image information of the webpage into the page of the webpage by using a base64 encoding manner. Text information.
- Step S504 the client sends abnormal information to the server, where the abnormality information includes location information of the abnormality and page text information of the webpage, so that the server converts the page text information of the webpage into the webpage.
- the page image information is used by the maintenance personnel to locate and process the abnormality of the webpage according to the location information of the abnormality and the page image information of the webpage.
- the abnormality information sent by the browser in the user equipment 21 to the server 22 through the user equipment 21 includes location information of the abnormality, such as stack information and page text information of the webpage.
- the server 22 receives the abnormality information
- the stack information and the page text information of the web page are stored, for example, in a database of the server 22, and the server 22 transmits the prompt information to the terminal device of the maintenance personnel based on the abnormality information.
- the remote login interface can be as shown in FIG. 6.
- the remote login interface displays the time when the abnormality occurs, the Uniform Resource Locator (URL) of the web page where the abnormality occurs, and the abnormality occurs.
- URL Uniform Resource Locator
- the page image information of the webpage where the abnormality occurs is converted into the page text information by the client, and the stack information and the page text information of the webpage are simultaneously sent to the server, because the data amount of the page text information is relative to the data of the page image information.
- the amount is small, thus saving communication bandwidth between the client and the server.
- FIG. 8 is a flowchart of a webpage abnormality monitoring method according to another embodiment of the present invention. As shown in FIG. 8, the webpage abnormality monitoring method provided in this embodiment includes the following steps:
- Step S801 The server receives the abnormality information sent by the client, where the abnormality information includes location information of the abnormality, and the location information of the abnormality is information generated by the webpage code when the webpage is abnormal.
- the location information includes: stack information, where the stack information is used to identify a function in the webpage where an exception occurs.
- Step S802 The server sends prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel logs in to the server according to the prompt information, and according to the location information of the abnormality, The abnormality of the web page is located and processed.
- the abnormality information further includes: page image information of the webpage, for the maintenance personnel to display an abnormality of the webpage according to the location information of the abnormality and the page image information of the webpage. Position and process.
- the page image information of the webpage is a screenshot of the page obtained by the client performing a screenshot operation on the webpage.
- the exception information further includes: page text information of the webpage.
- the server converts the page text information of the webpage into page image information of the webpage, so that the maintenance personnel can view the webpage according to the location information of the abnormality and the page image information of the webpage. The occurrence of anomalies is located and processed.
- the executor of the present embodiment is a server, and the specific principles and implementation manners thereof are consistent with the foregoing embodiments, and details are not described herein again.
- the location information of the abnormality occurs when the webpage is abnormal, and the abnormality information including the location information is sent to the server, and the server sends the prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel immediately The known webpage is abnormal.
- the problem can be accurately located according to the location information of the abnormality, thereby improving the real-time and accuracy of the webpage maintenance.
- FIG. 9 is a structural diagram of a client according to an embodiment of the present invention.
- the client provided by the embodiment of the present invention may perform the process flow provided by the embodiment of the webpage abnormality monitoring method.
- the client may be the browser in the above embodiment.
- the client 90 includes: a first acquiring module.
- the sending module 92 is configured to: obtain the location information that is abnormally generated when the webpage is abnormal; the sending module 92 is configured to send the abnormality information to the server, where the abnormality information includes the location information of the abnormality, so that Sending, by the server, the prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel logs in to the server according to the prompt information, and appears on the webpage according to the location information of the abnormality.
- Abnormal positioning and processing is configured to: obtain the location information that is abnormally generated when the webpage is abnormal; the sending module 92 is configured to send the abnormality information to the server, where the abnormality information includes the location information of the abnormality, so that Sending
- the location information includes: stack information, where the stack information is used to identify a function in the webpage code where an exception occurs.
- the client provided by the embodiment of the present invention may be specifically used to perform the method embodiment provided in FIG. 1 above, and specific functions are not described herein again.
- the location information of the abnormality occurs when the webpage is abnormal, and the abnormality information including the location information is sent to the server, and the server sends the prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel immediately The known webpage is abnormal.
- the problem can be accurately located according to the location information of the abnormality, thereby improving the real-time and accuracy of the webpage maintenance.
- FIG. 10 is a structural diagram of a client according to another embodiment of the present invention.
- the client 90 further includes: a second obtaining module 93, configured to acquire page image information of the webpage.
- the second obtaining module 93 is specifically configured to: perform a screenshot operation on the webpage to obtain a screenshot of the page, where the screenshot is the page image information of the webpage.
- the abnormality information further includes: page image information of the webpage, where the maintenance personnel locates an abnormality of the webpage according to the location information of the abnormality and the page image information of the webpage. And processing.
- the client 90 further includes a conversion module 94 for converting page image information of the web page into page text information of the web page.
- the conversion module 94 is specifically configured to: convert page image information of the webpage into page text information of the webpage by using a base64 encoding manner.
- the abnormality information further includes: page text information of the webpage, so that the server converts page text information of the webpage into page image information of the webpage, for the maintenance personnel to The location information of the abnormality and the page image information of the webpage locate and process the abnormality of the webpage.
- the client provided by the embodiment of the present invention may be specifically used to perform the method embodiment provided in FIG. 4 or FIG. 5 above, and specific functions are not described herein again.
- the page image information of the webpage is obtained by the client, and the stack information and the page image information of the webpage are simultaneously sent to the server.
- the page image information of the webpage may reflect the actual application scenario of the user. Therefore, the maintenance personnel can locate and process the abnormality of the webpage by combining the location information of the abnormality and the page image information of the webpage, thereby further improving the accuracy of the webpage maintenance; and the webpage where the abnormality occurs through the client.
- the page image information is converted into page text information, and the stack information and the page text information of the web page are simultaneously sent to the server. Since the data amount of the page text information is small relative to the page image information, the client and the server are saved. Communication bandwidth between.
- FIG. 11 is a structural diagram of a server according to an embodiment of the present invention.
- the server provided by the embodiment of the present invention can perform the processing flow provided by the embodiment of the webpage abnormality monitoring method.
- the server 110 includes: a receiving module 111 and a sending module 112, where the receiving module 111 is configured to receive the sending by the client.
- the abnormality information includes location information of the occurrence of the abnormality, and the location information of the abnormality is information generated by the webpage code when the webpage is abnormal; the sending module 112 is configured to send, to the terminal device of the maintenance personnel, according to the abnormality information. And prompting the maintenance personnel to log in to the server according to the prompt information, and locate and process an abnormality that occurs in the webpage according to the location information of the abnormality.
- the location information includes: stack information, where the stack information is used to identify a function in the webpage code where an exception occurs.
- the abnormality information further includes: page image information of the webpage, for the maintenance personnel to display an abnormality of the webpage according to the location information of the abnormality and the page image information of the webpage. Position and process.
- the page image information of the webpage is a screenshot of the page obtained by the client performing a screenshot operation on the webpage.
- the exception information further includes: page text information of the webpage.
- the server 110 further includes: a conversion module 113, configured to convert page text information of the webpage into page image information of the webpage, for the maintenance personnel to generate location information according to the abnormality and the webpage The page image information locates and processes the abnormality that occurs in the webpage.
- the server provided by the embodiment of the present invention may be specifically used to perform the method embodiment provided in FIG. 8 above, and specific functions are not described herein again.
- the location information of the abnormality occurs when the webpage is abnormal, and the abnormality information including the location information is sent to the server, and the server sends the prompt information to the terminal device of the maintenance personnel according to the abnormality information, so that the maintenance personnel immediately The known webpage is abnormal.
- the problem can be accurately located according to the location information of the abnormality, thereby improving the real-time and accuracy of the webpage maintenance.
- the embodiment of the invention further provides a webpage abnormality monitoring system.
- the webpage abnormality monitoring system includes: a client in the user equipment 21, such as a browser, a server 22, and a terminal device of a maintenance personnel.
- the terminal device of the maintenance personnel includes at least one of a smart phone 23 and a personal computer 24. .
- the embodiment of the present invention obtains the location information of the abnormality when the webpage is abnormal, and sends the abnormality information including the location information to the server, and the server sends the prompt information to the terminal device of the maintenance personnel according to the abnormality information.
- the maintenance personnel can immediately know that the webpage is abnormal.
- the problem can be accurately located according to the location information of the abnormality, thereby improving the real-time and accuracy of the webpage maintenance; obtaining the webpage through the client.
- the page image information is sent to the server at the same time as the stack information and the page image information of the webpage.
- the page image information of the webpage may reflect the actual application scenario of the user, and therefore, the maintenance personnel combines the location where the abnormality occurs.
- the information and the page image information of the webpage locate and process the abnormality of the webpage, thereby further improving the accuracy of the webpage maintenance; and converting the page image information of the webpage where the abnormality occurs to the page text information by using the client, and Stack information and network Page text message sent to the server at the same time, because the data page text information with respect to a small amount of data page image information, thus saving a communication bandwidth between the client and the server.
- FIG. 12 is a schematic structural diagram of a computing device that can be used to implement data processing of the webpage abnormality monitoring method according to an embodiment of the present invention.
- computing device 1000 includes a memory 1010 and a processor 1020.
- the processor 1020 can be a multi-core processor or can include multiple processors.
- processor 1020 can include a general purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like.
- the processor 1020 can be implemented using a customized circuit, such as an Application Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA).
- ASIC Application Specific Integrated Circuit
- FPGA Field Programmable Gate Array
- Memory 1010 can include various types of storage units, such as system memory, read only memory (ROM), and persistent storage.
- the ROM can store static data or instructions required by the processor 1020 or other modules of the computer.
- the persistent storage device can be a readable and writable storage device.
- the persistent storage device can be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off.
- the persistent storage device employs a mass storage device (eg, magnetic or optical disk, flash memory) as the permanent storage device.
- the persistent storage device can be a removable storage device (eg, a floppy disk, an optical drive).
- the system memory can be a readable and writable storage device or a volatile read/write storage device, such as dynamic random access memory.
- System memory can store instructions and data that some or all of the processors need at runtime.
- the memory 1010 may comprise any combination of computer readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic disks and/or optical disks may also be employed.
- the memory 1010 can include a removable storage device readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, a DVD-ROM, a dual layer DVD-ROM), Read-only Blu-ray discs, ultra-density discs, flash cards (such as SD cards, min SD cards, Micro-SD cards, etc.), magnetic floppy disks, and so on.
- a removable storage device readable and/or writable such as a compact disc (CD), a read-only digital versatile disc (eg, a DVD-ROM, a dual layer DVD-ROM), Read-only Blu-ray discs, ultra-density discs, flash cards (such as SD cards, min SD cards, Micro-SD cards, etc.), magnetic floppy disks, and so on.
- the computer readable storage medium does not include a carrier wave and an instantaneous electronic signal transmitted by wireless or wire.
- a processable code is stored on the memory 1010, and when the processable code is processed by the processor 1020, the processor 1020 can be caused to perform the web page anomaly monitoring method described above.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- the method according to the invention may also be embodied as a computer program or computer program product comprising computer program code instructions for performing the various steps defined above in the above method of the invention.
- the present invention may be embodied as a non-transitory machine readable storage medium (or computer readable storage medium, or machine readable storage medium) having stored thereon executable code (or computer program, or computer instruction code)
- executable code or computer program, or computer instruction code
- a processor of an electronic device or computing device, server, etc.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
- the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Information Transfer Between Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种网页异常监控方法、设备及系统、计算设备及存储介质。该方法包括:客户端获取网页出现异常时异常发生的位置信息(S101);所述客户端向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理(S102)。由此,通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使得维护人员即时的获知网页出现异常。维护人员根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性。
Description
本发明实施例涉及计算机技术领域,尤其涉及一种网页异常监控方法、设备及系统、计算设备及存储介质。
浏览器是显示网页伺服器或档案系统内的超文本标记语言(HyperText Mark-up Language,简称HTML)文件、并让用户与此些文件互动的一种软件。浏览器是用户经常使用的客户端程序。
用户通过浏览器浏览网页以获取网络信息,但是如果网页中的脚本发生异常,将导致浏览器无法加载完整的网页。此时,需要网页维护者对网页进行维护,现有技术中网页维护者对网页进行维护的方法包括:用户将问题反馈给网页维护者,但是用户和网页维护者无法直接联系,导致问题反馈不即时,另外,即使用户和网页维护者取得联系,网页维护者需要根据用户对问题的描述才能定位问题所在,但是,由于用户对网页的了解有限,导致网页维护者无法根据用户的描述而准确定位问题。从而导致网页维护的实时性和准确性较低。
发明内容
本发明实施例提供一种网页异常监控方法、设备及系统,以提高网页维护的实时性和准确性。
本发明实施例的一个方面是提供一种网页异常监控方法,包括:
客户端获取网页出现异常时异常发生的位置信息;
所述客户端向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
本发明实施例的另一个方面是提供一种网页异常监控方法,包括:
服务器接收客户端发送的异常信息,所述异常信息包括异常发生的位置信息,所述异常发生的位置信息是网页出现异常时网页代码生成的信息;
所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
本发明实施例的另一个方面是提供一种客户端,包括:
第一获取模块,用于获取网页出现异常时异常发生的位置信息;
发送模块,用于向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
本发明实施例的另一个方面是提供一种服务器,包括:
接收模块,用于接收客户端发送的异常信息,所述异常信息包括异常发生的位置信息,所述异常发生的位置信息是网页出现异常时网页代码生成的信息;
发送模块,用于根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
本发明实施例的另一个方面是提供一种网页异常监控系统,包括所述的客户端、所述的服务器,以及所述的维护人员的终端设备。
本发明实施例的另一个方面是提供一种计算设备,包括:处理器;以及存储器,其上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器执行如上任何一项所述的方法。
本发明的另一个方面是提供一种非暂时性机器可读存储介质,其上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器执行如上任一项所述的方法。
本发明实施例提供的网页异常监控方法、设备及系统,通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使 得维护人员即时的获知网页出现异常,另外,维护人员登录服务器后,根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性。
图1为本发明实施例提供的网页异常监控方法流程图;
图2为本发明实施例提供的网页异常监控系统的结构图;
图3为本发明实施例提供的用户界面的示意图;
图4为本发明另一实施例提供的网页异常监控方法流程图;
图5为本发明另一实施例提供的网页异常监控方法流程图;
图6为本发明另一实施例提供的远程登录界面的示意图;
图7为本发明另一实施例提供的网页的界面截图的示意图;
图8为本发明另一实施例提供的网页异常监控方法流程图;
图9为本发明实施例提供的客户端的结构图;
图10为本发明另一实施例提供的客户端的结构图;
图11为本发明实施例提供的服务器的结构图。
图12为本发明实施例提供的计算设备的结构图。
图1为本发明实施例提供的网页异常监控方法流程图。本发明实施例针对现有技术中网页维护的实时性和准确性较低,提供了网页异常监控方法,该方法具体步骤如下:
步骤S101、客户端获取网页出现异常时异常发生的位置信息。
本实施例中,客户端具体可以是浏览器,在网页的制作过程中,设计人员通过编码制作出网页,浏览器通过运行网页代码以显示网页内容,可选的,网页代码包括如下至少一种:超级文本标记语言(HyperText Markup Language,简称HTML)、Java脚本(JavaScript)、动态服务器页面(Active Server Pages,简称ASP)、超文本预处理器(Hypertext Preprocessor,简称PHP)、计算机图形接口标准(Computer Graphics Interface,简称CGI)等,本实施例以JavaScript为例。
当网页出现异常时,浏览器将无法加载完整的网页,此时JavaScript将产生错误事件(error事件),本实施例可以在该JavaScript中添加对error事件的捕获方法,例如,e对象是异常对象,通过在JavaScript中添加函数window.addEventListener(‘error',function(e){})可以对e对象进行捕获。浏览器通过该函数可以捕获到网页出现异常时JavaScript产生的异常对象,该异常对象的对象属性中包括错误信息,该错误信息包括异常发生的位置信息,在本实施例中,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。例如,基于JavaScript的语言特性,JavaScript产生error事件的同时产生堆栈信息,该堆栈信息用于标识网页代码中某一函数例如函数A的哪一行运行出错,函数B调用了函数A,以致函数B运行出错,函数C调用了函数B,以致函数C运行出错等等。例如,e.stack对象是异常发生的堆栈信息,通过在JavaScript中添加函数window.addEventListener(‘error',function(e.stack){})可以对e.stack对象进行捕获。
步骤S102、所述客户端向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
如图2所示,在本实施例中,客户端具体可以是用户设备21中安装的浏览器,当用户通过用户设备21中安装的浏览器浏览网页时,若网页出现异常,则浏览器捕获该异常发生的位置信息。进一步的,浏览器通过用户设备21向服务器22发送异常信息,所述异常信息包括异常发生的位置信息例如堆栈信息。可选的,服务器22可以是该网页的网站服务器,服务器22可存储有该网页的网页代码。服务器22接收到异常信息后,向维护人员的终端设备发送提示信息,可选的,维护人员是该网页代码的设计者或维护者,维护人员的终端设备可以是移动终端、笔记本电脑、个人计算机(personal computer,简称PC)、平板电脑等,本实施例以移动终端例如智能手机23为例,服务器22可以将该提示信息以短信的方式发送给维护人员的智能手机23,智能手机23接收到提示信息后的用户界面如图3所示。
维护人员查看到智能手机23接收的提示信息后,远程登录服务器22, 具体的,维护人员通过个人计算机24远程登录服务器22,在其他实施例中,维护人员还可以通过智能手机23远程登录服务器22。由于服务器22接收到用户设备21发送的异常信息中包括异常发生的位置信息例如堆栈信息,因此,当维护人员远程登录服务器22后,可根据该堆栈信息定位网页代码中的问题,并对网页代码中的问题进行修复。
本发明实施例通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使得维护人员即时的获知网页出现异常,另外,维护人员登录服务器后,根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性。
图4为本发明另一实施例提供的网页异常监控方法流程图。在上述实施例的基础上,本实施例提供的网页异常监控方法包括如下步骤:
步骤S401、客户端获取网页出现异常时异常发生的位置信息。
步骤S401与步骤S101的原理和实现方式一致,此处不再赘述。
步骤S402、所述客户端获取所述网页的页面图像信息。
用户设备21中安装的浏览器捕获到异常发生的位置信息例如堆栈信息之后,进一步的获取出现异常的网页的页面图像信息,具体的,所述客户端获取所述网页的页面图像信息,包括:所述客户端对所述网页进行截图操作获得页面截图,该页面截图为所述网页的页面图像信息。例如,该网页出现异常时,用户设备21中安装的浏览器基于开源框架html2canvas生成当前页面截图。该页面截图可以完整的记录网页出现异常时,浏览器展示给用户的页面,可选的,该页面截图可以反映出用户的实际应用场景,例如该页面截图包括用户输入的信息。
步骤S403、所述客户端向服务器发送异常信息,所述异常信息包括异常发生的位置信息和所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
如图2所示,用户设备21中的浏览器通过用户设备21向服务器22发送的异常信息包括异常发生的位置信息例如堆栈信息和该网页的页面图像信 息,服务器22接收到该异常信息后,将堆栈信息和该网页的页面图像信息进行存储,例如存储到服务器22的数据库中,服务器22根据该异常信息向维护人员的终端设备发送提示信息。当维护人员登录服务器22后,根据服务器22存储的堆栈信息和该网页的页面图像信息定位网页代码中的问题,并对网页代码中的问题进行修复。
本实施例通过客户端获取所述网页的页面图像信息,并将堆栈信息和网页的页面图像信息同时发送给服务器,由于网页出现异常时,网页的页面图像信息可以反映出用户的实际应用场景,因此,维护人员结合所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理,可进一步提高网页维护的准确性。
图5为本发明另一实施例提供的网页异常监控方法流程图。在上述实施例的基础上,本实施例提供的网页异常监控方法包括如下步骤:
步骤S501、客户端获取网页出现异常时异常发生的位置信息。
步骤S501与步骤S101的原理和实现方式一致,此处不再赘述。
步骤S502、所述客户端获取所述网页的页面图像信息。
步骤S502与步骤步骤S402的原理和实现方式一致,此处不再赘述。
步骤S503、所述客户端将所述网页的页面图像信息转换为所述网页的页面文本信息。
在图4所示的实施例中,用户设备21中的浏览器通过用户设备21向服务器22发送出现异常的网页的页面图像信息,如果该页面图像信息的数据量较大,则会占用较大的通信带宽,为了节省通信带宽,在本实施例中,当浏览器获取到出现异常的网页的页面图像信息之后,可进一步将该网页的页面图像信息转换为该网页的页面文本信息。
具体的,所述客户端将所述网页的页面图像信息转换为所述网页的页面文本信息,包括:所述客户端采用base64编码方式将所述网页的页面图像信息转换为所述网页的页面文本信息。
步骤S504、所述客户端向服务器发送异常信息,所述异常信息包括异常发生的位置信息和所述网页的页面文本信息,以使所述服务器将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述 异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
如图2所示,用户设备21中的浏览器通过用户设备21向服务器22发送的异常信息包括异常发生的位置信息例如堆栈信息和该网页的页面文本信息,服务器22接收到该异常信息后,将堆栈信息和该网页的页面文本信息进行存储,例如存储到服务器22的数据库中,服务器22根据该异常信息向维护人员的终端设备发送提示信息。当维护人员远程登录服务器22后,远程登录界面可如图6所示,该远程登录界面显示有异常发生的时间、发生异常的网页的统一资源定位符(Uniform Resource Locator,简称URL)、发生异常的模块、错误信息、堆栈信息等,其中,“Cannot read property‘children’of undefined”是错误信息的标题,“查看案发现场截图”是可点击的图标。维护人员通过图6所示的堆栈信息可知报错代码位于:VueComponent.permissionClusters(https://crm.uc.cn/static/sme/build/main.js?f252479ab48d1c198b80:3734:44),但是,维护人员可能并不知道此处为什么会报错,进一步的,维护人员可以点击“查看案发现场截图”,此时,服务器22将其存储的该网页的页面文本信息转换为该网页的页面图像信息例如界面截图,该界面截图具体如图7所示,维护人员通过查看异常发生时的界面截图可知:由于用户在填写URL时发生了错误,导致网页出现异常,从而定位了异常问题。
本实施例通过客户端将发生异常的网页的页面图像信息转换为页面文本信息,并将堆栈信息和网页的页面文本信息同时发送给服务器,由于页面文本信息的数据量相对于页面图像信息的数据量小,因此节省了客户端和服务器之间的通信带宽。
图8为本发明另一实施例提供的网页异常监控方法流程图。如图8所示,本实施例提供的网页异常监控方法包括如下步骤:
步骤S801、服务器接收客户端发送的异常信息,所述异常信息包括异常发生的位置信息,所述异常发生的位置信息是网页出现异常时网页代码生成的信息。
具体的,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代 码中出现异常的函数。
步骤S802、所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
在一些实施例中,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。具体的,所述网页的页面图像信息是所述客户端对所述网页进行截图操作获得的页面截图。
在另外一些实施例中,所述异常信息还包括:所述网页的页面文本信息。进一步的,所述服务器将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
本实施例的执行主体为服务器,其具体原理及实现方式与上述实施例一致,此处不再赘述。
本发明实施例通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使得维护人员即时的获知网页出现异常,另外,维护人员登录服务器后,根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性。
图9为本发明实施例提供的客户端的结构图。本发明实施例提供的客户端可以执行网页异常监控方法实施例提供的处理流程,该客户端具体可以是上述实施例中的浏览器,如图9所示,客户端90包括:第一获取模块91、发送模块92,其中,第一获取模块91用于获取网页出现异常时异常发生的位置信息;发送模块92用于向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
其中,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。
本发明实施例提供的客户端可以具体用于执行上述图1所提供的方法实施例,具体功能此处不再赘述。
本发明实施例通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使得维护人员即时的获知网页出现异常,另外,维护人员登录服务器后,根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性。
图10为本发明另一实施例提供的客户端的结构图。在上述实施例的基础上,客户端90还包括:第二获取模块93,用于获取所述网页的页面图像信息。第二获取模块93获取所述网页的页面图像信息时具体用于:对所述网页进行截图操作获得页面截图,该页面截图为所述网页的页面图像信息。可选的,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
在一些实施例中,客户端90还包括:转换模块94,用于将所述网页的页面图像信息转换为所述网页的页面文本信息。转换模块94具体用于:采用base64编码方式将所述网页的页面图像信息转换为所述网页的页面文本信息。可选的,所述异常信息还包括:所述网页的页面文本信息,以使所述服务器将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
本发明实施例提供的客户端可以具体用于执行上述图4或图5所提供的方法实施例,具体功能此处不再赘述。
本发明实施例通过客户端获取所述网页的页面图像信息,并将堆栈信息和网页的页面图像信息同时发送给服务器,由于网页出现异常时,网页的页面图像信息可以反映出用户的实际应用场景,因此,维护人员结合所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理,可进一步提高网页维护的准确性;通过客户端将发生异常的网页的页面图像信息转换为页面文本信息,并将堆栈信息和网页的页面文本信息同 时发送给服务器,由于页面文本信息的数据量相对于页面图像信息的数据量小,因此节省了客户端和服务器之间的通信带宽。
图11为本发明实施例提供的服务器的结构图。本发明实施例提供的服务器可以执行网页异常监控方法实施例提供的处理流程,如图11所示,服务器110包括:接收模块111和发送模块112,其中,接收模块111用于接收客户端发送的异常信息,所述异常信息包括异常发生的位置信息,所述异常发生的位置信息是网页出现异常时网页代码生成的信息;发送模块112用于根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
可选的,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。
在一些实施例中,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。所述网页的页面图像信息是所述客户端对所述网页进行截图操作获得的页面截图。
在其他一些实施例中,所述异常信息还包括:所述网页的页面文本信息。相应的,服务器110还包括:转换模块113,用于将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
本发明实施例提供的服务器可以具体用于执行上述图8所提供的方法实施例,具体功能此处不再赘述。
本发明实施例通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使得维护人员即时的获知网页出现异常,另外,维护人员登录服务器后,根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性。
本发明实施例还提供一种网页异常监控系统。如图2所示,网页异常监控系统包括:用户设备21中的客户端例如浏览器、服务器22、维护人员的终端设备,维护人员的终端设备包括:智能手机23和个人计算机24中的至少一个。
综上所述,本发明实施例通过客户端获取网页出现异常时异常发生的位置信息,并向服务器发送包括该位置信息的异常信息,服务器根据该异常信息,向维护人员的终端设备发送提示信息,使得维护人员即时的获知网页出现异常,另外,维护人员登录服务器后,根据异常发生的位置信息可准确定位问题,从而提高了网页维护的实时性和准确性;通过客户端获取所述网页的页面图像信息,并将堆栈信息和网页的页面图像信息同时发送给服务器,由于网页出现异常时,网页的页面图像信息可以反映出用户的实际应用场景,因此,维护人员结合所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理,可进一步提高网页维护的准确性;通过客户端将发生异常的网页的页面图像信息转换为页面文本信息,并将堆栈信息和网页的页面文本信息同时发送给服务器,由于页面文本信息的数据量相对于页面图像信息的数据量小,因此节省了客户端和服务器之间的通信带宽。
图12示出了根据本发明一实施例可用于实现上述网页异常监控方法的数据处理的计算设备的结构示意图。
参见图12,计算设备1000包括存储器1010和处理器1020。
处理器1020可以是一个多核的处理器,也可以包含多个处理器。在一些实施例中,处理器1020可以包含一个通用的主处理器以及一个或多个特殊的协处理器,例如图形处理器(GPU)、数字信号处理器(DSP)等等。在一些实施例中,处理器1020可以使用定制的电路实现,例如特定用途集成电路(ASIC,Application Specific Integrated Circuit)或者现场可编程逻辑门阵列(FPGA,Field Programmable Gate Arrays)。
存储器1010可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM),和永久存储装置。其中,ROM可以存储处理器1020或者计算机的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使计算机断电后也不会失去存储的指令和数据的非易 失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储器1010可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储器1010可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、min SD卡、Micro-SD卡等等)、磁性软盘等等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。
存储器1010上存储有可处理代码,当可处理代码被处理器1020处理时,可以使处理器1020执行上文述及的网页异常监控方法。
上文中已经参考附图详细描述了根据本发明的网页异常监控方法。
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
此外,根据本发明的方法还可以实现为一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品包括用于执行本发明的上述方法中限定的上述各步骤的计算机程序代码指令。
或者,本发明还可以实施为一种非暂时性机器可读存储介质(或计算机 可读存储介质、或机器可读存储介质),其上存储有可执行代码(或计算机程序、或计算机指令代码),当所述可执行代码(或计算机程序、或计算机指令代码)被电子设备(或计算设备、服务器等)的处理器执行时,使所述处理器执行根据本发明的上述方法的各个步骤。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims (31)
- 一种网页异常监控方法,其特征在于,包括:客户端获取网页出现异常时异常发生的位置信息;所述客户端向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
- 根据权利要求1所述的方法,其特征在于,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。
- 根据权利要求1或2所述的方法,其特征在于,所述客户端获取网页出现异常时异常发生的位置信息之后,还包括:所述客户端获取所述网页的页面图像信息。
- 根据权利要求3所述的方法,其特征在于,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 根据权利要求3所述的方法,其特征在于,所述客户端获取所述网页的页面图像信息之后,还包括:所述客户端将所述网页的页面图像信息转换为所述网页的页面文本信息。
- 根据权利要求5所述的方法,其特征在于,所述异常信息还包括:所述网页的页面文本信息,以使所述服务器将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 根据权利要求5所述的方法,其特征在于,所述客户端将所述网页的页面图像信息转换为所述网页的页面文本信息,包括:所述客户端采用base64编码方式将所述网页的页面图像信息转换为所述网页的页面文本信息。
- 根据权利要求4-7中任一项所述的方法,其特征在于,所述客户端获取所述网页的页面图像信息,包括:所述客户端对所述网页进行截图操作获得页面截图,所述页面截图为所 述网页的页面图像信息。
- 一种网页异常监控方法,其特征在于,包括:服务器接收客户端发送的异常信息,所述异常信息包括异常发生的位置信息,所述异常发生的位置信息是网页出现异常时网页代码生成的信息;所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
- 根据权利要求9所述的方法,其特征在于,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。
- 根据权利要求9或10所述的方法,其特征在于,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 根据权利要求11所述的方法,其特征在于,所述网页的页面图像信息是所述客户端对所述网页进行截图操作获得的页面截图。
- 根据权利要求9或10所述的方法,其特征在于,所述异常信息还包括:所述网页的页面文本信息。
- 根据权利要求13所述的方法,其特征在于,所述方法还包括:所述服务器将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 一种客户端,其特征在于,包括:第一获取模块,用于获取网页出现异常时异常发生的位置信息;发送模块,用于向服务器发送异常信息,所述异常信息包括异常发生的位置信息,以使所述服务器根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
- 根据权利要求15所述的客户端,其特征在于,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。
- 根据权利要求15或16所述的客户端,其特征在于,还包括:第二获取模块,用于获取所述网页的页面图像信息。
- 根据权利要求17所述的客户端,其特征在于,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 根据权利要求17所述的客户端,其特征在于,还包括:转换模块,用于将所述网页的页面图像信息转换为所述网页的页面文本信息。
- 根据权利要求19所述的客户端,其特征在于,所述异常信息还包括:所述网页的页面文本信息,以使所述服务器将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 根据权利要求19所述的客户端,其特征在于,所述转换模块具体用于:采用base64编码方式将所述网页的页面图像信息转换为所述网页的页面文本信息。
- 根据权利要求18-21任一项所述的客户端,其特征在于,所述第二获取模块具体用于:对所述网页进行截图操作获得页面截图,所述页面截图为所述网页的页面图像信息。
- 一种服务器,其特征在于,包括:接收模块,用于接收客户端发送的异常信息,所述异常信息包括异常发生的位置信息,所述异常发生的位置信息是网页出现异常时网页代码生成的信息;发送模块,用于根据所述异常信息,向维护人员的终端设备发送提示信息,以使所述维护人员根据所述提示信息登录所述服务器,并根据所述异常发生的位置信息对所述网页出现的异常进行定位及处理。
- 根据权利要求23所述的服务器,其特征在于,所述位置信息包括:堆栈信息,所述堆栈信息用于标识网页代码中出现异常的函数。
- 根据权利要求23或24所述的服务器,其特征在于,所述异常信息还包括:所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处 理。
- 根据权利要求25所述的服务器,其特征在于,所述网页的页面图像信息是所述客户端对所述网页进行截图操作获得的页面截图。
- 根据权利要求23或24所述的服务器,其特征在于,所述异常信息还包括:所述网页的页面文本信息。
- 根据权利要求27所述的服务器,其特征在于,还包括:转换模块,用于将所述网页的页面文本信息转换为所述网页的页面图像信息,以供所述维护人员根据所述异常发生的位置信息和所述网页的页面图像信息对所述网页出现的异常进行定位及处理。
- 一种网页异常监控系统,其特征在于,包括:如权利要求15-22任一项所述的客户端、如权利要求23-28任一项所述的服务器,以及维护人员的终端设备。
- 一种计算设备,包括:处理器;以及存储器,其上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器执行如权利要求1-14中任何一项所述的方法。
- 一种非暂时性机器可读存储介质,其上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器执行如权利要求1至14中任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710682078.X | 2017-08-10 | ||
| CN201710682078.XA CN108268332A (zh) | 2017-08-10 | 2017-08-10 | 网页异常监控方法、设备及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019029627A1 true WO2019029627A1 (zh) | 2019-02-14 |
Family
ID=62770948
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/099642 Ceased WO2019029627A1 (zh) | 2017-08-10 | 2018-08-09 | 网页异常监控方法、设备及系统、计算设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108268332A (zh) |
| WO (1) | WO2019029627A1 (zh) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108268332A (zh) * | 2017-08-10 | 2018-07-10 | 广州神马移动信息科技有限公司 | 网页异常监控方法、设备及系统 |
| CN110162460A (zh) * | 2019-04-15 | 2019-08-23 | 平安普惠企业管理有限公司 | 应用程序异常问题定位方法、装置、计算机设备及存储介质 |
| CN110245050A (zh) * | 2019-06-11 | 2019-09-17 | 四川长虹电器股份有限公司 | 一种实现script error监控和上报的方法 |
| CN110597694A (zh) * | 2019-08-09 | 2019-12-20 | 深圳木成林科技有限公司 | 一种监控前端页面的方法及终端 |
| CN113778729A (zh) * | 2020-09-23 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | 异常信息的确定方法、装置、电子设备和存储介质 |
| CN112671615B (zh) * | 2020-12-29 | 2023-07-07 | 中国平安财产保险股份有限公司 | 前端用户操作行为数据的收集方法、系统及存储介质 |
| CN113254023B (zh) * | 2021-05-14 | 2023-08-11 | 网易(杭州)网络有限公司 | 对象读取方法、装置和电子设备 |
| CN113691405B (zh) * | 2021-08-25 | 2023-12-01 | 北京知道创宇信息技术股份有限公司 | 一种访问异常诊断方法、装置、存储介质及电子设备 |
| CN115546354A (zh) * | 2022-10-26 | 2022-12-30 | 平安银行股份有限公司 | 图片生成方法、装置、设备和存储介质 |
| CN116436810A (zh) * | 2023-03-10 | 2023-07-14 | 度小满科技(北京)有限公司 | 网页异常监测方法、装置、计算机设备及存储介质 |
| CN116340690B (zh) * | 2023-04-12 | 2024-01-23 | 中电金信数字科技集团有限公司 | 页面异常检测方法、装置及计算机设备 |
| CN117609104A (zh) * | 2024-01-24 | 2024-02-27 | 盛威时代科技股份有限公司 | 客户端测试过程中页面异常的处理方法、系统和设备 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103886015A (zh) * | 2014-02-20 | 2014-06-25 | 新浪网技术(中国)有限公司 | 网站服务器以及基于网页应用的页面错误反馈方法 |
| CN104796278A (zh) * | 2014-01-21 | 2015-07-22 | 携程计算机技术(上海)有限公司 | 终端设备、Web前端错误的上报系统及方法 |
| CN105354126A (zh) * | 2015-10-13 | 2016-02-24 | 金蝶软件(中国)有限公司 | 监控页面脚本文件中异常的方法和装置 |
| CN106294134A (zh) * | 2016-07-29 | 2017-01-04 | 腾讯科技(深圳)有限公司 | 代码的崩溃定位方法及装置 |
| WO2017001757A1 (fr) * | 2015-06-30 | 2017-01-05 | Oberthur Technologies | Serveur et procede de verification de code de securite |
| CN108268332A (zh) * | 2017-08-10 | 2018-07-10 | 广州神马移动信息科技有限公司 | 网页异常监控方法、设备及系统 |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101715086B (zh) * | 2008-10-07 | 2011-12-07 | 中兴通讯股份有限公司 | 一种网络电视机顶盒的纠错处理方法 |
| US8516313B2 (en) * | 2010-06-16 | 2013-08-20 | Oracle International Corporation | Shared error searching |
| CN102681929A (zh) * | 2011-03-15 | 2012-09-19 | 腾讯科技(深圳)有限公司 | 网页脚本错误监控方法及系统 |
| CN102981943B (zh) * | 2012-10-29 | 2016-05-11 | 新浪技术(中国)有限公司 | 监控应用日志的方法及系统 |
| CN104346267B (zh) * | 2013-08-08 | 2018-05-22 | 腾讯科技(深圳)有限公司 | 生成程序缺陷定位信息的方法及装置 |
| CN105468587B (zh) * | 2014-05-30 | 2019-10-22 | 北京奇虎测腾科技有限公司 | 一种网页异常监测方法和装置 |
| CN103995755A (zh) * | 2014-06-03 | 2014-08-20 | 北京乐动卓越信息技术有限公司 | 基于移动终端的服务器优化方法及服务器系统 |
| CN104156275B (zh) * | 2014-06-30 | 2017-10-17 | 青岛海信移动通信技术股份有限公司 | 一种安卓Android平台异常处理的方法和装置 |
| CN105468511A (zh) * | 2014-09-05 | 2016-04-06 | 阿里巴巴集团控股有限公司 | 网页脚本错误定位方法及装置 |
| CN105760290B (zh) * | 2014-12-17 | 2018-11-13 | 阿里巴巴集团控股有限公司 | 基于网页前端测试的问题定位方法及相关装置、系统 |
| CN104410722A (zh) * | 2014-12-19 | 2015-03-11 | 上海斐讯数据通信技术有限公司 | 一种Web页面窗口对象的通信方法及系统 |
| CN104978529B (zh) * | 2015-03-10 | 2018-12-07 | 腾讯科技(深圳)有限公司 | 网页前端的异常处理方法、异常处理系统及异常处理服务器 |
| CN105119764B (zh) * | 2015-09-29 | 2019-06-28 | 百度在线网络技术(北京)有限公司 | 用于流量监控的方法和装置 |
| CN105512015B (zh) * | 2015-12-15 | 2018-09-04 | 北京奇虎科技有限公司 | 一种安卓目标应用崩溃统计方法和装置 |
-
2017
- 2017-08-10 CN CN201710682078.XA patent/CN108268332A/zh active Pending
-
2018
- 2018-08-09 WO PCT/CN2018/099642 patent/WO2019029627A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104796278A (zh) * | 2014-01-21 | 2015-07-22 | 携程计算机技术(上海)有限公司 | 终端设备、Web前端错误的上报系统及方法 |
| CN103886015A (zh) * | 2014-02-20 | 2014-06-25 | 新浪网技术(中国)有限公司 | 网站服务器以及基于网页应用的页面错误反馈方法 |
| WO2017001757A1 (fr) * | 2015-06-30 | 2017-01-05 | Oberthur Technologies | Serveur et procede de verification de code de securite |
| CN105354126A (zh) * | 2015-10-13 | 2016-02-24 | 金蝶软件(中国)有限公司 | 监控页面脚本文件中异常的方法和装置 |
| CN106294134A (zh) * | 2016-07-29 | 2017-01-04 | 腾讯科技(深圳)有限公司 | 代码的崩溃定位方法及装置 |
| CN108268332A (zh) * | 2017-08-10 | 2018-07-10 | 广州神马移动信息科技有限公司 | 网页异常监控方法、设备及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108268332A (zh) | 2018-07-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019029627A1 (zh) | 网页异常监控方法、设备及系统、计算设备及存储介质 | |
| CN102272757B (zh) | 用于执行客户端浏览器状态的服务器端记录的方法和系统 | |
| US10164848B1 (en) | Web service fuzzy tester | |
| US9218332B2 (en) | Method and system for auto-populating electronic forms | |
| US20140173415A1 (en) | Interactivity Analyses of Web Resources Based on Reload Events | |
| WO2018085732A1 (en) | Techniques for detecting malicious behavior using an accomplice model | |
| US8762786B2 (en) | Server throttled client debugging | |
| US11503070B2 (en) | Techniques for classifying a web page based upon functions used to render the web page | |
| US20180131779A1 (en) | Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields | |
| US9740668B1 (en) | Plotting webpage loading speeds and altering webpages and a service based on latency and pixel density | |
| CN106649061B (zh) | 一种记录用户在web系统中的操作日志的方法与设备 | |
| CN111435326B (zh) | 一种分析崩溃日志的方法和装置 | |
| US10635508B1 (en) | Programmatic implementations generated by recording user actions via an ephemeral user account | |
| JP7399999B2 (ja) | 情報表示方法および装置 | |
| CN111240948A (zh) | 一种体验数据处理方法、装置、计算机设备及存储介质 | |
| US11095725B2 (en) | Transporting data out of isolated network environments | |
| US9858549B2 (en) | Business transaction resource usage tracking | |
| CN115190001A (zh) | 一种网络异常状态分析方法及装置 | |
| US9916190B1 (en) | Interprogram communication with event handling for subscription tagging | |
| US10949605B2 (en) | Interprogram communication with event handling for online enhancements | |
| US10805411B2 (en) | Interprogram communication with event handling for metric overlays |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18844214 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18844214 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18844214 Country of ref document: EP Kind code of ref document: A1 |