[go: up one dir, main page]

CN112486847B - Error reproduction method, apparatus, system, device and storage medium - Google Patents

Error reproduction method, apparatus, system, device and storage medium Download PDF

Info

Publication number
CN112486847B
CN112486847B CN202011511110.6A CN202011511110A CN112486847B CN 112486847 B CN112486847 B CN 112486847B CN 202011511110 A CN202011511110 A CN 202011511110A CN 112486847 B CN112486847 B CN 112486847B
Authority
CN
China
Prior art keywords
error
reproduction
user side
operation event
reproduction information
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.)
Active
Application number
CN202011511110.6A
Other languages
Chinese (zh)
Other versions
CN112486847A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011511110.6A priority Critical patent/CN112486847B/en
Publication of CN112486847A publication Critical patent/CN112486847A/en
Application granted granted Critical
Publication of CN112486847B publication Critical patent/CN112486847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a method, a device, a system, equipment and a storage medium for error reproduction, and relates to the field of application testing. The specific implementation scheme is as follows: the error reproduction method comprises the following steps: obtaining reproduction information corresponding to errors of a user side, wherein the reproduction information corresponding to the errors comprises operation events and view changes caused by the operation events when the errors occur at the user side; and triggering an operation event in the case of the error according to the reproduction information, and reducing a view change caused by the operation event to reproduce the error. According to the embodiment of the disclosure, errors can be quickly reproduced, and the efficiency of error repair is improved.

Description

Error reproduction method, apparatus, system, device and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to the field of optimization application testing.
Background
When the front page of the user side is wrong, a developer is required to repair. Since errors in the front page occur in the user's device, it is imperceptible from the developer's perspective. Therefore, the developer needs to reproduce the error of the user terminal to repair.
The related error reproduction method comprises the steps of collecting error information of a user side and reporting the error information, and a developer solves the problem by analyzing an error stack. However, this method has a problem that errors are difficult to reproduce. Also, it is difficult to reproduce a path in which an error occurs.
Disclosure of Invention
The present disclosure provides a method, apparatus, system, device, and storage medium for error reproduction.
According to an aspect of the present disclosure, there is provided a method of error reproduction, including:
obtaining reproduction information corresponding to errors of a user side, wherein the reproduction information corresponding to the errors comprises operation events and view changes caused by the operation events when the errors occur at the user side; and
and triggering an operation event in the case of the error according to the reproduction information, and reducing view change caused by the operation event to reproduce the error.
According to another aspect of the present disclosure, there is provided an apparatus for error reproduction, including:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring reproduction information corresponding to errors of a user side, and the reproduction information corresponding to the errors comprises operation events and view changes caused by the operation events when the errors occur at the user side; and
and the reproduction module is used for triggering an operation event in the case of the error according to the reproduction information and reducing view change caused by the operation event so as to reproduce the error.
According to another aspect of the present disclosure, there is provided a system for error reproduction, including:
the user terminal is used for sending the reproduction information corresponding to the error of the user terminal, wherein the reproduction information corresponding to the error comprises an operation event and view change caused by the operation event when the error occurs to the user terminal;
the server is used for receiving the reproduction information corresponding to the error, which is sent when the error occurs at the user side; and
a reproduction side for performing the method in any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
According to the embodiment of the disclosure, errors can be quickly reproduced, and the efficiency of error repair is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow diagram of a method of error recurrence in accordance with an embodiment of the present disclosure;
FIG. 2 is a flow diagram of a method of error reproduction according to another embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a client according to an embodiment of the disclosure;
FIG. 4 is a flow diagram of a method of error reproduction according to another embodiment of the present disclosure;
FIG. 5 is a block diagram of an apparatus for error reproduction according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of a system for error reproduction according to an embodiment of the present disclosure;
fig. 7 shows a schematic block diagram of an example electronic device used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 is a flow diagram of a method of error reproduction according to an embodiment of the present disclosure. The method may include:
step S101, obtaining reproduction information corresponding to errors of a user side, wherein the reproduction information corresponding to the errors comprises operation events and view changes caused by the operation events when the errors occur at the user side; and
step S102, triggering an operation event in the case of the error according to the reproduction information, and reducing view change caused by the operation event to reproduce the error.
In this embodiment, the user terminal may include various types of terminal devices that may be operated by a user, such as a mobile phone, a tablet computer, and an intelligent home appliance. The user side may also be referred to as the front end. The user terminal may include a display component, such as a display screen, and when the user operates the user terminal, the user terminal generates an operation event, and accordingly, a view change caused by the operation event may be displayed on the display screen.
For example, if the user clicks a control on page P1 of an APP (Application) on the mobile phone screen, a click event will be generated. If the control is clicked on to open another page P2, the click event causes a change from page P1 to page P2.
For another example, if the user slides page P3 of an APP on the cell phone screen, a sliding event may occur. If the sliding event would display another page P4, the sliding event causes a change from page P3 to page P4.
In this embodiment, the operation event of the user side and the view change caused by the operation event may be combined, and the reproduction information corresponding to the error occurring at the user side includes one or more operation events corresponding to the error, and the reproduction information such as the view change caused by the one or more operation events. The reproduction information may be stored locally at the client, or may be sent to a server for storage. For example, when the user side generates an error, the reproduction information corresponding to the error may be sent to the server; the reproduction information corresponding to the plurality of errors may be locally accumulated and stored, and then the reproduction information corresponding to the plurality of errors may be transmitted to the server at a time.
The developer and the like can perform error reproduction by using the electronic device, can acquire reproduction information from the user side or the server, re-trigger an operation event performed when an error occurs at the user side according to the reproduction information, and restore a view change caused by the operation event. In the case where reproduction is required, the electronic device for performing error reproduction may be referred to as a reproduction side.
According to the embodiment of the disclosure, the error can be quickly reproduced, and the error can be quickly positioned and repaired, so that the error repairing efficiency is improved.
FIG. 2 is a flow chart of a method of error reproduction according to another embodiment of the present disclosure. The error reproduction method of this embodiment may include the steps of the above-described embodiments. In one embodiment, before step S102, the method may further include:
step 103, triggering a predetermined number of operation events of the user side before the error occurs in sequence according to the reproduction information, and reducing view changes caused by the predetermined number of operation events so as to reproduce the path of the error.
In embodiments of the present disclosure, the path of error occurrence may include a series of operational events that the user terminal passes before the error occurs, and view changes caused by these operational events. For example, since many errors in the client are not necessarily caused by a particular operation event, it is possible that the errors occur after a series of operation events. Therefore, the reproduction error generation path contributes significantly to the repair of the error.
In this embodiment, the operation event of the user terminal is combined with the view change caused by the operation event, and when an error occurs in the user terminal, a series of operation events performed by the user terminal before the error occurs are retriggered, and the view change caused by the operation events is restored. Therefore, the error reproduction method according to the embodiment not only can quickly locate the error, but also can reproduce the path of the error, thereby being beneficial to more accurately locating the cause of the error, and greatly improving the repair efficiency.
In one embodiment, step S101 includes: and acquiring the reproduction information corresponding to the error from a server, wherein the reproduction information corresponding to the error is sent to the server under the condition that the error occurs at the user side.
Taking one access as an example, when the application of the user side is used, all the completed screen operations generate corresponding changes of document and view styles. Thus, in such an embodiment, the user side may store each operational event and corresponding view changes, document changes, etc. locally. When the access of the user side is wrong, the locally stored event related data can be uploaded to the server as a log. Specifically, all the data related to the operation events stored in the user side may be uploaded, or only the data related to the operation events corresponding to the errors may be uploaded. After uploading, the data related to the operation event stored locally at the user terminal can be deleted or marked as uploaded, so as to prevent the repeated data from being uploaded subsequently. In this way, by sending the reproduction information to the server under the specific condition, the occupied communication resources and the storage space of the server can be reduced, and more devices can be supported to use the information most relevant to the error occurred at the user terminal for error reproduction, for example, a plurality of reproduction terminals can be connected with the server, and the error reproduction information of a certain user terminal can be acquired from the server, thereby improving the repair efficiency.
In one embodiment, the reproduction information corresponding to the error includes device information, an error stack, and an error path of the user terminal.
In one embodiment, the device information may include information that can describe a device characteristic of the user side, such as a device model number, a device factory number, a device unique identifier, an identifier assigned to the device, and the like. The error stack may include one or more error messages. The error information may be encapsulated with errors occurring at the user side, such as a function call relationship, statement execution error reporting information, the number of code rows and columns where the errors are located, and the like. Assuming that, under the condition that the user side operates normally, the user clicks a control of the page P1 of a certain APP on the display component of the user side and opens the page P2 of another APP, the click event can be considered to call a function for causing the page P1 to change to the page P2. However, in the event of an error, clicking on the control does not open page P2, but rather opens page P3. At this time, the function called by the click event for causing the page P1 to change to the page P3 may be packaged in the error stack as a function call relation when an error occurs.
In one embodiment, the error path includes the type, location, and document change information of the operable event. For example, the types of operational events may include click, double click, swipe, double finger swipe, and the like. The positions may include an operation position, a start position, a pass position, an end position, etc. of the operation event in the screen of the user terminal, and may be represented using coordinates. The document change information is used to describe a view change caused by an operation event in the user side, and may be represented using a file in XHTML (eXtensible Hyper Text Markup Language ) format, for example.
As shown in fig. 3, assume that the user makes an error after performing two click operations on the user side: after a click operation is performed at a circular position in the view shown on the left side, specifically, for example, clicking on the web page control with "card punch by father", the view of the user terminal becomes the view shown on the right side. After clicking on the circular position in the view shown on the right, specifically, for example, clicking on "beijing zoo", an error occurs, and the view of the user terminal is not changed to display the content related to the desired web page "beijing zoo". The reproduction information corresponding to the error in the above example may be represented by a data structure of the form:
in the above data structure, "device information" is "1360 860" may indicate the device identifier of the user side. "error information 1" and "error information 2" may represent specific contents of the error stack. The error information is a component unit in the error stack, and the sequence of the error information in the error stack shows the function call relation. The content in the error information can include statement execution error reporting information, code row number and the like where the error is located. In the "error path," type "is" click "may indicate that the event in which the error occurs is a click event; "position" is "260 100" and "position" is "560 200" and may represent the position coordinates of the occurrence of two click events, respectively. In addition, "document change" information corresponding to each error event and other information required for reproduction can be included in the "error path".
The above-described data structure is merely an example, and not a limitation, and the specific structure of the reproduction information may be different according to actual errors, operation events, view changes, and the like.
Fig. 4 is a flowchart schematically showing an example of application of the error reproduction method. The method may include:
step S401, a reproduction environment is constructed according to the equipment information of the user side and the running application information. For example, the developer acquires the device information and the running application information reported by the user side from the server by using the reproduction side. The running application information may include a browser, APP, etc. running at the user side, including the application information running when an error occurs.
Step S402, analyzing the event stack, starting to trigger the operation event, and displaying view changes corresponding to the operation event in the environment. For example, the replication end may parse one or more event stacks, sequentially trigger various operation events included in the event stacks in the replication environment in the same order as the operation order of the user end, and visually display the operation areas in the replication environment so as to more intuitively display the operation events.
Step S403, displaying the interface after the document is changed through the document change information. For example, the reproduction side may sequentially restore view changes caused by various operation events in the same order as the view order displayed by the user side. The interface presented in this step may correspond to the operation event presented in step S402. For example, suppose that a user clicks on a control of page P1 of an APP on the display component of the user side, opens page P2 of another APP. The page P2 is presented in step S402 while triggering the operation event of "clicking on a control of the page P1 of the APP" in step S402.
Step S404, judging whether an error is triggered. For example, the reproduction end may determine that an error is triggered when the interface after the document change has the same view as when the user end has an error. Otherwise, judging that the trigger error is not generated. For another example, the reproduction end may determine that an error is triggered when all the operation events have been triggered. Otherwise, judging that the trigger error is not generated.
If the determination in step S404 is no, that is, if no error is triggered, the process may jump to step S402 to start analyzing the next event and trigger the next operation event, and then step S403 to display an interface corresponding to the operation event. In the case where the determination in step S404 is yes, that is, in the case of a trigger error, step S405 may be executed.
Step S405, analyzing the reproduction information corresponding to the error, and repairing the error.
In this embodiment, after the reproduction end receives the information that the user end has errors, the information can be restored through the plugin of the application interface. The plug-in can analyze the user operation record information and the document change information in the reported error information. For clicking, sliding and other operations of a user, the operation area is displayed for visual display through re-triggering the event. At the same time, the documents corresponding to these operational events may be changed corresponding to the currently triggered operational event to restore the change in view until the error at the user side is reproduced. Thus, the error stack and the reproduction path are combined to conveniently locate and repair errors.
In this embodiment, the device information of the user side is considered, and the reproduction environment is constructed according to the device information of the user side. Therefore, the error reproduction method of the embodiment can quickly locate the error and reproduce the path of the error, thereby greatly improving the repair efficiency.
Fig. 5 is a block diagram of an apparatus for error reproduction according to an embodiment of the present disclosure. The apparatus may include:
the obtaining module 51 is configured to obtain reproduction information corresponding to an error at a user side, where the reproduction information corresponding to the error includes an operation event and a view change caused by the operation event when the error occurs at the user side; and
a reproduction module 53, configured to trigger an operation event in the case where the error occurs according to the reproduction information, and to reduce a view change caused by the operation event, so as to reproduce the error.
In one embodiment, the reproduction module 53 is further configured to trigger, in sequence, a predetermined number of operation events of the user side before the error occurs and restore a view change caused by the predetermined number of operation events before triggering the operation event in the case of the error, so as to reproduce a path in which the error occurs.
In one embodiment, the obtaining module 51 obtains the reproduction information corresponding to the error from a server, where the reproduction information corresponding to the error is sent to the server when the error occurs at the user side.
In one embodiment, the reproduction information corresponding to the error includes device information, an error stack and an error path of the user terminal;
the error stack includes one or more error messages;
the error path includes the type, location, and document alteration information of the operational event.
The functions of each module in the error reproduction apparatus of the embodiments of the present disclosure may be referred to the corresponding descriptions in the error reproduction method, which are not described herein.
FIG. 6 is a block diagram of a system for error reproduction according to an embodiment of the present disclosure. The system may include:
a user side 61, configured to send reproduction information corresponding to an error of the user side 61, where the reproduction information corresponding to the error includes an operation event in a case where the user side has an error and a view change caused by the operation event;
a server 63, configured to receive reproduction information corresponding to the error, where the error is sent when the user terminal 61 has occurred; and
a reproduction end 65 for performing the error reproduction method in any of the above embodiments.
The functions of the user terminal 61, the server 63, and the reproduction terminal 65 in the error reproduction system according to the embodiments of the present disclosure may be referred to the corresponding descriptions of the user terminal, the server, and the reproduction terminal in the error reproduction method, which are not described herein.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 7 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 80 performs the respective methods and processes described above, such as a method of error reproduction. For example, in some embodiments, the method of error reproduction may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the error-resilient method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the error-resilient method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (6)

1. A method of error reproduction, comprising:
obtaining the reproduction information corresponding to the error of the user side from a server, wherein the reproduction information corresponding to the error is sent to the server when the error occurs to the user side, and the reproduction information corresponding to the error comprises an operation event when the error occurs to the user side and view change caused by the operation event; and
triggering an operation event in the case of the error according to the reproduction information, and reducing view change caused by the operation event to reproduce the error;
the error corresponding reproduction information comprises equipment information of the user side, an error stack and an error path, wherein the error stack comprises one or more pieces of error information, the error path comprises the type, the position and document change information of the operation event, and the document change information is used for describing view change caused by the operation event;
before triggering the operation event in case of occurrence of the error, the method further comprises: and triggering a preset number of operation events of the user side before the error occurs in sequence according to the reproduction information, and reducing view changes caused by the preset number of operation events so as to reproduce the path of the error.
2. An apparatus for error reproduction, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the reproduction information corresponding to the error of a user side from a server, wherein the reproduction information corresponding to the error is sent to the server when the error occurs to the user side, and the reproduction information corresponding to the error comprises an operation event when the error occurs to the user side and view change caused by the operation event; and
the reproduction module is used for triggering an operation event under the condition that the error occurs according to the reproduction information and reducing view change caused by the operation event so as to reproduce the error;
the error corresponding reproduction information comprises equipment information of the user side, an error stack and an error path, wherein the error stack comprises one or more error information, and the error path comprises the type, the position and the document change information of the operation event;
the device is also for: and triggering a preset number of operation events of the user side before the error occurs in sequence according to the reproduction information, and reducing view changes caused by the preset number of operation events so as to reproduce the path of the error.
3. A system for error reproduction, comprising:
the user terminal is used for sending the reproduction information corresponding to the error of the user terminal, wherein the reproduction information corresponding to the error comprises an operation event and view change caused by the operation event when the error occurs to the user terminal;
the server is used for receiving the reproduction information corresponding to the error, which is sent when the error occurs at the user side; and
a reproduction side for performing the method of error reproduction according to any one of claims 1.
4. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1.
5. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1.
6. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1.
CN202011511110.6A 2020-12-18 2020-12-18 Error reproduction method, apparatus, system, device and storage medium Active CN112486847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511110.6A CN112486847B (en) 2020-12-18 2020-12-18 Error reproduction method, apparatus, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511110.6A CN112486847B (en) 2020-12-18 2020-12-18 Error reproduction method, apparatus, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN112486847A CN112486847A (en) 2021-03-12
CN112486847B true CN112486847B (en) 2024-03-08

Family

ID=74914913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511110.6A Active CN112486847B (en) 2020-12-18 2020-12-18 Error reproduction method, apparatus, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN112486847B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886015A (en) * 2014-02-20 2014-06-25 新浪网技术(中国)有限公司 Web server and page error feedback method based on webpage application
CN108108369A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 Common interface storehouse call error treating method and apparatus
CN109359007A (en) * 2018-09-30 2019-02-19 江苏满运软件科技有限公司 Processing method, system, electronic equipment and the storage medium of error log

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9189320B2 (en) * 2012-08-15 2015-11-17 International Business Machines Corporation Handling intermittent recurring errors in a network
US11947413B2 (en) * 2018-08-25 2024-04-02 International Business Machines Corporation Dynamic system log preprocessing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886015A (en) * 2014-02-20 2014-06-25 新浪网技术(中国)有限公司 Web server and page error feedback method based on webpage application
CN108108369A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 Common interface storehouse call error treating method and apparatus
CN109359007A (en) * 2018-09-30 2019-02-19 江苏满运软件科技有限公司 Processing method, system, electronic equipment and the storage medium of error log

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Short-term effects on temporal judgement: Sequential drivers of interval bisection and reproduction;Jordan J. Wehrman等;《Acta Psychologica》;20180430;全文 *
一种针对软错误的程序可靠性定量分析方法;徐建军;谭庆平;熊磊;叶俊;;电子学报;20110315(03);全文 *
基于XML的日志及错误处理模块的设计与实现;颜凌毅;张敬堂;吴素琴;;信息工程大学学报;20070330(01);全文 *

