CN115168171A - Webpage exception handling method and device, electronic equipment and medium - Google Patents

Webpage exception handling method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115168171A
CN115168171A CN202210860864.5A CN202210860864A CN115168171A CN 115168171 A CN115168171 A CN 115168171A CN 202210860864 A CN202210860864 A CN 202210860864A CN 115168171 A CN115168171 A CN 115168171A
Authority
CN
China
Prior art keywords
page
parameter
webpage
client
parameters
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.)
Pending
Application number
CN202210860864.5A
Other languages
Chinese (zh)
Inventor
钱维维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202210860864.5A priority Critical patent/CN115168171A/en
Publication of CN115168171A publication Critical patent/CN115168171A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Fuzzy Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method and a device for processing webpage exception, electronic equipment and a medium. By applying the technical scheme of the application, when the client is detected to have the webpage abnormal event, the purpose of timely tracing the page operation video carried out by the user in the historical time period can be achieved by rendering the parameters which are stored in the client and used for reflecting the webpage change in advance. Therefore, business inspectors can intuitively know the operation condition of the user so as to quickly respond to the webpage abnormal event. Furthermore, the problem that in the related technology, once a webpage access abnormal event occurs, a user can only rely on service personnel to manually check one by one in the process of using the client to access the webpage, which causes more time consumption is solved.

Description

Webpage exception handling method and device, electronic equipment and medium
Technical Field
The present application relates to data processing technologies, and in particular, to a method and an apparatus for processing a web page exception, an electronic device, and a medium.
Background
In this increasingly developed network age, web applications are also increasingly complex, and especially the development of front-ends is also increasingly gaining attention.
In the related art, in a web access service for a client, there is always a case of web access abnormality. It can be understood that if the cause of the accident cannot be timely checked and a corresponding solution is provided for the user, the problem of affecting the user experience may occur.
However, in the prior art, the troubleshooting method for the accident causes mainly depends on that service personnel manually troubleshoot the accident causes one by one through a back-end interface log, and the method is relatively complicated and cannot reproduce the operation track of the user and the problem of error.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing webpage exception, electronic equipment and a medium. The method and the device are used for solving the problem that in the related technology, once a webpage access abnormal event occurs in the process of using a client to access the webpage, a service worker can only be relied on to manually check the webpage one by one, so that time consumption is high.
According to an aspect of the embodiment of the present application, a method for processing a web page exception is provided, including:
when a webpage abnormal event occurs at a client, acquiring an operation parameter corresponding to the client in a historical time period, wherein the operation parameter is used for representing a page change parameter of a target webpage;
generating a user operation video for a user to operate the client to access the target page in the historical time period based on the operation parameters;
and determining a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
Optionally, in another embodiment based on the foregoing method of the present application, before the detecting that the client has the web page exception event, the method further includes:
when the client side is detected to display the target page for the first time, recording initial parameters corresponding to the target page;
and acquiring variable operation parameters, and adding the variable operation parameters into the initial parameters to generate the operation parameters.
Optionally, in another embodiment of the foregoing method based on the present application, the obtaining variable operation parameters includes:
recording a first parameter corresponding to the target page in a first page state;
when the target page is detected to be switched from the first page state to the second page state, recording a second parameter corresponding to the target page in the second page state;
and taking the difference parameter between the second parameter and the first parameter as the variable operation parameter.
Optionally, in another embodiment based on the foregoing method of the present application, before the obtaining the first parameter corresponding to the target page in the first page state, the method further includes:
receiving preset operation information executed by a user on the target page, wherein the preset operation information comprises at least one of page deletion, page jump and page content change;
the obtaining the operating parameter includes:
and adding the preset operation information and the variable operation parameters into the initial parameters to generate the operation parameters.
Optionally, in another embodiment based on the foregoing method of the present application, the obtaining a variable operating parameter, adding the variable operating parameter to the initial parameter, and generating the operating parameter further includes:
determining a generation time point of the variable operation parameter, and establishing an incidence relation between the variable operation parameter and the generation time point;
and adding the incidence relation into the initial parameters to generate the operation parameters.
Optionally, in another embodiment based on the foregoing method of the present application, the generating, based on the operation parameter, a user operation record for a user to operate the client to access the target page in a historical time period includes:
analyzing the target page data to obtain a webpage DOM tree, and selecting at least one target DOM node from the DOM tree;
adding the operational parameters to the at least one target DOM node;
and rendering page data of the webpage DOM tree where the target DOM node containing the operation parameters is located, and generating a user operation video of the target page.
Optionally, in another embodiment of the method based on the present application, when it is detected that a web page exception occurs at a client, acquiring an operation parameter corresponding to the client in a historical time period includes:
acquiring an event exception type corresponding to the webpage exception event, and determining the historical time period matched with the event exception type;
and acquiring the operating parameters corresponding to the client in the historical time period.
According to another aspect of the embodiments of the present application, there is provided a device for processing a web page exception, including:
the acquisition module is configured to acquire an operating parameter corresponding to a client in a historical time period when a webpage abnormal event occurs at the client, wherein the operating parameter is used for representing a page change parameter of a target webpage;
the generating module is configured to generate a user operation video for a user to operate the client to access the target page in the historical time period based on the operation parameters;
and the determining module is configured to determine a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
and the display is used for being matched with the memory to execute the executable instruction so as to complete the operation of any one of the webpage exception handling methods.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which, when executed, perform the operations of any one of the above-mentioned methods for processing a web page exception.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram illustrating a method for handling a web page exception according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for handling a web page exception according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a storage medium provided in an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all directional indicators (such as up, down, left, right, front, back, 8230; \8230;) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is correspondingly changed.
A method for handling web page exceptions according to an exemplary embodiment of the present application is described below with reference to fig. 1-2. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a method and a device for processing the webpage exception, electronic equipment and a medium.
Fig. 1 schematically shows a flowchart of a method for processing a web page exception according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101, when a webpage abnormal event of the client is detected, acquiring operation parameters corresponding to the client in a historical time period, wherein the operation parameters are used for representing page change parameters of a target webpage.
And S102, generating a user operation video for the user to operate the client to access the target page in the historical time period based on the operation parameters.
S103, determining a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
With the development of the network era, web applications are more and more complex, and especially the development of the front end is more and more emphasized. For example, after the front-end development of the service platform is completed, a series of online verifications of the web application, such as service self-test, QA test, code review, etc., are performed to ensure that the application can not have a failure event in the actual application process.
In the related art, in a web access service for a client, there is always a case of web access abnormality. Furthermore, the reasons for the abnormal webpage access may be various, such as the mismatch of access model, the mismatch of network environment, the error of interface request, various invalid complex operation behaviors, etc. It can be understood that if the cause of the accident cannot be timely checked and a corresponding solution is provided for the user, the problem of influencing the user experience may occur.
However, due to the continuous development of technology, the display elements of the front-end web pages are more and more complex. In the project facing the user side, there are always abnormal situations, which result in complaints of users and loss of user traffic. The conventional method for troubleshooting problems is to use service personnel to call interfaces in sequence at the back end to obtain recorded logs, and perform error troubleshooting one by one according to information recorded in the logs. It can be understood that the method is complicated, and the problems of the operation track of the user and the occurrence of errors cannot be reproduced.
In order to solve the existing problems, an embodiment of the present application provides a method for processing a web page exception, where the method includes:
step 1, information acquisition:
the method and the device aim to obtain the operation parameters corresponding to the client in the corresponding historical time period when the webpage abnormal event of the client is detected in the follow-up process. In one approach, the operational parameter may be a DOM element.
In one approach, the client needs to collect and upload DOM elements of a page to the database in real-time or periodically upon detecting that a user accesses the page.
Specifically, the embodiment of the application can record the initial DOM state of the target page or the DOM state at a specific moment when the target page is initialized. And continuously acquiring DOM states of the target page at different time points subsequently, thereby obtaining operation change parameters (namely variable operation parameters) of the DOM states. And continuously adding the operation change parameters of the DOM state into the original data set by taking time as latitude.
In a conventional manner, for obtaining the operation change parameter of the DOM state, an initial parameter corresponding to the target page (for example, obtained when the client displays the target page for the first time) may be recorded first, and the page state of the target page may be detected in real time.
For example, when the page state of the target page is switched from the first page state to the second page state at a certain time, the variable operation parameter for characterizing the changed portion of the page may be determined accordingly (i.e., a difference parameter between the second parameter corresponding to the target page in the second page state and the first parameter corresponding to the target page in the first page state is used as the variable operation parameter).
For example, the first parameter corresponding to the target page in the first page state is a. At a certain subsequent time, acting on an operation instruction of a user, jumping out of a window from a preset area of a target page (or acting on the operation instruction of the user, switching the target page from a first preset size to a second preset size, or acting on a time instruction, switching the target page from a single window to a double window, and the like). And continuing to detect that the second parameter corresponding to the target page in the second page state (namely the target page containing the jump window) is B. Furthermore, the variable operation parameter is a difference parameter between B and a.
In one approach, after the variable operating parameter is determined, it may be added to the initial parameter to effect generation of the operating parameter.
It should be noted that, because the behavior of the user operating the target page may be a persistent behavior, the client needs to continuously acquire the current page state of the target page and calculate the current page state and the previous page state to obtain the variable operation parameter. Optionally, in the embodiment of the present application, after a variable operation parameter is obtained, it needs to be added to an initial parameter (the initial parameter may be a variable operation parameter that has been superimposed with one or more pre-obtained variable operation parameters).
In one mode, the trigger point for switching the target page from the first page state to the second page state may be to receive preset operation information performed on the target page by a user.
As an example, the preset operation information may include one or more of page deletion, page jump, and page content variation. Including, for example, page creation, page destruction, page node attribute changes, page content changes, mouse-operated pages, page scrolling, page window size changes, and so forth.
Optionally, in this embodiment of the application, after the difference parameter between the second parameter and the first parameter is used as the variable operation parameter, the preset operation information and the variable operation parameter need to be added to the initial parameter to jointly generate the operation parameter. So that the preset operation information and the variable operation parameter are added to the initial parameter to generate the operation parameter.
It can be understood that the purpose of adding the preset operation information is to more conveniently show the historical access operation of the user for auditing the user in the process of generating the user operation video of the user for accessing the target page by operating the client in the historical time period based on the operation parameters.
Step 2, information arrangement and uploading:
further, in the embodiment of the present application, after the obtained variable operation parameter is added to the initial parameter to generate the operation parameter, the operation parameter needs to be recorded in a log, so that the log is uploaded to the parameter database. Therefore, when the fact that the webpage abnormal event occurs at the client side is detected subsequently, the operation parameters corresponding to the historical time period can be extracted from the parameter database.
In one mode, after obtaining the variable operation parameter, the embodiment of the present application needs to store the variable operation parameter according to a certain storage scheme after certain processing. As an example, the reporting mode may be reporting by using Ajax to record a log. It can be understood that data reporting by adopting the Ajax log recording mode can be realized without depending on an external plug-in, ensure document uploading of large file logs and ensure data security. And cleaning the log to obtain the content required by the client.
As another example, the variable operation parameter may also be reported by converting the variable operation parameter into an image.
Step 3, backtracking rendering:
the tracing of the abnormal event should be done from the tracing front end. I.e. by the client's own monitoring scheme. Therefore, when errors of the client codes in production operation are detected, the problems can be located and solved at the first time. The stability and the safety of the front-end code are ensured, so that the service access can normally run. On the other hand, the abnormal backtracking of the webpage can also ensure the stability and the safety of the front-end code, and further improve the user experience.
Furthermore, the backtracking form is visual, the user behavior is clear and visual, the user experience is better improved, the product upgrading can also be guided through the data-driven thought, and most importantly, the generation of online faults can be better avoided only by realizing the importance of the front end.
Specifically, one process of backtracking rendering entails generating a DOM for a page from data that initializes a base point in an empty page or node. The collected differentiated data (namely variable operation parameters) and the data of the user behavior (namely preset operation information) are distinguished and classified according to the change of the time dimension, corresponding node insertion, deletion, node attribute change and the like are carried out on the page, and then the steps of user operation on the page or a specific scene can be clearly restored on the page. And re-engraving and recording the track of the user operation on the line to ensure the user information compliance operation.
As an example, in the process of generating the user operation record in which the user operates the client to access the target page in the historical time period, the embodiment of the present application may first parse the data of the target page to obtain a web page DOM tree, and select at least one target DOM node from the DOM tree. As an example, the number of target DOM nodes may be the same as the number of operational parameters.
Furthermore, in the embodiment of the present application, the operation parameter needs to be added to at least one target DOM node, so that page data rendering is performed on a webpage DOM tree where the target DOM node containing the operation parameter is located subsequently, thereby generating the user operation video of the target page in the historical period. The method helps the auditing user to record the video according to the user operation and timely troubleshoot the webpage abnormal reason corresponding to the webpage abnormal event.
According to the method, when a webpage abnormal event of a client is detected, operation parameters corresponding to the client in a historical time period are obtained, and the operation parameters are used for representing page change parameters of a target webpage; based on the operation parameters, generating a user operation video for a user to operate the client to access the target page in a historical time period; and determining a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video. By applying the technical scheme of the application, when the client is detected to have the webpage abnormal event, the purpose of timely tracing the page operation video carried out by the user in the historical time period can be achieved by rendering the parameters which are stored in the client and used for reflecting the webpage change in advance. Therefore, business inspectors can intuitively know the operation condition of the user so as to quickly respond to the webpage abnormal event. And further, the problem that in the related technology, once a webpage access abnormal event occurs, a user only depends on service personnel to manually check one by one in the process of using the client to access the webpage, so that the time consumption is high is solved.
Optionally, in another embodiment of the foregoing method based on the present application, before detecting that a web page exception occurs at the client, the method further includes:
when a client side is detected to display a target page for the first time, recording initial parameters corresponding to the target page;
and acquiring variable operation parameters, and adding the variable operation parameters into the initial parameters to generate operation parameters.
Optionally, in another embodiment of the foregoing method based on the present application, the obtaining variable operation parameters includes:
recording a first parameter corresponding to a target page in a first page state;
when the target page is detected to be switched from the first page state to the second page state, recording a second parameter corresponding to the target page in the second page state;
and taking the difference parameter between the second parameter and the first parameter as the variable operation parameter.
Optionally, in another embodiment based on the foregoing method of the present application, before acquiring the first parameter corresponding to the target page in the first page state, the method further includes:
receiving preset operation information executed by a user on a target page, wherein the preset operation information comprises at least one of page deletion, page jump and page content change;
generating operating parameters, including:
and adding the preset operation information and the variable operation parameters into the initial parameters to generate the operation parameters.
Optionally, in another embodiment based on the foregoing method of the present application, obtaining a variable operation parameter, adding the variable operation parameter to an initial parameter, and generating an operation parameter, further includes:
determining a generation time point of the variable operation parameter, and establishing an incidence relation between the variable operation parameter and the generation time point;
and adding the incidence relation to the initial parameters to generate operation parameters.
Optionally, in another embodiment based on the foregoing method of the present application, generating a user operation record of a user operating a client to access a target page in a historical time period based on an operation parameter includes:
analyzing the target page data to obtain a webpage DOM tree, and selecting at least one target DOM node from the DOM tree;
adding the operational parameters to at least one target DOM node;
and rendering page data of the webpage DOM tree where the target DOM node containing the operation parameters is located, and generating a user operation video of the target page.
Optionally, in another embodiment of the method based on the present application, when it is detected that a web page exception occurs at the client, acquiring an operation parameter corresponding to the client in a historical time period includes:
acquiring an event exception type corresponding to a webpage exception event, and determining a historical time period matched with the event exception type;
and acquiring the operating parameters corresponding to the client in the historical time period.
Optionally, in another embodiment of the foregoing method based on the present application, after obtaining the variable operation parameter, adding the variable operation parameter to the initial parameter, and generating the operation parameter, the method further includes:
the operational parameters are recorded in a log of records, and the log of records is uploaded to a parameter database.
As shown in fig. 2, an overall flowchart of a method for processing a web page exception provided in the embodiment of the present application is shown, where the method includes:
when a webpage abnormal event occurs at a client, acquiring an operation parameter corresponding to the client in a historical time period, wherein the operation parameter is used for representing a page change parameter of a target webpage; generating a user operation video for a user to operate a client to access a target page in a historical time period based on the operation parameters; and determining a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
By applying the technical scheme of the application, when the condition that the webpage abnormal event exists in the client is detected, the purpose of timely tracing the page operation video carried out by the user in the historical time period can be achieved by means of rendering the parameters which are pre-stored by the client and used for reflecting the webpage change. Therefore, business inspectors can intuitively know the operation condition of the user so as to quickly respond to the webpage abnormal event. And further, the problem that in the related technology, once a webpage access abnormal event occurs, a user only depends on service personnel to manually check one by one in the process of using the client to access the webpage, so that the time consumption is high is solved.
Optionally, in another embodiment of the present application, as shown in fig. 3, a device for processing a web page exception is further provided. Which comprises the following steps:
the acquiring module 201 is configured to acquire an operating parameter corresponding to a client in a historical time period when a webpage abnormal event occurs at the client, wherein the operating parameter is used for representing a page change parameter of a target webpage;
a generating module 202, configured to generate a user operation record for a user to operate the client to access the target page in a historical time period based on the operation parameter;
the determining module 203 is configured to determine a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
According to the method, when a webpage abnormal event of a client is detected, operation parameters corresponding to the client in a historical time period are obtained, and the operation parameters are used for representing page change parameters of a target webpage; based on the operation parameters, generating a user operation video for a user to operate the client to access the target page in a historical time period; and determining a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video. By applying the technical scheme of the application, when the client is detected to have the webpage abnormal event, the purpose of timely tracing the page operation video carried out by the user in the historical time period can be achieved by rendering the parameters which are stored in the client and used for reflecting the webpage change in advance. Therefore, business inspectors can intuitively know the operation condition of the user so as to quickly respond to the webpage abnormal event. And further, the problem that in the related technology, once a webpage access abnormal event occurs, a user only depends on service personnel to manually check one by one in the process of using the client to access the webpage, so that the time consumption is high is solved.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
when the client side is detected to display the target page for the first time, recording initial parameters corresponding to the target page;
and acquiring variable operation parameters, and adding the variable operation parameters into the initial parameters to generate the operation parameters.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
recording a first parameter corresponding to the target page in a first page state;
when the target page is detected to be switched from the first page state to the second page state, recording a second parameter corresponding to the target page in the second page state;
taking a difference parameter between the second parameter and the first parameter as the variable operating parameter.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
receiving preset operation information executed by a user on the target page, wherein the preset operation information comprises at least one of page deletion, page jump and page content change;
generating the operating parameter, including:
and adding the preset operation information and the variable operation parameters into the initial parameters to generate the operation parameters.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
determining the generation time point of the variable operation parameter, and establishing the association relationship between the variable operation parameter and the generation time point;
and adding the incidence relation to the initial parameters to generate the operation parameters.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
analyzing the target page data to obtain a webpage DOM tree, and selecting at least one target DOM node from the DOM tree;
adding the operational parameters to the at least one target DOM node;
and rendering page data of the webpage DOM tree in which the target DOM node containing the operation parameters is located, and generating a user operation video of the target page.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
acquiring an event exception type corresponding to the webpage exception event, and determining the historical time period matched with the event exception type;
and acquiring the operating parameters corresponding to the client in the historical time period.
In another embodiment of the present application, the obtaining module 201 is configured to perform the following steps:
and recording the operation parameters in a record log, and uploading the record log to a parameter database.
The embodiment of the application also provides electronic equipment for executing the method for processing the webpage exception. Referring to fig. 4, a schematic diagram of an electronic device provided in some embodiments of the present application is shown. As shown in fig. 4, the electronic apparatus 3 includes: the system comprises a processor 300, a memory 301, a bus 302 and a communication interface 303, wherein the processor 300, the communication interface 303 and the memory 301 are connected through the bus 302; the memory 301 stores a computer program that can be executed on the processor 300, and the processor 300 executes the method for processing the web page exception provided in any of the foregoing embodiments when executing the computer program.
The Memory 301 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the apparatus and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 302 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is configured to store a program, and the processor 300 executes the program after receiving an execution instruction, where the method for identifying data disclosed in any embodiment of the present application may be applied to the processor 300, or implemented by the processor 300.
Processor 300 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 300. The Processor 300 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 301, and the processor 300 reads the information in the memory 301 and completes the steps of the method in combination with the hardware thereof.
The electronic device provided by the embodiment of the application and the method for data identification provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
Referring to fig. 5, the computer readable storage medium is an optical disc 40, on which a computer program (i.e., a program product) is stored, and when the computer program is executed by a processor, the computer program executes the method for processing the web page exception provided by any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memories (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above embodiment of the present application and the method for identifying data provided by the embodiment of the present application have the same advantages as the method adopted, run or implemented by the application program stored in the computer-readable storage medium.
It should be noted that:
in the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted to reflect the following schematic diagram: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing web page exception is characterized by comprising the following steps:
when a webpage abnormal event occurs at a client, acquiring an operation parameter corresponding to the client in a historical time period, wherein the operation parameter is used for representing a page change parameter of a target webpage;
generating a user operation video for a user to operate the client to access the target page in the historical time period based on the operation parameters;
and determining a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
2. The method of claim 1, prior to said detecting a web page exception event at the client, further comprising:
when the client side is detected to display the target page for the first time, recording initial parameters corresponding to the target page;
and acquiring variable operation parameters, and adding the variable operation parameters into the initial parameters to generate the operation parameters.
3. The method of claim 2, wherein said obtaining variable operating parameters comprises:
recording a first parameter corresponding to the target page in a first page state;
when the target page is detected to be switched from the first page state to the second page state, recording a second parameter corresponding to the target page in the second page state;
and taking the difference parameter between the second parameter and the first parameter as the variable operation parameter.
4. The method of claim 3, wherein prior to said obtaining the corresponding first parameter of the target page in the first page state, further comprising:
receiving preset operation information executed by a user on the target page, wherein the preset operation information comprises at least one of page deletion, page jump and page content change;
the obtaining the operating parameter includes:
and adding the preset operation information and the variable operation parameters into the initial parameters to generate the operation parameters.
5. The method of claim 2, wherein the obtaining a variable operating parameter and adding the variable operating parameter to the initial parameter, generating the operating parameter, further comprises:
determining a generation time point of the variable operation parameter, and establishing an incidence relation between the variable operation parameter and the generation time point;
and adding the incidence relation into the initial parameters to generate the operation parameters.
6. The method of claim 1, wherein generating a user-manipulated record of a user manipulating the client to access the target page for a historical period of time based on the manipulation parameter comprises:
analyzing the target page data to obtain a webpage DOM tree, and selecting at least one target DOM node from the DOM tree;
adding the operational parameters to the at least one target DOM node;
and rendering page data of the webpage DOM tree where the target DOM node containing the operation parameters is located, and generating a user operation video of the target page.
7. The method of claim 1, wherein when it is detected that a web page exception occurs at a client, acquiring an operation parameter corresponding to the client in a historical time period comprises:
acquiring an event exception type corresponding to the webpage exception event, and determining the historical time period matched with the event exception type;
and acquiring the operating parameters corresponding to the client in the historical time period.
8. An apparatus for processing web page exceptions, comprising:
the acquisition module is configured to acquire operation parameters corresponding to a client in a historical time period when a webpage abnormal event occurs in the client, wherein the operation parameters are used for representing page change parameters of a target webpage;
the generating module is configured to generate a user operation video for a user to operate the client to access the target page in the historical time period based on the operation parameters;
and the determining module is configured to determine a webpage abnormal reason corresponding to the webpage abnormal event according to the user operation video.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for executing the executable instructions with the memory to perform the operations of the method for handling web page exceptions of any one of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions, wherein the instructions, when executed, perform the operations of the method for handling web page exceptions recited in any one of claims 1-7.
CN202210860864.5A 2022-07-21 2022-07-21 Webpage exception handling method and device, electronic equipment and medium Pending CN115168171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210860864.5A CN115168171A (en) 2022-07-21 2022-07-21 Webpage exception handling method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210860864.5A CN115168171A (en) 2022-07-21 2022-07-21 Webpage exception handling method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115168171A true CN115168171A (en) 2022-10-11

Family

ID=83495723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210860864.5A Pending CN115168171A (en) 2022-07-21 2022-07-21 Webpage exception handling method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115168171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116150542A (en) * 2023-04-21 2023-05-23 河北网新数字技术股份有限公司 Dynamic page generation method and device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116150542A (en) * 2023-04-21 2023-05-23 河北网新数字技术股份有限公司 Dynamic page generation method and device and storage medium
CN116150542B (en) * 2023-04-21 2023-07-14 河北网新数字技术股份有限公司 Dynamic page generation method and device and storage medium

Similar Documents

Publication Publication Date Title
KR102146173B1 (en) Service call information processing method and device
CN110928772A (en) Test method and device
CN111108481B (en) Fault analysis method and related equipment
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
CN110990233B (en) Method and system for displaying SOAR by utilizing Gantt chart
CN109815119B (en) APP link channel testing method and device
CN111309505B (en) Page exception handling method and device and electronic equipment
CN112152823B (en) Website operation error monitoring method and device and computer storage medium
CN109901968A (en) A kind of automation page data method of calibration and device
US9201765B2 (en) System and method to facilitate a user interface enabled review of static analysis warnings
CN113868126A (en) Application debugging method, device and storage medium of equipment
CN111898059A (en) Website page quality evaluation and monitoring method and system
CN110716878A (en) Automatic interface testing method, device and system
CN105468511A (en) Web page script error positioning method and apparatus
CN115168171A (en) Webpage exception handling method and device, electronic equipment and medium
CN115048311A (en) Test environment monitoring method and device, electronic equipment and readable storage medium
CN105825641A (en) Service alarm method and apparatus
CN115514677B (en) Method and system for server dial testing
CN116185867A (en) Automatic driving perception regression testing method, computer equipment and storage medium
CN114764800A (en) Road event detection method and device, electronic equipment and readable storage medium
CN113868137A (en) Method, device and system for processing buried point data and server
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN105827447A (en) Service alarm method and apparatus
CN112698890A (en) Method, device and equipment for collecting function time consumption and storage medium
CN114039740B (en) Network measurement method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination