CN113377631A - User behavior backtracking method and device - Google Patents

User behavior backtracking method and device Download PDF

Info

Publication number
CN113377631A
CN113377631A CN202110572721.XA CN202110572721A CN113377631A CN 113377631 A CN113377631 A CN 113377631A CN 202110572721 A CN202110572721 A CN 202110572721A CN 113377631 A CN113377631 A CN 113377631A
Authority
CN
China
Prior art keywords
user behavior
backtracking
data
event
user
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
CN202110572721.XA
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.)
Beijing Ape Force Education Technology Co ltd
Original Assignee
Beijing Ape Force Education 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 Ape Force Education Technology Co ltd filed Critical Beijing Ape Force Education Technology Co ltd
Priority to CN202110572721.XA priority Critical patent/CN113377631A/en
Publication of CN113377631A publication Critical patent/CN113377631A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a user behavior backtracking method and device, relates to the technical field of data processing, and mainly solves the problem that in the current backtracking process of user behaviors by using an application snapshot mode, only the triggering effect of the user behaviors is simulated, the display content is limited, and the subsequent troubleshooting is influenced. The method comprises the following steps: when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the user behavior data is acquired when a user executes operation corresponding to the user behavior data; performing backtracking operation according to the user behavior data, wherein the backtracking operation is used for performing corresponding operation behaviors according to the user behavior data so as to simulate the user behaviors corresponding to the user behavior data; when backtracking operation is executed, target data corresponding to the backtracking operation is displayed, and the target data comprises effect information corresponding to user behaviors and operation codes corresponding to the user behaviors. The method and the device are used for the backtracking process of the user behavior.

Description

User behavior backtracking method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a backtracking method and device for user behaviors.
Background
In general, in order to solve problems occurring in the use of software or programs, development and maintenance personnel need to know the process of using software or programs by users in time, and the process is used as a basis for subsequently troubleshooting and solving problems. In this process, it is generally necessary to trace back the behavior of the user, and determine the cause of the problem of the software or program by observing the current behavior of the user, so as to find a corresponding solution based on the cause.
At present, when backtracking a user behavior, playback is often performed by using a snapshot application mode, that is, a current operation interface of a user is recorded and a corresponding effect is calculated to obtain snapshot data in a process that the user performs a corresponding operation, and when the user needs backtracking, the user is realized by playing the snapshot data recorded before. However, in practical applications, the existing backtracking by using an application snapshot usually lies in the playback of the effect of the operation form of the user, and because the display mode of the application snapshot is only to simulate the trigger effect of the user behavior, the problem is relatively limited, and the development and maintenance personnel are not facilitated to know the cause of the problem from the bottom layer of the code operation logic of the user behavior, so that the subsequent troubleshooting is influenced.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for backtracking a user behavior, and mainly aims to solve the problem that in the current backtracking of a user behavior by using an application snapshot method, only the trigger effect of the user behavior is simulated, and the display content is limited, thereby affecting the subsequent troubleshooting.
In order to solve the above technical problem, in a first aspect, the present invention provides a method for backtracking user behavior, including:
when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the user behavior data is acquired when a user executes an operation corresponding to the user behavior data, the backtracking instruction is issued by the user, and the backtracking instruction comprises indication information of a user behavior event needing backtracking;
performing a backtracking operation according to the user behavior data, wherein the backtracking operation is used for performing a corresponding operation behavior according to the user behavior data so as to simulate a user behavior corresponding to the user behavior data;
and when the backtracking operation is executed, displaying target data corresponding to the backtracking operation, wherein the target data comprises effect information corresponding to the user behavior and an operation code corresponding to the user behavior.
Optionally, the performing a backtracking operation according to the user behavior data includes:
determining a preset simulation container for executing the backtracking operation, wherein the preset simulation container is constructed based on a preset browser frame and is used for simulating an environment in which a user behavior corresponding to the user behavior data is executed;
and executing backtracking operation in the preset simulation container based on the user behavior data.
Optionally, the user behavior data at least comprises a user behavior event; the target data comprises effect data corresponding to an execution effect when a user behavior corresponding to the user behavior data is reproduced and code data corresponding to content of a code layer when the user behavior corresponding to the user behavior data is reproduced, wherein the effect data comprises an image, a video and an audio;
the executing backtracking operation based on the user behavior data in the preset simulation container comprises:
determining a backtracking starting point from the user behavior data according to the backtracking instruction, wherein the backtracking starting point corresponds to a user behavior event corresponding to the backtracking instruction in the user behavior data;
and executing simulation operation according to the backtracking starting point, wherein the simulation operation is used for sequentially executing each user behavior event from the user behavior event corresponding to the backtracking instruction according to trigger time.
Optionally, when the backtracking operation is executed, displaying target data corresponding to the backtracking operation includes:
when the simulation operation is executed, rendering the user behavior event to obtain corresponding effect data, wherein the effect data is used for restoring the effect of the user when the user executes the corresponding operation according to the user behavior data;
when the simulation operation is executed, acquiring a code corresponding to the user behavior event to obtain code data;
and associating the effect data with the code data according to the user behavior event to obtain the target data, and displaying the target data when the simulation operation is executed.
Optionally, the target data is displayed based on a preset interactive interface, and the method further includes:
receiving a modification instruction through a preset interactive interface, wherein the modification instruction is used for modifying the code data when the target data is suspended and displayed in the interactive interface;
and re-executing the simulation operation according to the code data modified by the modification instruction, and re-rendering the effect data corresponding to the modified code data.
Optionally, the executing the simulation operation according to the backtracking starting point includes:
determining a dispatching rule when a simulation operation is executed according to the triggering time of each user behavior event in the user behavior data, wherein the dispatching rule comprises a dispatching sequence of each user behavior event and a dispatching interval between the user behavior events of adjacent dispatching sequences;
executing a simulated dispatching operation according to the dispatching rule, wherein the simulated dispatching operation is used for controlling each user behavior event to be automatically triggered in sequence according to the dispatching rule;
and when the user behavior event is detected to be dispatched, executing corresponding simulation operation according to the user behavior event.
Optionally, when it is detected that the user behavior event is dispatched, executing a corresponding simulation operation according to the user behavior event, including:
determining event categories of the user behavior events, wherein the event categories comprise keyboard events, mouse events and window events;
and determining a corresponding simulation mode according to the event type, and executing simulation operation corresponding to the user behavior event according to the simulation mode.
Optionally, when it is detected that the user behavior event is dispatched, executing a corresponding simulated behavior according to the user behavior event includes:
if the user behavior event is determined to be a communication event, intercepting the communication event through a preset interception tool, wherein the communication event is an event that the user initiates a request to an external server on a target page and receives feedback data of the external server;
acquiring feedback backup data corresponding to the communication event from a mapping database according to the communication event and a preset mapping relation; the feedback backup data is data of feedback data backup sent by the external server when the user communicates with the external server based on the communication event, and the feedback backup data is acquired when the user communicates with the external server; the preset corresponding relation comprises the relation between each communication event and corresponding feedback backup data, and the mapping database at least comprises one feedback backup data;
and executing corresponding simulation operation according to the communication event and the feedback backup data.
Optionally, the executing a simulation operation according to the backtracking starting point includes:
calculating the playing time length of each user behavior event from the backtracking starting point, wherein the playing time length is the duration of the user behavior event when the user behavior event is played after being rendered into a corresponding effect;
setting an acquisition interval according to the playing time length, wherein the acquisition interval is smaller than the playing time length;
and when the simulation operation is executed according to the user behavior event corresponding to the backtracking starting point, sequentially acquiring subsequent events from the user behavior data according to the acquisition interval, wherein the subsequent events are the user behavior events after the user behavior events corresponding to the backtracking starting point are sequenced according to the trigger time.
Optionally, the user behavior event is provided with an event category, the backtracking instruction further includes a target range, and the target range is used for determining the user behavior event to be backtracked when the user backtracks from the user behavior data according to the event category;
when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the method comprises the following steps:
screening the user behavior data according to the target range, and obtaining screened first data, wherein the first data comprise user behavior events which accord with the target range in the backtracking instruction in the user behavior data;
the executing backtracking operation according to the user behavior data includes:
and executing the backtracking operation according to the first data.
In a second aspect, an embodiment of the present invention further provides a device for backtracking a user behavior, including:
the device comprises an acquisition unit, a judging unit and a control unit, wherein the acquisition unit is used for acquiring user behavior data according to a backtracking instruction when the backtracking instruction is detected, wherein the user behavior data is acquired when a user executes an operation corresponding to the user behavior data;
the execution unit is used for executing backtracking operation according to the user behavior data, wherein the backtracking operation is used for executing corresponding operation behaviors according to the user behavior data so as to simulate the user behaviors corresponding to the user behavior data;
and the display unit is used for displaying target data corresponding to the backtracking operation when the backtracking operation is executed, wherein the target data comprises effect information corresponding to the user behavior and an operation code corresponding to the user behavior.
In order to achieve the above object, according to a third aspect of the present invention, a storage medium is provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the backtracking method for user behavior according to any one of the above first aspects.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided an apparatus comprising at least one processor, and at least one memory connected with the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke the program instructions in the memory, and execute the backtracking method of the user behavior according to any one of the first aspect.
By means of the technical scheme, the user behavior backtracking method and the device provided by the invention have the advantages that in the existing user behavior backtracking process by using an application snapshot mode, only the triggering effect of the user behavior is simulated, and the display content is limited, so that the problem of subsequent fault removal is influenced. In the above scheme, the target data includes effect information corresponding to the user behavior and an operation code corresponding to the user behavior, and the backtracking operation is configured to execute a corresponding operation behavior according to the user behavior data so as to simulate the user behavior corresponding to the user behavior data, which ensures that the operation code corresponding to the operation behavior of the user can be displayed in a backtracking process, so that a developer and a maintainer can judge and analyze a fault based on the code of the current behavior of the user, and a conventional backtracking mode is only used for simulating the effect of the behavior, so that a related person can know the specific situation occurring at that time in a bottom layer code of the user behavior in the backtracking process, and subsequent fault removal is facilitated. Meanwhile, the backtracking operation process not only comprises the code information but also comprises the effect data of the user operation corresponding to the code information, so that the effect of the actual user operation behavior can be intuitively reflected without displaying the code layer in the backtracking process, the effect simulation of the user behavior at that time in the backtracking process is realized, personnel such as development and maintenance can more intuitively observe the effect of the user operation at that time and the condition of the code execution logic bottom layer in the fault removing process, and the display effect of the actual situation is more intuitive when the fault occurs. In addition, the user behavior data is acquired when the user executes the operation corresponding to the user behavior data, the backtracking instruction is issued by the user, the backtracking instruction comprises indication information of the user behavior event needing backtracking, namely after the user acquires the corresponding heating user behavior data when executing the operation behavior, the user behavior event needing backtracking can be selected based on the requirement of subsequent backtracking, so that the content needing backtracking can be selected based on the user instruction in the backtracking process, the controllability of the backtracking process is improved, and the user can conveniently backtrack according to the requirement.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of a backtracking method for user behavior according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an effect of the backtracking method for user behavior according to the embodiment of the present invention when executed;
fig. 3 is a block diagram illustrating a user behavior trace-back apparatus according to an embodiment of the present invention;
fig. 4 shows a block diagram of a device for backtracking of user behavior according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to solve the problem that in the process of backtracking a user behavior by using an application snapshot, only a trigger effect of the user behavior is simulated, and display contents are limited, so that subsequent troubleshooting is affected, an embodiment of the present invention provides a backtracking method for a user behavior, as shown in fig. 1, the method includes:
101. and when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction.
The user behavior data are acquired when a user executes an operation corresponding to the user behavior data, the backtracking instruction is issued by the user, and the backtracking instruction comprises indication information of a user behavior event needing backtracking.
In this embodiment, since the backtracking process requires the user to control, it is first determined whether backtracking is required, the detection mode is to detect the backtracking instruction, and when the backtracking instruction is detected, it can be determined that the user needs to perform backtracking.
Meanwhile, since the nature of backtracking is used to eliminate problems by re-deducing previous operations of the user and finding problems therefrom, it is necessary to acquire corresponding user behavior data of the user when performing previous user operations when detecting a backtracking instruction, so as to perform "replay" based on this.
It should be noted that, in the backtracking process, the development and maintenance personnel related to the software or the program may perform the backtracking, and the user behavior data may be stored in the cloud, that is, there may be a case where the cloud includes a large number of user behavior data of different users, and therefore, in this case, the process of acquiring the user behavior data in this step may be acquired based on a preset user identifier, so as to avoid a situation where a plurality of user behavior data are mixed up. Of course, the specific setting manner and process of the identification can be performed based on any prior art manner, and is not limited in detail herein.
102. And executing backtracking operation according to the user behavior data.
And the backtracking operation is used for executing corresponding operation behaviors according to the user behavior data so as to simulate the user behaviors corresponding to the user behavior data.
When the user behavior data is determined, a backtracking operation may be performed based on the user behavior data to "replay" the user behavior that was previously performed by the user. Specifically, in the backtracking process, the events corresponding to each user behavior data may be executed according to a time sequence, where the time sequence may be determined based on the time when the event corresponding to each user behavior is triggered.
At present, a conventional backtracking process is implemented by using a snapshot, for example, in an execution process, when user behaviors are collected, a corresponding effect code needs to be generated based on an effect formed by each current operation behavior of a user, and the effect code is obtained as a basis of a subsequent backtracking process. In the process of obtaining the effect code, actually, the effect code corresponding to the user behavior needs to be generated simultaneously in the device or system executing the user behavior, and therefore, in this process, calculation needs to be performed to determine the corresponding effect based on each behavior of the user, so that system resources of the system or device currently used by the user are inevitably occupied, for example, the usage rate of a processor and the memory occupancy rate are influenced, and thus, extra resource overhead exists, and the use experience of the user is influenced. The method of this embodiment is different from the method of this embodiment, and the essence of the method of this embodiment is that before the backtracking end that needs to backtrack performs one more time, the user performs the operation at the monitored end, that is, the backtracking process described in this embodiment re-performs the event or code corresponding to the operation behavior before the user performs one more time, so in this step, since the backtracking operation is performed when the user needs to backtrack, that is, the event or operation corresponding to each behavior of the user needs to be re-performed in the backtracking process, it is only necessary to occupy a certain overhead of system resources at the backtracking end in the backtracking process, and it is not necessary to occupy the system resources of the user at that time when the user behavior data is obtained, so that the backtracking process occupies the resources of the device or system during the backtracking process, and it is not necessary to affect the monitoring end that the user performs the operation behavior before, thereby improving the operation experience of the user at that time.
103. And when the backtracking operation is executed, displaying target data corresponding to the backtracking operation.
The target data comprises effect information corresponding to the user behaviors and operation codes corresponding to the user behaviors.
In the process of executing the backtracking operation, since an engineer or a developer who needs to additionally watch the backtracking process when executing each operation of the user knows the specific code execution situation and the operation situation in the user interface, the corresponding target data also needs to be displayed when executing the backtracking operation, and the target data includes the expected information corresponding to the user behavior and the operation code corresponding to the user behavior, that is, not only can the scenario "replay" of the user when executing the operation in the interface be realized in the backtracking operation execution process, but also the operation code in the corresponding code layer can be displayed, so that the backtracking process can intuitively display the effect of the specific scenario of the user when executing the operation in the previous period, and can also know the content in the code layer when executing the previous operation, and the problem troubleshooting based on the backtracking operation is convenient. For example, as shown in fig. 2, when the user behavior event 2 is "mouse moves to the page element B", when the simulation operation is executed in this step, the code corresponding to the user behavior event 2 is rendered into the corresponding user behavior effect (i.e., the movement track of the mouse from one end to the other end) by the rendering technique, that is, the track animation a corresponding to the mouse moves to the page element B is generated.
In an alternative embodiment, the performing a backtracking operation according to the user behavior data in the foregoing step 102 may include:
firstly, determining a preset simulation container for executing the backtracking operation, wherein the preset simulation container is constructed based on a preset browser frame and is used for simulating an environment in execution of user behaviors corresponding to the user behavior data;
and then, performing backtracking operation in the preset simulation container based on the user behavior data.
When performing the backtracking operation, in order to ensure that the environment of the execution process is consistent with the environment of the user operation behavior corresponding to the user behavior data, in this embodiment, the backtracking operation may be performed based on a preset simulation container, where the preset simulation container may be understood as an execution program constructed based on a browser kernel, and all operation behaviors during the backtracking operation are performed in the preset simulation container. In addition, in this embodiment, the preset simulation container may be implemented in an iframe frame based on a preset browser, and the iframe frame may be understood as a playback interface laid in a page form based on the browser.
Because the process of executing the simulation operation is carried out in the preset simulation container, the environment when the simulation operation is executed is ensured to be consistent with the environment of executing the operation behavior before the user, and the accuracy of the backtracking result is ensured. Meanwhile, the preset simulation container is constructed by utilizing the preset browser frame, so that the backtracking operation is executed without additionally using other software or programs, a special backtracking tool or software is not required to be developed, and the cost required during the backtracking operation is reduced.
In an alternative embodiment, the user behavior data comprises at least one user behavior event; the target data comprises effect data corresponding to an execution effect when a user behavior corresponding to the user behavior data is reproduced and code data corresponding to content of a code layer when the user behavior corresponding to the user behavior data is reproduced, wherein the effect data comprises an image, a video and an audio;
based on this, the performing, in the preset simulation container, a backtracking operation based on the user behavior data in the foregoing step may include:
firstly, determining a backtracking starting point from the user behavior data according to the backtracking instruction, wherein the backtracking starting point corresponds to a user behavior event corresponding to the backtracking instruction in the user behavior data;
and then, executing simulation operation according to the backtracking starting point, wherein the simulation operation is used for sequentially executing each user behavior event from the user behavior event corresponding to the backtracking instruction according to trigger time.
In this embodiment, the user behavior data is actually composed of user behavior events, so that the process of performing the backtracking operation is actually a process of performing one-to-one simulation on each user behavior event, and since the purpose of backtracking is to find the position and cause of a problem in the "replay" process of the user behavior, that is, in the backtracking process, it can be selected from which user behavior event the backtracking needs to be started, that is, the backtracking start point, according to the needs of the user.
After the backtracking starting point is determined, the simulation operation can be sequentially executed according to the sequence of the events based on the backtracking starting point, namely, the simulation operation is sequentially executed according to each user behavior event from the user behavior event corresponding to the backtracking starting point according to the triggering time.
For example, when the user behavior data includes: when the user behavior event 1 is "click page element a", the user behavior event 2 is "mouse move to page element B", and the user behavior event 3 is "input characters in page element B", and it is determined that the backtracking start point corresponds to the user behavior event 2, a specific process of executing the backtracking operation may be to execute a simulation operation from the user behavior event 2 to the user behavior event 3 to complete the simulation operation.
Because the backtracking process can be backtracked based on the backtracking starting point, the user behavior event when the backtracking is started can be selected according to the requirement when the user backtracks, the problem of time consumption caused by the integral backtracking from the beginning is avoided, and the backtracking process is more efficient. In addition, because the simulation operation is sequentially performed based on the trigger time, the execution sequence is ensured to be consistent with the sequence of the behaviors executed by the user before, the consistency of the backtracking effect and the previous user behavior effect is ensured, and the backtracking accuracy of the user behavior is ensured.
In an alternative embodiment, since during the execution of the backtracking operation, it is actually equivalent to re-deducing the previous operation behavior of the user, and in order to ensure that the behavior of the user at that time can be intuitively understood during the backtracking operation, the effect and the code of the corresponding behavior can be simultaneously displayed during the execution of the backtracking operation, so as to ensure that the operation behavior executed before the user and the information of the code level corresponding to each operation behavior are "re-played" during the backtracking operation, based on this, the displaying the target data corresponding to the backtracking operation during the execution of the backtracking operation in step 103 may include, when executing:
when the simulation operation is executed, rendering the user behavior event to obtain corresponding effect data, wherein the effect data is used for restoring the effect of the user when the user executes the corresponding operation according to the user behavior data;
when the simulation operation is executed, acquiring a code corresponding to the user behavior event to obtain code data;
and associating the effect data with the code data according to the user behavior event to obtain the target data, and displaying the target data when the simulation operation is executed. Because each behavior and code in the simulation operation process have a corresponding relationship, that is, a specific effect of the execution process corresponding to each behavior can be reflected, for example, when a user executes the operation of mouse movement, the effect of mouse movement needs to be simulated in the simulation operation process, and the effect is actually obtained by synchronous rendering when the simulation operation executes the corresponding event or code, so that a corresponding association relationship exists between each behavior, code and effect, and therefore, in this step, association is required based on each code data and effect data with the user behavior event, so that when the simulation operation is executed according to the user behavior event, the effect of simultaneously showing the corresponding code and action behavior in the simulation operation process can be realized. For example, in the process of executing the simulation operation, when the user behavior event 2 "mouse moves to the page element B" is executed, the code X corresponding to the user behavior event 2 may be associated with the track animation a corresponding to the mouse moving to the page element B, and the code X and the track animation a are displayed at the same time, so that a synchronous display effect of the image of the user behavior and the code of the user behavior in the backtracking operation process is achieved. Because the displayed codes and the corresponding images are displayed in the backtracking process, related development and maintenance personnel can know the condition of the code layer and the effect of the user in actual operation, faults or problems can be found accurately, and the troubleshooting efficiency is improved.
In an alternative embodiment, since an engineer or a developer may find a problem when a simulation operation is executed, and may need to pause the simulation operation being executed and adjust the current code in order to debug the problem, the target data in the foregoing embodiment may be displayed based on a preset interactive interface, and the method in the foregoing embodiment may further include, when executed:
firstly, receiving a modification instruction through a preset interactive interface, wherein the modification instruction is used for modifying the code data when the target data is suspended and displayed in the interactive interface;
and then, re-executing the simulation operation according to the code data modified by the modification instruction, and re-rendering the effect data corresponding to the modified code data.
Therefore, through the preset interactive interface, the effect of displaying the target data can be achieved, and the instructions sent by engineers or development and maintenance personnel can be received based on the preset interactive interface, so that when relevant personnel find problems in the backtracking process, backtracking is timely suspended, code data in the target data are directly modified and debugged through the preset interactive interface, and simulation operation is re-executed based on the debugged and modified codes, problems are timely found in the backtracking process, the effect of the codes is timely adjusted, and the timeliness of troubleshooting is guaranteed.
It should be noted that, in order to implement controllability of the backtracking process, in this embodiment, a backtracking control and corresponding buttons may be set in the preset interaction interface, where the buttons may include functional buttons such as start, pause, end, and fast forward, and meanwhile, in order to implement comparison between a current backtracked user behavior event in the backtracking process and the whole user behavior data, a corresponding progress bar may also be set to show a degree of the current backtracking progress.
In an alternative embodiment, in the foregoing step, the performing a simulation operation according to the backtracking starting point may include:
firstly, determining a dispatching rule when a simulation operation is executed according to the triggering time of each user behavior event in the user behavior data, wherein the dispatching rule comprises the dispatching sequence of each user behavior event and the dispatching interval between the user behavior events of adjacent dispatching sequences;
then, executing a simulated dispatching operation according to the dispatching rule, wherein the simulated dispatching operation is used for controlling each user behavior event to be automatically triggered in sequence according to the dispatching rule;
and finally, when the user behavior event is detected to be dispatched, executing corresponding simulation operation according to the user behavior event.
In this embodiment, because no user performs an operation in the backtracking process, but an operation behavior before the user needs to be simulated, that is, each user behavior event needs to be automatically triggered, in this embodiment, each user behavior event is dispatched according to a certain rule in a manner of simulating dispatch, that is, a dispatch rule is included in the dispatch rule, and the dispatch rule includes a dispatch sequence between each user behavior event and a dispatch interval between each user behavior event, so that a trigger sequence and interval of each user behavior event during actual operation of the user are simulated.
It should be noted that, in the process of executing the simulated dispatch, the adjustment may be performed based on the needs of the user during the backtracking, for example, when the backtracking needs to be executed quickly in the original execution time, for example, at 1.5 times of speed, and at this time, the control may be performed based on the simulated dispatch control instruction of the user, so as to improve the speed of the overall dispatch process, and further improve the efficiency of the entire backtracking process. In addition, in some cases, there may be a case that the user does not need to trace back some user behavior events, and here, a dedicated instruction may be set in the trace-back process to skip these user behavior events, thereby achieving the effect of "jumping" type fast forwarding.
In some embodiments, the performing, when it is detected that the user behavior event is dispatched, a corresponding simulation operation according to the user behavior event includes:
determining event categories of the user behavior events, wherein the event categories comprise keyboard events, mouse events and window events;
and determining a corresponding simulation mode according to the event type, and executing simulation operation corresponding to the user behavior event according to the simulation mode.
In the simulation operation process, the execution mode of each user behavior event is different, that is, a simulation mode suitable for the type of the user behavior event needs to be selected to execute the simulation operation according to the type of the user behavior event, wherein in the embodiment, the simulation operation mainly aims at a keyboard event, a mouse event and a window event, wherein the keyboard event can be understood as a related event input through a keyboard, the mouse event can be understood as a related event aiming at behaviors such as a track, a click, a drag, a scroll and the like of a mouse, and the window event can be understood as a related event aiming at adjustment of a window size of a page and the like.
Specifically, the user behavior event at least includes one of a click event, a scroll event, a mouse movement event, a mouse popup event, a keyboard input event, a cut event, a copy event, a paste event, and a focus event, and the mouse popup event is used to represent an image change generated at a target position when the mouse is moved to the target position.
And the mouse pops the window event, namely the hover effect. Actually, the hover effect generally means that when a user moves a mouse cursor to a certain page element, the page element triggers an additional page change, such as popping up a session box showing additional information, displaying a menu bar so that the user can select a click, and the like, but since the hover effect does not have a corresponding event, when the simulation operation corresponds to the hover effect, it is possible to determine whether the mouse moves and a specific position of the movement by monitoring the mouse event, and then determine a specific effect record of the hover effect of the user at that time, where the record includes but is not limited to subsequently popped up content and graphics thereof, and combine the event of the mouse movement and the effect shown by the page element when the mouse moves to the specific position, thereby implementing playback of the mouse popup event.
Through the process, simulation can be carried out according to corresponding simulation rules based on different events, so that the simulation operation can restore the current operation behavior of the user, particularly, for the situation that the conventional mode of a mouse popup event cannot separately detect the event, the reappearance function can be realized through the combination of other events and image effects, the effect of restoring the current operation behavior of the user to the maximum extent through backtracking operation is ensured, and the accuracy of the backtracking effect of the user behavior in the embodiment is ensured.
In some embodiments, since some previous operations of the user may be behaviors that are communicated with the outside, in the backtracking process, in order to ensure accuracy of the model operation, a simulation may be further performed based on communication data acquired in advance, and based on the foregoing step, when the user behavior event is detected to be dispatched, a corresponding simulation behavior is executed according to the user behavior event, including:
firstly, if the user behavior event is determined to be a communication event, intercepting the communication event through a preset interception tool, wherein the communication event is an event that the user initiates a request to an external server on a target page and receives feedback data of the external server;
then, feedback backup data corresponding to the communication event is acquired from a mapping database according to the communication event and a preset mapping relation; the feedback backup data is data of feedback data backup sent by the external server when the user communicates with the external server based on the communication event, and the feedback backup data is acquired when the user communicates with the external server; the preset corresponding relation comprises the relation between each communication event and corresponding feedback backup data, and the mapping database at least comprises one feedback backup data;
and finally, executing corresponding simulation operation according to the communication event and the feedback backup data.
The feedback backup data is data of feedback data backup sent by the external server when the user communicates with the external server based on the communication event, and the feedback backup data is backed up by the preset interception tool when the user communicates with the external server; the preset corresponding relation comprises the relation between each communication event and corresponding feedback backup data, and the mapping database at least comprises one feedback backup data.
Since the feedback backup data is actually backed up and saved together when the user behavior data is acquired, that is to say during the backtracking operation, when the request of the user for communicating with the outside is simulated again, the data does not need to be acquired from the external server which is requested by the user at the moment, but the data can be acquired from the mapping database which stores the feedback backup data, therefore, the backtracking method of the embodiment can realize the passing effect without the same network state as the user operates, that is, the external communication of the user at that time can be simulated without interaction with an external server, the dependence on the communication of an external third party is reduced, and the backtracking method is beneficial to realizing the backtracking function in a poor network or offline environment and ensuring the consistency with the effect of the previous operation behavior executed by the user in the backtracking process.
In some embodiments, said performing a simulation operation according to said backtracking origin comprises:
calculating the playing time length of each user behavior event from the backtracking starting point, wherein the playing time length is the duration of the user behavior event when the user behavior event is played after being rendered into a corresponding effect;
setting an acquisition interval according to the playing time length, wherein the acquisition interval is smaller than the playing time length;
and when the simulation operation is executed according to the user behavior event corresponding to the backtracking starting point, sequentially acquiring subsequent events from the user behavior data according to the acquisition interval, wherein the subsequent events are the user behavior events after the user behavior events corresponding to the backtracking starting point are sequenced according to the trigger time.
In the backtracking process, the obtaining interval can be determined based on the playing time of each user behavior event in the execution process, so that the corresponding subsequent events can be obtained in time when the user behavior event currently playing is obtained, the backtracking process can be smoother, the requirement of obtaining all subsequent user behavior events at one time is avoided, and the bandwidth pressure is reduced. Meanwhile, the method can also ensure that when the user backtracks the user behavior and the user behavior event which does not execute the simulation operation exists, the subsequent user behavior event is stopped to be acquired, so that the resource waste caused by acquiring the user behavior event is avoided in the backtracking process.
It should be noted that, in the embodiment of the present invention, the playing time duration may be determined based on an actual operation time duration of each user behavior event in the acquisition process, or may be determined based on a backtracking speed set when a backtracking instruction issued by a user is issued, for example, when the execution time duration of an event a is 3 seconds, if the backtracking speed determined in the backtracking instruction by the user is 1 time, the playing time durations of the event a are consistent for the execution time duration, and are still not 3 seconds; if the backtracking speed determined by the user in the backtracking instruction is 2 times, the playing time of the event a is 1.5 seconds.
In some embodiments, since not all types of user behavior events are required for the backtracking process, the user behavior event is provided with an event category, and the backtracking instruction further includes a target range, where the target range is used to determine, from the user behavior data, the user behavior event that needs to be backtracked when the user backtracks according to the event category;
when a backtracking instruction is detected in the foregoing step 101, acquiring user behavior data according to the backtracking instruction, including:
and screening the user behavior data according to the target range, and obtaining screened first data, wherein the first data comprises user behavior events which accord with the target range in the backtracking instruction in the user behavior data.
The step 102 of executing a backtracking operation according to the user behavior data includes: and executing the backtracking operation according to the first data.
In the embodiment, the user behavior data can be screened according to the target range, and the target range is determined according to the event type, so that the process of acquiring the user behavior events of the type which is not concerned by the user is avoided, the time required by the backtracking process is reduced, and the backtracking efficiency is improved. For example, when the user behavior events are divided into three types, namely a mouse event, a keyboard event and a window event, and the target range is the mouse event, the keyboard event and the window event are filtered in the process of acquiring the user behavior data, so that the other two types of events do not need to be executed in the subsequent backtracking process, the occupation of system resources is reduced, and the backtracking efficiency is improved. It should be noted that, in this embodiment, the type and the number of the types specifically included in the target range are not limited, and may be selected based on needs, but it is to be ensured that the target range is consistent with the category of the user behavior event set in the process of collecting the user behavior data.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a device for backtracking a user behavior, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes: an acquisition unit 31, an execution unit 32 and a presentation unit 33, wherein
The obtaining unit 31 may be configured to, when a backtracking instruction is detected, obtain user behavior data according to the backtracking instruction, where the user behavior data is obtained when a user performs an operation corresponding to the user behavior data;
an executing unit 32, configured to execute a backtracking operation according to the user behavior data acquired by the acquiring unit 31, where the backtracking operation may be configured to execute a corresponding operation behavior according to the user behavior data, so as to simulate a user behavior corresponding to the user behavior data;
the display unit 33 may be configured to display target data corresponding to the backtracking operation when the execution unit 32 executes the backtracking operation, where the target data includes effect information corresponding to the user behavior and an operation code corresponding to the user behavior.
By the above technical solutions, embodiments of the present invention provide a method and an apparatus for backtracking user behavior,
the method comprises the steps of obtaining user behavior data according to a backtracking instruction when the backtracking instruction is detected, executing backtracking operation according to the user behavior data, and displaying target data corresponding to the backtracking operation when the backtracking operation is executed, so that backtracking of the user behavior is realized. In the above scheme, the target data includes effect information corresponding to the user behavior and an operation code corresponding to the user behavior, and the backtracking operation is configured to execute a corresponding operation behavior according to the user behavior data so as to simulate the user behavior corresponding to the user behavior data, which ensures that the operation code corresponding to the operation behavior of the user can be displayed in a backtracking process, so that a developer and a maintainer can judge and analyze a fault based on the code of the current behavior of the user, and a conventional backtracking mode is only used for simulating the effect of the behavior, so that a related person can know the specific situation occurring at that time in a bottom layer code of the user behavior in the backtracking process, and subsequent fault removal is facilitated. Meanwhile, the backtracking operation process not only comprises the code information but also comprises the effect data of the user operation corresponding to the code information, so that the condition of the code layer can be displayed in the backtracking process, the image of the actual user operation behavior can be visually reflected, the image simulation of the user behavior in the backtracking process is realized, personnel such as development and maintenance can more visually observe the effect of the user operation in the time and the condition of the code execution logic bottom layer in the fault removing process, and the display effect of the actual condition in the fault occurrence process is more visual. In addition, the user behavior data is acquired when the user executes the operation corresponding to the user behavior data, the backtracking instruction is issued by the user, the backtracking instruction comprises indication information of the user behavior event needing backtracking, namely after the user acquires the corresponding heating user behavior data when executing the operation behavior, the user behavior event needing backtracking can be selected based on the requirement of subsequent backtracking, so that the content needing backtracking can be selected based on the user instruction in the backtracking process, the controllability of the backtracking process is improved, and the user can conveniently backtrack according to the requirement.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that the subsequent troubleshooting is influenced because the display content is limited because the triggering effect of the user behavior is only simulated in the process of backtracking the user behavior by using the application snapshot mode at present is solved by adjusting the kernel parameters.
An embodiment of the present invention provides a storage medium, on which a program is stored, where the program, when executed by a processor, implements the method for tracing back user behavior.
The embodiment of the invention provides a processor, which is used for running a program, wherein the backtracking method of user behaviors is executed when the program runs.
An embodiment of the present invention provides an apparatus 40, as shown in fig. 4, the apparatus includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor; the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call program instructions in the memory to execute the above-mentioned backtracking method of user behavior.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a flow management device: when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the user behavior data is acquired when a user executes an operation corresponding to the user behavior data, the backtracking instruction is issued by the user, and the backtracking instruction comprises indication information of a user behavior event needing backtracking; performing a backtracking operation according to the user behavior data, wherein the backtracking operation is used for performing a corresponding operation behavior according to the user behavior data so as to simulate a user behavior corresponding to the user behavior data; and when the backtracking operation is executed, displaying target data corresponding to the backtracking operation, wherein the target data comprises effect information corresponding to the user behavior and an operation code corresponding to the user behavior.
Further, the performing a backtracking operation according to the user behavior data includes:
determining a preset simulation container for executing the backtracking operation, wherein the preset simulation container is constructed based on a preset browser frame and is used for simulating an environment in which a user behavior corresponding to the user behavior data is executed;
and executing backtracking operation in the preset simulation container based on the user behavior data.
Further, the user behavior data at least comprises a user behavior event; the target data comprises effect data corresponding to an execution effect when a user behavior corresponding to the user behavior data is reproduced and code data corresponding to content of a code layer when the user behavior corresponding to the user behavior data is reproduced, wherein the effect data comprises an image, a video and an audio;
the executing backtracking operation based on the user behavior data in the preset simulation container comprises:
determining a backtracking starting point from the user behavior data according to the backtracking instruction, wherein the backtracking starting point corresponds to a user behavior event corresponding to the backtracking instruction in the user behavior data;
and executing simulation operation according to the backtracking starting point, wherein the simulation operation is used for sequentially executing each user behavior event from the user behavior event corresponding to the backtracking instruction according to trigger time.
Further, when the backtracking operation is executed, displaying target data corresponding to the backtracking operation includes:
when the simulation operation is executed, rendering the user behavior event to obtain corresponding effect data, wherein the effect data is used for restoring the effect of the user when the user executes the corresponding operation according to the user behavior data;
when the simulation operation is executed, acquiring a code corresponding to the user behavior event to obtain code data;
and associating the effect data with the code data according to the user behavior event to obtain the target data, and displaying the target data when the simulation operation is executed.
Further, the target data is displayed based on a preset interactive interface, and the method further includes:
receiving a modification instruction through a preset interactive interface, wherein the modification instruction is used for modifying the code data when the target data is suspended and displayed in the interactive interface;
and re-executing the simulation operation according to the code data modified by the modification instruction, and re-rendering the effect data corresponding to the modified code data.
Further, the executing the simulation operation according to the backtracking starting point includes:
determining a dispatching rule when a simulation operation is executed according to the triggering time of each user behavior event in the user behavior data, wherein the dispatching rule comprises a dispatching sequence of each user behavior event and a dispatching interval between the user behavior events of adjacent dispatching sequences;
executing a simulated dispatching operation according to the dispatching rule, wherein the simulated dispatching operation is used for controlling each user behavior event to be automatically triggered in sequence according to the dispatching rule;
and when the user behavior event is detected to be dispatched, executing corresponding simulation operation according to the user behavior event.
Further, when it is detected that the user behavior event is dispatched, executing a corresponding simulation operation according to the user behavior event, including:
determining event categories of the user behavior events, wherein the event categories comprise keyboard events, mouse events and window events;
and determining a corresponding simulation mode according to the event type, and executing simulation operation corresponding to the user behavior event according to the simulation mode.
Further, when it is detected that the user behavior event is dispatched, executing a corresponding simulation behavior according to the user behavior event includes:
if the user behavior event is determined to be a communication event, intercepting the communication event through a preset interception tool, wherein the communication event is an event that the user initiates a request to an external server on a target page and receives feedback data of the external server;
acquiring feedback backup data corresponding to the communication event from a mapping database according to the communication event and a preset mapping relation; the feedback backup data is data of feedback data backup sent by the external server when the user communicates with the external server based on the communication event, and the feedback backup data is acquired when the user communicates with the external server; the preset corresponding relation comprises the relation between each communication event and corresponding feedback backup data, and the mapping database at least comprises one feedback backup data;
and executing corresponding simulation operation according to the communication event and the feedback backup data.
Further, the executing a simulation operation according to the backtracking starting point includes:
calculating a play duration of each user behavior event from the backtracking start point, the play duration being a duration of the user behavior event when played after being rendered into a corresponding image;
setting an acquisition interval according to the playing time length, wherein the acquisition interval is smaller than the playing time length;
and when the simulation operation is executed according to the user behavior event corresponding to the backtracking starting point, sequentially acquiring subsequent events from the user behavior data according to the acquisition interval, wherein the subsequent events are the user behavior events after the user behavior events corresponding to the backtracking starting point are sequenced according to the trigger time.
Furthermore, the user behavior event is provided with an event category, the backtracking instruction further comprises a target range, and the target range is used for determining the user behavior event to be backtracked when the user backtracks from the user behavior data according to the event category;
when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the method comprises the following steps:
screening the user behavior data according to the target range, and obtaining screened first data, wherein the first data comprise user behavior events which accord with the target range in the backtracking instruction in the user behavior data;
the executing backtracking operation according to the user behavior data includes:
and executing the backtracking operation according to the first data.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable flow management apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable flow management apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (13)

1. A backtracking method for user behavior is characterized by comprising the following steps:
when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the user behavior data is acquired when a user executes an operation corresponding to the user behavior data, the backtracking instruction is issued by the user, and the backtracking instruction comprises indication information of a user behavior event needing backtracking;
performing backtracking operation according to the user behavior data so as to simulate the user behavior corresponding to the user behavior data, wherein the backtracking operation comprises operation behavior corresponding to the user behavior data;
and when the backtracking operation is executed, displaying target data corresponding to the backtracking operation, wherein the target data is used for reproducing the execution effect and the code content of the user behavior corresponding to the user behavior data.
2. The method of claim 1, wherein performing a backtracking operation based on the user behavior data comprises:
determining a preset simulation container for executing the backtracking operation, wherein the preset simulation container is constructed based on a preset browser frame and is used for simulating an environment in which a user behavior corresponding to the user behavior data is executed;
and executing backtracking operation in the preset simulation container based on the user behavior data.
3. The method of claim 2, wherein the user behavior data comprises at least one user behavior event; the target data comprises effect data corresponding to an execution effect when a user behavior corresponding to the user behavior data is reproduced and code data corresponding to content of a code layer when the user behavior corresponding to the user behavior data is reproduced, wherein the effect data comprises an image, a video and an audio;
the executing backtracking operation based on the user behavior data in the preset simulation container comprises:
determining a backtracking starting point from the user behavior data according to the backtracking instruction, wherein the backtracking starting point corresponds to a user behavior event corresponding to the backtracking instruction in the user behavior data;
and executing simulation operation according to the backtracking starting point, wherein the simulation operation is used for sequentially executing each user behavior event from the user behavior event corresponding to the backtracking instruction according to trigger time.
4. The method according to claim 3, wherein the displaying target data corresponding to the backtracking operation when the backtracking operation is performed comprises:
when the simulation operation is executed, rendering the user behavior event to obtain corresponding effect data, wherein the effect data is used for restoring the effect of the user when the user executes the corresponding operation according to the user behavior data;
when the simulation operation is executed, acquiring a code corresponding to the user behavior event to obtain code data;
and associating the effect data with the code data according to the user behavior event to obtain the target data, and displaying the target data when the simulation operation is executed.
5. The method of claim 4, wherein the target data is presented based on a preset interactive interface, the method further comprising:
receiving a modification instruction through a preset interactive interface, wherein the modification instruction is used for modifying the code data when the target data is suspended and displayed in the interactive interface;
and re-executing the simulation operation according to the code data modified by the modification instruction, and re-rendering the effect data corresponding to the modified code data.
6. The method of claim 3, wherein said performing a simulation operation according to said backtracking origin comprises:
determining a dispatching rule when a simulation operation is executed according to the triggering time of each user behavior event in the user behavior data, wherein the dispatching rule comprises a dispatching sequence of each user behavior event and a dispatching interval between the user behavior events of adjacent dispatching sequences;
executing a simulated dispatching operation according to the dispatching rule, wherein the simulated dispatching operation is used for controlling each user behavior event to be automatically triggered in sequence according to the dispatching rule;
and when the user behavior event is detected to be dispatched, executing corresponding simulation operation according to the user behavior event.
7. The method of claim 6, wherein when the user behavior event is detected to be dispatched, performing a corresponding simulation operation according to the user behavior event comprises:
determining event categories of the user behavior events, wherein the event categories comprise keyboard events, mouse events and window events;
and determining a corresponding simulation mode according to the event type, and executing simulation operation corresponding to the user behavior event according to the simulation mode.
8. The method of claim 6, wherein the performing the corresponding simulated behavior according to the user behavior event when the user behavior event is detected to be dispatched comprises:
if the user behavior event is determined to be a communication event, intercepting the communication event through a preset interception tool, wherein the communication event is an event that the user initiates a request to an external server on a target page and receives feedback data of the external server;
acquiring feedback backup data corresponding to the communication event from a mapping database according to the communication event and a preset mapping relation; the feedback backup data is data of feedback data backup sent by the external server when the user communicates with the external server based on the communication event, and the feedback backup data is acquired when the user communicates with the external server; the preset corresponding relation comprises the relation between each communication event and corresponding feedback backup data, and the mapping database at least comprises one feedback backup data;
and executing corresponding simulation operation according to the communication event and the feedback backup data.
9. The method of claim 3, wherein said performing a simulation operation based on said backtracking origin comprises:
calculating the playing time length of each user behavior event from the backtracking starting point, wherein the playing time length is the duration of the user behavior event when the user behavior event is played after being rendered into a corresponding effect;
setting an acquisition interval according to the playing time length, wherein the acquisition interval is smaller than the playing time length;
and when the simulation operation is executed according to the user behavior event corresponding to the backtracking starting point, sequentially acquiring subsequent events from the user behavior data according to the acquisition interval, wherein the subsequent events are the user behavior events after the user behavior events corresponding to the backtracking starting point are sequenced according to the trigger time.
10. The method according to any one of claims 1 to 9, wherein the user behavior event is provided with an event category, and the backtracking instruction further comprises a target range, wherein the target range is used for determining the user behavior event to be backtracked when the user backtracks from the user behavior data according to the event category;
when a backtracking instruction is detected, acquiring user behavior data according to the backtracking instruction, wherein the method comprises the following steps:
screening the user behavior data according to the target range, and obtaining screened first data, wherein the first data comprise user behavior events which accord with the target range in the backtracking instruction in the user behavior data;
the executing backtracking operation according to the user behavior data includes:
and executing the backtracking operation according to the first data.
11. A device for backtracking user behavior, comprising:
the device comprises an acquisition unit, a judging unit and a control unit, wherein the acquisition unit is used for acquiring user behavior data according to a backtracking instruction when the backtracking instruction is detected, wherein the user behavior data is acquired when a user executes an operation corresponding to the user behavior data;
the execution unit is used for executing backtracking operation according to the user behavior data, wherein the backtracking operation is used for executing corresponding operation behaviors according to the user behavior data so as to simulate the user behaviors corresponding to the user behavior data;
and the display unit is used for displaying target data corresponding to the backtracking operation when the backtracking operation is executed, wherein the target data comprises effect information corresponding to the user behavior and an operation code corresponding to the user behavior.
12. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the backtracking method of user behavior according to any one of claims 1 to 10.
13. An apparatus comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory and executing the backtracking method of the user behavior according to any one of the claims 1 to 10.
CN202110572721.XA 2021-05-25 2021-05-25 User behavior backtracking method and device Pending CN113377631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110572721.XA CN113377631A (en) 2021-05-25 2021-05-25 User behavior backtracking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110572721.XA CN113377631A (en) 2021-05-25 2021-05-25 User behavior backtracking method and device

Publications (1)

Publication Number Publication Date
CN113377631A true CN113377631A (en) 2021-09-10

Family

ID=77571938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110572721.XA Pending CN113377631A (en) 2021-05-25 2021-05-25 User behavior backtracking method and device

Country Status (1)

Country Link
CN (1) CN113377631A (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345937A (en) * 2008-07-29 2009-01-14 宇龙计算机通信科技(深圳)有限公司 Method for recording and re-appearing hand-hold terminal action, and hand-hold terminal
CN101616153A (en) * 2009-07-02 2009-12-30 阿里巴巴集团控股有限公司 Interacting operation information mthods, systems and devices based on webpage
CN103902436A (en) * 2012-12-28 2014-07-02 百度在线网络技术(北京)有限公司 Method and device for restoring user access behaviors
US20150161087A1 (en) * 2013-12-09 2015-06-11 Justin Khoo System and method for dynamic imagery link synchronization and simulating rendering and behavior of content across a multi-client platform
CN104714948A (en) * 2013-12-11 2015-06-17 部落邦(北京)科技有限责任公司 Method, system and thermodynamic diagram display device for replaying user web page operation behavior
CN105389252A (en) * 2015-10-16 2016-03-09 华为技术有限公司 Method and device for feeding back test problem
US20180143809A1 (en) * 2016-11-21 2018-05-24 Sap Se Visual code editor for visually developing features in applications
CN108829693A (en) * 2018-04-13 2018-11-16 拉扎斯网络科技(上海)有限公司 Method and device for acquiring user access track and storage medium
CN109408345A (en) * 2018-09-25 2019-03-01 深圳壹账通智能科技有限公司 Operate replay method, device, computer equipment and storage medium
CN109446025A (en) * 2018-10-17 2019-03-08 北京字节跳动网络技术有限公司 A kind of back method of operation behavior, device, electronic equipment and readable medium
CN109561117A (en) * 2017-09-26 2019-04-02 北京国双科技有限公司 Collecting method and device
CN110096420A (en) * 2019-04-26 2019-08-06 上海上湖信息技术有限公司 A kind of data processing method, system and device
CN110149361A (en) * 2019-04-02 2019-08-20 众安信息技术服务有限公司 A kind of Internet service operating process retrogressive method, system and device
CN111459616A (en) * 2020-04-02 2020-07-28 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium
CN111475749A (en) * 2019-01-24 2020-07-31 北京字节跳动网络技术有限公司 Information display target optimization method and device, electronic equipment and readable medium
CN111506376A (en) * 2020-04-15 2020-08-07 北京字节跳动网络技术有限公司 Feedback information display method and device, readable medium and electronic equipment
CN111966428A (en) * 2020-08-21 2020-11-20 支付宝(杭州)信息技术有限公司 Page processing method and device and page backtracking method and device
CN112433923A (en) * 2020-10-27 2021-03-02 北京健康之家科技有限公司 Backtracking file generation method, backtracking method and equipment

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345937A (en) * 2008-07-29 2009-01-14 宇龙计算机通信科技(深圳)有限公司 Method for recording and re-appearing hand-hold terminal action, and hand-hold terminal
CN101616153A (en) * 2009-07-02 2009-12-30 阿里巴巴集团控股有限公司 Interacting operation information mthods, systems and devices based on webpage
CN103902436A (en) * 2012-12-28 2014-07-02 百度在线网络技术(北京)有限公司 Method and device for restoring user access behaviors
US20150161087A1 (en) * 2013-12-09 2015-06-11 Justin Khoo System and method for dynamic imagery link synchronization and simulating rendering and behavior of content across a multi-client platform
CN104714948A (en) * 2013-12-11 2015-06-17 部落邦(北京)科技有限责任公司 Method, system and thermodynamic diagram display device for replaying user web page operation behavior
CN105389252A (en) * 2015-10-16 2016-03-09 华为技术有限公司 Method and device for feeding back test problem
US20180143809A1 (en) * 2016-11-21 2018-05-24 Sap Se Visual code editor for visually developing features in applications
CN109561117A (en) * 2017-09-26 2019-04-02 北京国双科技有限公司 Collecting method and device
CN108829693A (en) * 2018-04-13 2018-11-16 拉扎斯网络科技(上海)有限公司 Method and device for acquiring user access track and storage medium
CN109408345A (en) * 2018-09-25 2019-03-01 深圳壹账通智能科技有限公司 Operate replay method, device, computer equipment and storage medium
CN109446025A (en) * 2018-10-17 2019-03-08 北京字节跳动网络技术有限公司 A kind of back method of operation behavior, device, electronic equipment and readable medium
CN111475749A (en) * 2019-01-24 2020-07-31 北京字节跳动网络技术有限公司 Information display target optimization method and device, electronic equipment and readable medium
CN110149361A (en) * 2019-04-02 2019-08-20 众安信息技术服务有限公司 A kind of Internet service operating process retrogressive method, system and device
CN110096420A (en) * 2019-04-26 2019-08-06 上海上湖信息技术有限公司 A kind of data processing method, system and device
CN111459616A (en) * 2020-04-02 2020-07-28 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium
CN111506376A (en) * 2020-04-15 2020-08-07 北京字节跳动网络技术有限公司 Feedback information display method and device, readable medium and electronic equipment
CN111966428A (en) * 2020-08-21 2020-11-20 支付宝(杭州)信息技术有限公司 Page processing method and device and page backtracking method and device
CN112433923A (en) * 2020-10-27 2021-03-02 北京健康之家科技有限公司 Backtracking file generation method, backtracking method and equipment

Similar Documents

Publication Publication Date Title
US9448908B2 (en) System and method for model based session management
US9747191B1 (en) Tool to replicate actions across devices in real time for improved efficiency during manual application testing
US8433733B2 (en) Web application record-replay system and method
US9904517B2 (en) System and method for automatic modeling of an application
US8645912B2 (en) System and method for use in replaying software application events
CN104572447B (en) Operation flow recording and replaying method and system based on Android operation system
US20110191676A1 (en) Cross-Browser Interactivity Recording, Playback, and Editing
CN111143200A (en) Method and device for recording and playing back touch event, storage medium and equipment
CN109254910A (en) A kind of test method of application program, device, electronic equipment and storage medium
WO2014117363A1 (en) Generating software test script from video
CN113868126A (en) Application debugging method, device and storage medium of equipment
CN108664380A (en) Software debugging system and adjustment method after a kind of execution shown with performance
US20240189724A1 (en) Videogame telemetry data and game asset tracker for session recordings
CN112346935A (en) Rendering time-consuming acquisition and display method, performance monitoring method, device and equipment
CN113987393A (en) Web page operation recorder, system, device and method
Havranek et al. V2s: A tool for translating video recordings of mobile app usages into replayable scenarios
CN112203042B (en) Cloud desktop operation response time testing method, system, equipment and medium
CN111708704A (en) Cloud real machine testing method and device, terminal and storage medium
CN113377631A (en) User behavior backtracking method and device
CN111104017B (en) Sliding positioning processing method and device
US11422696B2 (en) Representation of user interface interactive regions
CN110569184B (en) Test method and terminal equipment
CN112905449B (en) Target test method, device, equipment and storage medium
CN113377635A (en) User behavior backtracking method and device
CN109840203B (en) VR (virtual reality) automatic testing method based on message mapping

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