Also Published As

Publication number Publication date
CN112486847A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
EP4006731A1 (en) Method, apparatus, device, storage medium and computer program product for testing code
CN112527748B (en) Method, device, equipment and storage medium for analyzing user operation behavior
CN112069034B (en) Fast application exception handling method and device, electronic equipment and storage medium
JP7132999B2 (en) METHOD AND APPARATUS FOR VERIFYING OPERATIONAL STATE OF APPLICATION
CN113742174B (en) Cloud mobile phone application monitoring method and device, electronic equipment and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN108959508B (en) SQL data generation method and device
EP4160421A1 (en) Method and apparatus for obtaining browser running data, and storage medium
CN113515462B (en) Method, apparatus, device and storage medium for testing
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
CN112486847B (en) Error reproduction method, apparatus, system, device and storage medium
CN118093965A (en) Information processing method, device, equipment and storage medium
US11714508B2 (en) Accidental touch prevention method and apparatus, and storage medium
CN112148596B (en) Method and device for generating error reporting content of deep learning framework
CN111694686B (en) Processing method and device for abnormal service, electronic equipment and storage medium
CN115309730A (en) Data auditing method and device, electronic equipment and storage medium
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN114064817A (en) Data processing method and device, electronic equipment and storage medium
CN112835759A (en) Test data processing method and device, electronic equipment and storage medium
CN111176982A (en) Test interface generation method and device
CN111221723A (en) Test record generation method and device, storage medium and electronic equipment
US11934292B2 (en) Sampling object determination method, electronic device, and computer-readable storage medium
CN112328815B (en) Slide storage method and device
CN118611267A (en) A distribution network automation terminal online rate monitoring method, device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant