WO2021129335A1 - Operation monitoring method and apparatus, operation analysis method and apparatus - Google Patents

Operation monitoring method and apparatus, operation analysis method and apparatus Download PDF

Info

Publication number
WO2021129335A1
WO2021129335A1 PCT/CN2020/133429 CN2020133429W WO2021129335A1 WO 2021129335 A1 WO2021129335 A1 WO 2021129335A1 CN 2020133429 W CN2020133429 W CN 2020133429W WO 2021129335 A1 WO2021129335 A1 WO 2021129335A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
terminal
response
interface
application
Prior art date
Application number
PCT/CN2020/133429
Other languages
French (fr)
Chinese (zh)
Inventor
张�杰
叶锋
熊斐
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021129335A1 publication Critical patent/WO2021129335A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/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

Definitions

  • This application relates to the field of data processing technology, and in particular to an operation monitoring method and device, and an operation analysis method and device.
  • the application service provider may also analyze the operations generated by the user in the process of accessing the application, so as to improve the service performance of the application according to the analysis result.
  • this analysis process can only be analyzed based on the interface called when the application is executed in the background, and cannot reflect the operation performed by the user on the front-end interface of the application, so that the operation performed by the user on the front-end interface cannot be analyzed.
  • This application provides an operation monitoring method and device, and an operation analysis method and device, which can analyze operations performed by users on the front-end interface of an application program.
  • this application provides an operation monitoring method, which is applied to a terminal, and the method includes: when it is detected that the terminal displays an application program interface, recording the terminal's identity and the application's identity; when it is detected When the user performs an operation on the interface, the operation time of the operation and the operation information used to indicate the operation are recorded; the monitoring information is sent to the server, and the monitoring information includes the terminal identification, the application identification, the operation information and the operation time.
  • the monitoring information can be truly Reflects the operations performed by the user on the front-end interface of the application, so that the server can analyze the operations performed by the user in the interface according to the monitoring information, and can effectively ensure the accuracy of the analysis on the operations performed by the user in the interface.
  • the method further includes: when it is detected that the user performs an operation on the interface, generating an operation response to the operation; recording the response time for generating the operation response and the response used to indicate the operation response information.
  • the monitoring information also includes response information and response time.
  • the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation in the interface.
  • the type information is used to indicate what the operation input by the user is. According to the type information and the location information, it is possible to determine what operation the user performs in the terminal and the location where the operation takes effect in the interface of the application program.
  • the operation information may further include: configuration information used to instruct the terminal to display the interface and indication information used to indicate the type of information.
  • the indication information of a certain information is used to indicate that the information is operation information or response information.
  • the configuration information is used to indicate the display environment when the terminal displays the interface and the operation environment when the operation is performed.
  • the operation information also includes the configuration information, it can be convenient to simulate the display environment when the terminal displays the interface and when the operation is performed according to the configuration information. The operating environment to improve the accuracy of the simulation operation.
  • the monitoring information may also include information such as user identification, so that the server can more fully understand the operating environment when performing operations on the terminal.
  • the response information may include: the waiting time from the operating time of receiving the operation to the response time of generating the response, the indication information indicating the success or failure of the response, and the indication information indicating the information type.
  • the indication information is used to indicate that the information is operation information or response information.
  • the response information may further include: interface information of the application program interface that is called when the response is generated for the operation.
  • the interface information may be an identification of an application program interface.
  • the terminal may obtain the operation information used to indicate the operation in the following manner: obtain the operation information according to the parameters on which the application program generates the operation response to the operation. For example, the terminal may directly use the parameters on which the application program generates an operation response to the operation as operation information for indicating the operation.
  • the terminal can obtain the response information used to indicate the operation response in the following manner: after the terminal receives the operation performed on the interface, it detects the operation response to the operation, and when it detects the operation response When an operation generates an operation response, the response information used to indicate the response is recorded.
  • this application provides an operation analysis method, which is applied to a server, and the method includes: receiving a plurality of monitoring information sent by a terminal, and each monitoring information includes the identification of the terminal and the interface of the application displayed by the terminal.
  • the server receives the monitoring information sent by the terminal, generates the operation trajectory of the operation based on the monitoring information, and analyzes the operation performed by the user in the interface according to the operation trajectory, because the monitoring information Including the terminal identification, application identification, operation information and operation time, so that the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, and can ensure the analysis of the operation performed by the user in the interface Accuracy.
  • each monitoring information further includes: response information used to instruct the terminal to generate a response to the operation recorded by the monitoring information, and the time for generating the response.
  • generating the operation trace of the operation performed on the interface of the application program displayed on the terminal includes: generating the interface of the application program recorded by each monitoring information on the terminal according to the multiple monitoring information The process of performing the operations recorded by each monitoring information and responding according to the operations.
  • the method further includes: generating a script program according to the operation trajectory, and executing the script program to simulate the operation performed on the interface recorded in the operation trajectory; or, generating a script program according to the operation trajectory , Execute the script program to simulate the operation performed on the interface recorded in the operation track, and respond to the process according to the operation.
  • the application scenario is an application scenario for scene simulation of operations performed on the interface.
  • the server performs scene simulation on the operation recorded by the operation track of a certain terminal.
  • the server can learn the specific situation of each operation link in the process of realizing the operation on the terminal, and according to the operation. For specific conditions, perform analysis operations such as operating process auditing and operating fault location on the process of performing operations on the terminal.
  • the server can perform scenario simulations on the operations recorded by the operation traces of multiple terminals, simulate multiple terminals accessing the response server, and request the response server to provide real access to the corresponding terminal for business services. Process, and perform a performance test on the response server according to the simulated real access process.
  • the access process simulated by the scenario is closer to the real access process, it can more accurately reflect the specific conditions of the real access process, and the performance test results of the server based on the access process simulated by the scenario are closer to the real access process.
  • the access process has an impact on server performance.
  • the service performance of the response server is optimized according to the test result, the service performance of the server can be improved accurately and effectively.
  • the present application provides an operation monitoring device, the device includes: a recording module for recording the terminal's identity and the application's identity when it is detected that the terminal displays the interface of the application; the recording module also uses When it is detected that the user is performing an operation on the interface, it records the operation time of the operation and the operation information used to indicate the operation; the sending module is used to send monitoring information to the server, and the monitoring information includes the terminal's identification, the application's identification, Operating information and operating time.
  • the device further includes: a response module for generating an operation response to the operation when it is detected that the user performs an operation on the interface.
  • the recording module is also used to record the response time for generating the operation response and the response information used to indicate the operation response. Response information and response time when it is detected that the user performs an operation on the interface.
  • the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation on the interface.
  • the response information includes: interface information of an application program interface called when a response is generated for the operation.
  • the present application provides an operation analysis device.
  • the device includes: a receiving module for receiving a plurality of monitoring information sent by the terminal, each monitoring information including the identification of the terminal and the interface of the application displayed by the terminal belongs to The identification of the application, the operation time of the operation performed by the user on the interface, and the operation information used to indicate the operation; the generating module is used to generate the operation performed on the interface of the application displayed on the terminal according to multiple monitoring information Operation trajectory, the operation trajectory is recorded according to the operation time of each operation.
  • the device further includes: a processing module for generating a script program according to the operation trajectory;
  • the processing module is used to execute the script program to simulate the operation performed on the interface recorded in the operation track.
  • each monitoring information further includes: response information used to indicate the response generated by the terminal to the operation recorded by the monitoring information, and the time for generating the response.
  • the operation track also includes response information and response time.
  • the present application provides a computing device that includes a processor and a memory; a computer program is stored in the memory; when the processor executes the computer program, the computing device implements the operation monitoring method provided in the first aspect.
  • this application also provides another computing device, which includes a processor and a memory; the memory stores a computer program; when the processor executes the computer program, the computing device implements the operation analysis method provided in the second aspect.
  • the present application provides a non-volatile storage medium, which implements the operation monitoring method provided in the first aspect when the instructions in the storage medium are executed by the processor.
  • this application also provides another non-volatile storage medium, which implements the operation analysis method provided in the second aspect when the instructions in the storage medium are executed by the processor.
  • Figure 1 is a schematic diagram of an application scenario involved in an embodiment of the present application
  • FIG. 2 is a flowchart of an operation monitoring method provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of an operation analysis method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an operation monitoring device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another operation monitoring device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an operation analysis device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another operation analysis device provided by an embodiment of the present application.
  • Fig. 1 is a schematic diagram of an application scenario involved in an embodiment of the present application.
  • the application scenario includes: a terminal 10 and a server 11.
  • a communication connection is established between the terminal 10 and the server 11 through a wired or wireless network.
  • the terminal 10 may be a computer, a personal computer, a cloud host, a portable mobile terminal 10, a multimedia player, an e-book reader or a wearable device, etc.
  • the server 11 may be a server 11, or a server 11 cluster composed of several servers 11, or a cloud computing service center.
  • An application program may be installed in the terminal 10.
  • the terminal 10 can display an interface of an application program, receive operations performed by a user on the interface, and execute the operation monitoring method provided in the embodiments of the present application. For example, when it is detected that the terminal 10 displays the interface of an application program, the terminal 10 may record the identification of the terminal 10 and the identification of the application. In addition, when an operation performed by the user on the interface of the application program is detected, the terminal 10 can record the operation time of the operation and the operation information used to indicate the operation, and include the identification of the terminal 10 and the application information. The monitoring information of the identification, operation time and operation information is sent to the server 11.
  • the server 11 is configured to execute the operation analysis method provided in the embodiment of the present application.
  • the server 11 may receive the monitoring information sent by the terminal 10, and based on the multiple monitoring information, generate a process of executing the operations recorded by the multiple monitoring information on the interface of the application displayed on the terminal 10.
  • the server 11 may also generate a script program according to the generated operation track, and execute the script program to simulate the operation performed on the interface recorded in the operation track, so as to perform operation analysis on the operation performed on the interface.
  • the monitoring information includes information such as operation information and operation time used to indicate the operation performed by the user on the interface, and the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, it is generated based on the monitoring information
  • the operation trajectory of can truly reflect the operation performed by the user in the interface.
  • the terminal 10 includes a first processor 101, a first communication interface 102 and a first memory 103.
  • the first processor 101, the first communication interface 102, and the first memory 103 are connected to each other through a first bus 104.
  • the server 11 includes a second processor 111, a second communication interface 112 and a second memory 113.
  • the second processor 111, the second communication interface 112, and the second memory 113 are connected to each other through a second bus 114.
  • Both the first memory 103 and the second memory 113 are used to store computer programs.
  • the computer program may be an application program, and when the processor calls the application program in the corresponding memory, the function of the application program can be realized.
  • the terminal 10 can implement the operation monitoring method provided in the embodiment of the present application.
  • the server 11 can implement the operation analysis method provided in the embodiment of the present application.
  • any one of the first bus 104 and the second bus 114 can be divided into an address bus, a data bus, a control bus, and the like.
  • address bus a data bus
  • control bus a control bus
  • any one of the first bus 104 and the second bus 114 can be divided into an address bus, a data bus, a control bus, and the like.
  • thick line is used in FIG. 1, but it does not mean that there is only one bus or one type of bus.
  • any one of the first processor 101 and the second processor 111 may be a hardware chip, and the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
  • CPLD complex programmable logic device
  • FPGA field-programmable gate array
  • GAL generic array logic
  • it may also be a general-purpose processor, for example, a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
  • the first memory 103 and the second memory 113 may include volatile memory (volatile memory), such as random-access memory (RAM); and may also include non-volatile memory (non-volatile memory). Volatile memory, such as flash memory, hard disk drive (HDD), or solid-state drive (SSD); it may also include a combination of the above types of memory.
  • volatile memory such as random-access memory (RAM)
  • non-volatile memory non-volatile memory
  • Volatile memory such as flash memory, hard disk drive (HDD), or solid-state drive (SSD); it may also include a combination of the above types of memory.
  • the operation analysis method provided in the embodiment of the present application may also be executed by a virtual machine, or partly executed by the server 11 and partly executed by a virtual machine, which is not specifically limited by the embodiment of the present application.
  • the server 11 may receive a plurality of monitoring information sent by the terminal 10, and based on the plurality of monitoring information, generate an operation track of the operation performed on the interface of the application program displayed on the terminal 10.
  • the virtual machine can analyze the operation indicated by the operation information in the multiple monitoring information according to the operation track.
  • Fig. 2 is a flowchart of an operation monitoring method provided by an embodiment of the application. As shown in Figure 2, the method may include the following steps:
  • Step 201 The terminal receives a designated operation for instructing to display the interface of the application program input by the user, and displays the interface of the application program in the terminal according to the designated operation.
  • the terminal can display the interface of the application on the display screen of the terminal according to the designated operation.
  • Step 202 When it is detected that the terminal displays the interface of the application program, the terminal obtains and records the identification of the terminal and the identification of the application program.
  • An information acquisition application is preset in the terminal.
  • the information acquisition application can detect whether the terminal is displaying the interface of the application.
  • the information acquisition application program can acquire and record the terminal's identification and the application's identification.
  • the terminal can execute information acquisition applications for one or more applications installed in the terminal that require monitoring operations. That is, when the terminal displays the interface of any application program that requires monitoring operations, the terminal can obtain the identification of the terminal and the identification of the application through the information acquisition application.
  • an information acquisition application can be embedded in each application that requires monitoring operations, so that the terminal can display the interface of any application that requires monitoring operations
  • the application acquires the identification and other information of the application.
  • the method for obtaining the identification of the terminal by the terminal may be as follows: the information obtaining application obtains the identification number of the designated hardware or the identification number of the designated software in the terminal, and uses part or all of the identification number as the identification of the terminal.
  • the information acquisition application can acquire the serial number of the central processing unit (CPU) used by the terminal, and use part or all of the serial number as the terminal's identification.
  • the information acquisition application can acquire the universally unique identifier (UUID) of the terminal, and use part or all of the UUID as the terminal's identification.
  • the information acquisition application may acquire the serial number of the operating system used by the terminal, and use part or all of the serial number of the operating system as the terminal's identification.
  • the information acquisition application can also process the identification number of the specified hardware or the identification number of the specified software, and use the processed identification number as the identification of the terminal.
  • the information acquisition application can intercept the last 10 digits of the serial number of the central processing unit used by the terminal, and add 5 random numbers to the last 10 digits of the serial number, and the last 10 digits of the serial number and its end are added
  • the digital sequence composed of 5 random numbers is the identification of the terminal.
  • the identification of the application program may be a randomly generated number with a designated total number of digits.
  • the way for the terminal to obtain the identification of the application program can be implemented as follows: when the information acquisition application detects that the terminal displays the interface of the application program, it generates a random number with a designated total number of bits, and determines the random number of the designated total number of bits Is the identity of the application.
  • the total number of digits of the identification of the terminal and the total number of digits of the identification of the application program can be determined according to application requirements, which are not specifically limited in the embodiment of the present application.
  • the total number of digits of the identification of the terminal may be 128 bits
  • the total number of digits of the identification of the application program may be 10 bits.
  • Step 203 When it is detected that the user performs an operation on the interface, the terminal acquires and records the operation time of the operation and the operation information used to indicate the operation.
  • the terminal may use the information acquisition application program preset in the terminal to acquire and record the operation time and operation information. Moreover, since the terminal responds to the operation after receiving the operation performed by the user in the interface, and the reaction is generated by the terminal according to the relevant parameters of the detected operation, the terminal obtains the relevant information of the operation After the parameters, the information obtaining application can obtain the relevant parameters, and obtain the operation time and operation information according to the relevant parameters. Alternatively, the information acquisition application can also determine the response time and response information based on the detected response when it detects a response to the operation.
  • the setting method of the information acquisition application used in step 203 may refer to the setting method of the information acquisition application in step 202 accordingly.
  • the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation in the interface.
  • the type information is used to indicate what the operation input by the user is. According to the type information and the location information, it is possible to determine what operation the user performs in the terminal and the location where the operation takes effect in the interface of the application program.
  • the type information of the operation type can indicate that the operation is a click operation of the left mouse button, a double click operation of the left mouse button, a right mouse click operation, a double click operation of the right mouse button, a wheel operation of the mouse, or an input operation of a key on the keyboard Wait.
  • a coordinate system may be preset in the terminal, and the abscissa and ordinate of the position where the operation acts on the interface can be determined according to the coordinate system, and the abscissa and the ordinate may be used to represent the position information.
  • the type information is used to indicate the operation in which the keyboard input the key code "M”.
  • Information is used to indicate the position of the cursor.
  • the type information is used to indicate the operation of clicking the left button of the mouse, and the position information is used to indicate the operation. A certain location.
  • the operation information may also include: configuration information used to instruct the terminal to display the interface and indication information used to indicate the type of information.
  • the indication information is used to indicate that the information is operation information or response information.
  • the configuration information includes: terminal configuration information and application configuration information.
  • the configuration information of the terminal may include information such as the resolution of the terminal, the internet protocol (IP) address of the terminal, the network type used by the terminal, and the operating system used by the terminal.
  • the configuration information of the application may include: type information of the application, version information of the application, and display resolution of the application.
  • the configuration information used to indicate the terminal display interface is used to indicate the display environment when the terminal displays the interface and the operation environment when the operation is performed.
  • the operation information also includes the configuration information
  • Time display environment and operating environment when performing operations can be determined according to the IP address of the terminal, and the network provider of the network used by the terminal when generating a response based on the operation, as well as information such as the network bandwidth, can be determined.
  • the monitoring information may also include information such as user identification, so that the server can more fully understand the operating environment when performing operations on the terminal.
  • the configuration information of the terminal may include: the resolution of the terminal is 1920 ⁇ 1080, the network used by the terminal is the network provided by the AA network operator, and the operating system used by the terminal is the Windows 10 system.
  • the configuration information of the application program may include: the type of the application program is a network service class (such as a browser), the version information of the application program is Version 7.0.9, and the display resolution of the application program is 1920 ⁇ 1080.
  • Step 204 The terminal generates an operation response to the operation according to the operation information and interface.
  • the terminal After detecting that the user performs an operation on the interface, the terminal can determine the function that the user wants to implement when the operation is performed based on the operation information of the operation and the content of the interface, and generate an operation response to the operation, so as to realize the user's desire.
  • the operation response generated by the terminal according to the operation refers to the reaction generated by the terminal according to the operation after the terminal receives the operation.
  • the operation response generated by the terminal to the operation may be to generate an operation request, which is used to request a response
  • the server provides the terminal with services required to implement the function indicated by the operation, and sends the operation request to the response server.
  • the operation request may be an application programming interface (API) call request.
  • API application programming interface
  • the operation response generated by the terminal to the operation is to generate an API call request for a series of services such as authentication provided by the request response server, and send the API call request to the response server.
  • the operation response generated by the terminal to the operation is that the terminal executes the function indicated by the operation. For example, suppose that the operation performed by the user in the interface of a word processing application is to select part of the text and instruct to highlight the part of the text. Since the terminal itself can realize the function of highlighting the text, it can determine the operation response of the terminal to the operation To highlight this part of the text.
  • Step 205 When detecting that an operation response is generated to the operation, the terminal obtains and records the response time for generating the operation response and the response information used to indicate the operation response.
  • the terminal may use the information acquisition application program preset in the terminal to acquire and record the response time and response information.
  • the generated response needs to be executed by the component in the terminal, and the component is executed according to the corresponding indicator parameter. Therefore, the information acquisition application can determine the response information according to the indicator parameter .
  • the time when the component executes the response is the response time. Therefore, the time when the information acquisition application detects that the operation response to the operation is generated is the response time.
  • the setting method of the information acquisition application adopted in step 205 reference may be made to the setting method of the information acquisition application in step 202 accordingly.
  • the response information may include: the waiting time from the operating time of receiving the operation to the response time of generating the response, the indication information indicating the success or failure of the response, and the indication information indicating the type of information, etc.
  • the indication information is used to indicate that the information is operation information or response information.
  • the response information may also include: interface information of the application program interface requested to be called when the response is generated for the operation.
  • the interface information may be an application program interface identification (API ID).
  • step 204 and step 205 are optional steps.
  • the terminal may also obtain operation information and response information in a sampling manner.
  • the operation information may also include the sampling frequency when the terminal obtains the operation information
  • the response information may also include the sampling frequency when the terminal obtains the operation information.
  • Step 206 The terminal sends monitoring information to the server.
  • the monitoring information includes: the identification of the terminal, the identification of the application, the operation information, and the operation time.
  • the terminal may send monitoring information including the terminal's identification, the application's identification, operation information, and operation time to the server.
  • the monitoring information may further include: response information and response time.
  • the process of the terminal sending the monitoring information to the server includes: the terminal sending the monitoring information including the terminal's identification, the application's identification, operation information, operation time, response information, and response time to the server.
  • the monitoring information includes a variety of information
  • the timing for the terminal to send monitoring information to the server can also be determined according to actual needs. For example, the terminal can send monitoring information to the server in real time, that is, each time the terminal obtains a type of information, it can send the information to the server. Alternatively, the terminal may periodically send the monitoring information to the server, that is, after each information collection period, the terminal may send the monitoring information acquired during the information collection period to the server.
  • the terminal may also generate a check code, and send the check code to the server when sending monitoring information to the server.
  • the verification code is used to check whether the monitoring information has been tampered with, so as to ensure the accuracy of the monitoring information.
  • the server after the server receives the monitoring information and the check code, it can generate the check code based on the monitoring information according to the check method agreed with the terminal in advance, and compare the check code generated by the server with the check code sent by the terminal.
  • the monitoring information including the terminal identification, application identification, operation information, and operation time is recorded, and the monitoring information is sent to the server.
  • the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, so that the server can analyze the operation performed by the user in the interface according to the monitoring information, and can effectively ensure the analysis of the operation performed by the user in the interface Accuracy.
  • FIG. 3 is a flowchart of an operation analysis method provided by an embodiment of the application. As shown in Figure 3, the method may include the following steps:
  • Step 301 The server receives multiple monitoring information sent by the terminal.
  • Each monitoring information includes at least the identification of the terminal, the identification of the application to which the interface of the application displayed by the terminal belongs, the operation time of the operation performed by the user on the interface, and The operation information used to indicate the operation.
  • each monitoring information may further include: response time for generating a response to the operation information and response information for indicating the generated response.
  • the server can preprocess the monitoring information first, and then store the preprocessed monitoring information for subsequent use. For example, after the server receives a data stream that includes multiple monitoring information, it can use the message processing module in the server to perform message processing on the data stream, and then use the stream processing module in the server to perform data filtering on the monitoring information that has undergone message processing. Stream processing operations such as data verification and data classification, and then store the monitoring information after stream processing operations in the database. In addition, when the data verification result indicates that the monitoring information has been tampered with, the alarm module in the server can send out alarm information.
  • the server may also be provided with a storage module and a management module, the storage module is used to store the original data of multiple monitoring information received from the terminal, and the management module is used to manage each module in the server.
  • the message processing module may be a Kafka (kafka) message processing system, and the database may be a time series database (tsdb).
  • Step 302 The server generates an operation track of the operation performed on the interface displayed on the terminal according to the multiple monitoring information.
  • the server may generate an operation track for performing operations recorded by multiple monitoring information on the interface displayed by the terminal according to the multiple monitoring information, in the order of the operation time of the operation recorded in the different monitoring information from morning to evening.
  • the multiple monitoring information can be screened according to a specified screening strategy first, and then an operation track can be generated based on the screened monitoring information.
  • the designated strategy may be determined according to the analysis purpose of the subsequent analysis of the operation behavior. For example, when it is necessary to analyze the user's operation behavior when the terminal runs the same application program, the server can filter the monitoring information carrying the identity of the same application program in the terminal, and generate an operation track based on the monitoring information carrying the same application program.
  • the server when the server receives multiple monitoring information sent by multiple terminals and needs to analyze the operation behavior performed in the same terminal, it can filter the monitoring information that carries the identity of the same terminal in the terminal, and according to the information carried The monitoring information of the identity of the same terminal generates an operation track.
  • the operation track can be regarded as executing the corresponding monitoring information recorded in the interface of the application that displays multiple monitoring information records on the terminal.
  • the sequential description of the process of operation when the monitoring information also includes: terminal identification, application identification, operation information, operation time, response information, and response time, the operation track can be regarded as an interface that displays multiple monitoring information records on the terminal. The sequential description of the process of performing operations in each interface and responding to each operation.
  • Table 1 shows multiple monitoring information obtained by the terminal after the user whose user ID is XP-0012738 performs an operation in the terminal.
  • Each monitoring information includes: the identification of the terminal, the identification of the application, the operation time and operation information of the performed operation, and the response information and response time of the response generated by the terminal according to the operation. They are explained separately as follows:
  • the terminal When the user needs the terminal to display the interface of a certain application program, he can perform a designated operation. After the terminal receives the designated operation, the terminal displays the interface of the application program on the display screen according to the designated operation. At this time, the terminal can acquire and record the terminal's identifier as 191191919...182783 (not shown in Table 1) and the identifier of the application program (not shown in Table 1). When the terminal detects that the user clicks the "remote connection" button in the interface with the mouse at 20:29:17, the terminal can determine the position of the mouse click operation in the interface as "remote connection" is displayed in the interface The location of the button.
  • the terminal acquires and records the operation information used to indicate the operation (called the first operation information for easy distinction) as the mouse click "remote connection", and the operation time is 20:29:17 .
  • the function of "remote connection” is to establish a remote connection between the terminal and the remote console.
  • the terminal After the terminal receives the operation of clicking the "remote connection” button with the mouse, the terminal can display the uniform resource locator (URL) address according to the operation as http://in**an.ua**ei.com/ c**b/bus**ns console page, and the terminal displays the page jump to the console page at 20:29:20.
  • the terminal's jump to display the console page can be regarded as the operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for the convenience of distinction, it is called the first operation response).
  • the terminal After the terminal generates the first operation response, as shown in Table 1, the terminal acquires and records that the response time of the first operation response is 20:29:20, and the first response information used to indicate the first operation response is:
  • the page jumps to the console page with the URL address http://in**an.ua**ei.com/c**b/bus**ns.
  • the terminal in order to establish a remote connection, the terminal also needs to obtain the URL address of the remote console and send a remote connection establishment request to the remote console. Therefore, in the process of displaying the console page on the terminal, the terminal also needs to send an API call request to the remote server to obtain the URL address of the remote console, and after obtaining the URL address of the remote console, according to the URL of the remote console The address sends a remote connection establishment request to the remote console. In addition, before sending the remote connection establishment request, the terminal may also send an API call request for detecting the service status of the remote console to the remote server.
  • the terminal sends an API call request to obtain the URL address of the remote console to the remote server, which can be regarded as an operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for easy distinction, it is called the second operation response) .
  • the terminal After the terminal generates the second operation response, as shown in Table 1, the terminal obtains and records that the response time of the second operation response is 20:29:21, and the second response information used to indicate the second operation response is: Initiate an API call request to obtain the URL address of the remote console.
  • the terminal sends an API call request for detecting the service status of the remote console to the remote server, which can be regarded as an operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for easy distinction, it is called the third operation response).
  • the terminal After the terminal generates the third operation response, as shown in Table 1, the terminal acquires and records that the response time of the third operation response is 20:29:22, and the third response information used to indicate the third operation response is: Initiate an API call request to detect the service status of the remote console.
  • the terminal sends a remote connection establishment request to the remote console, which can be regarded as an operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for easy distinction, it is called the fourth operation response).
  • the terminal After the terminal generates the fourth operation response, as shown in Table 1, the terminal obtains and records that the response time of the fourth operation response is 20:29:23, and the fourth response information used to indicate the fourth operation response is: Initiate a remote connection establishment request.
  • the remote server may also send to the terminal information reflecting whether the API call request successfully calls the corresponding interface.
  • the information used to reflect whether the API call request successfully calls the corresponding interface can also be recorded in the corresponding response information (not shown in Table 1).
  • the terminal sends an API call request to obtain the URL address of the remote console to the remote server
  • the remote server can send the status code "200" to the terminal indicating that the interface is successfully called. ", the information indicating that the invocation request 200 is correct may be recorded in the second response information of the second operation response.
  • the remote server can send the terminal a status code indicating the failure to call the interface " 404", the information indicating the 404 error of the call request can be recorded in the fourth response information of the fourth operation response.
  • the terminal has obtained the monitoring information generated according to the operation of the user using the mouse to click the "remote connection" button in the interface.
  • the monitoring information includes: first operation information and operation time, first response information and response time, second response information and response time, third response information and response time, fourth response information and response time .
  • each acquired monitoring information can include an input operation indicating one input operation.
  • Operating information and operating time is: the keyboard input key code key "a”, and the operation time is 20:29:35.
  • the third operation information used to indicate the operation of using the keyboard to input “d” is: the keyboard input key code key “d”, and the operation time is 20:29:36.
  • the fourth operation information for instructing the operation of using the keyboard to input “d” is: the keyboard input key code key “d”, and the operation time is 20:29:37.
  • the fifth operation information for instructing the operation of using the keyboard to input “u” is: the keyboard input key code key "u”, and the operation time is 20:29:38.
  • the sixth operation information for instructing the operation of using the keyboard to input "s” is: the keyboard input key code key "s", and the operation time is 20:29:39.
  • the seventh operation information used to instruct the operation of using the keyboard to input “e” is: the keyboard input key code key “e”, and the operation time is 20:29:40.
  • the eighth operation information used to instruct the operation of using the keyboard to input “r” is: the keyboard input key code key "r”, and the operation time is 20:29:41.
  • the terminal After the user enters the operation of creating a new user command, the user clicks the "close browser” button in the interface with the mouse at 20:29:45, and the terminal can determine the position of the mouse click in the interface as the interface The position where the "Close Browser” button is displayed in. At this time, as shown in Table 1, the terminal again acquires and records the operation information used to indicate the operation (called the ninth operation information for easy distinction) as the mouse click "close browser", and the operation time is 20:29 :45. When the terminal receives the operation of clicking the "close browser” button, the browser will be closed.
  • the terminal According to the multiple monitoring information shown in Table 1, the terminal generates the following operation trajectory in the order of operation time from morning to night, and the operation trajectory shows the operations performed by the user and the terminal in the order of operation time from morning to night. According to the response generated by the operation.
  • the operation track is as follows:
  • Step (1) the mouse clicked the "remote connection” button in the interface, 20:29:17;
  • Step (2) the page jumps to the console page with URL address http://in**an.ua**ei.com/c**b/bus**ns, 20:29:20;
  • Step (3) initiate an API call request to obtain the URL address of the remote console, 20:29:21;
  • Step (4) initiate an API call request to detect the service status of the remote console, 20:29:22;
  • Step (5) initiate a request to establish a remote connection, 20:29:23;
  • Step (7) mouse click "close browser", 20:29:45.
  • the step (4) in the operation track may be: initiate an API call request to detect the service status of the remote console, and the request 200 is correct, 20: 29:22.
  • the step (5) in the operation track may be: initiate a request to establish a remote connection, request 404 error, 20:29:23.
  • Step 303 The server analyzes the operation indicated by the operation information in the multiple monitoring information according to the operation track.
  • the process of performing operations on the interface recorded in the operation trace can be simulated according to the operation trajectory, so as to perform process analysis on the process of performing operations on the terminal according to the simulated process.
  • the process of performing operations on the interface and responding according to the operations recorded in the operation trajectory is simulated, so as to perform process analysis on the process of performing operations on the terminal and generating responses according to the simulated process.
  • the simulation operation process refers to: the server simulates the operating environment when the terminal performs the operation recorded by the operation track according to the operation track, and simulates the operation recorded by the operation track in the operation environment, and then realizes the corresponding operation according to each operation.
  • Functional process That is, the simulated operation process can be regarded as a process of scene reproduction of the operation recorded on the operation track.
  • the process of simulating operation and response can be regarded as the process of scene reproducing the operation recorded on the operation track and the response to the operation.
  • the server performs scene simulation on the operation recorded by the operation track of a certain terminal, and the server can learn the specific situation of each operation link in the process of realizing the operation on the terminal, and make a corresponding analysis according to the specific situation. Perform analysis operations such as operation process audit and operation fault location in the process of performing operations on the terminal.
  • the operation process audit is to supervise and review whether there is any violation of regulations during the operation process based on the specific circumstances that occur in each link of the operation process.
  • Operation fault location is the behavior that determines the cause of the error according to the specific circumstances that occur in each link of the operation process when there is an error prompt (operation error prompt or access unsuccessful prompt, etc.) during the operation process.
  • the server can perform scenario simulations on the operations recorded by the operation traces of multiple terminals, simulate multiple terminals accessing the response server, and request the response server to provide the actual access process of the business service to the corresponding terminal, and Perform a performance test on the response server according to the simulated real access process.
  • the server can simulate millions of terminals accessing the response server at the same time based on the operation trajectory of millions of terminals, and request the response server to provide the real access process of business services to the corresponding terminal, so as to test that the response server is providing service to the million terminals.
  • the server can simulate millions of terminals accessing the response server at the same time based on the operation trajectory of millions of terminals, and request the response server to provide the real access process of business services to the corresponding terminal, so as to test that the response server is providing service to the million terminals.
  • the access process simulated by the scenario is closer to the real access process, it can more accurately reflect the specific conditions of the real access process, and the performance test results of the server based on the access process simulated by the scenario are closer to the real access process.
  • the access process has an impact on server performance.
  • the service performance of the response server is optimized according to the test result, the service performance of the server can be improved accurately and effectively.
  • a script program when performing scene simulation of an operation based on the operation trajectory, a script program can be generated based on the operation trajectory first, and the scene simulation process of the operation can be realized by executing the script program, so as to improve the automation degree of the scene simulation.
  • the implementation process of generating the script program according to the operation trajectory may be: according to the timing of all operations and all responses in the operation trajectory, a computer program for executing corresponding operations and responses is sequentially generated to obtain the script program.
  • the server uses a display to show the operation trajectory.
  • different ways of displaying can be realized according to different analysis purposes.
  • the displayed operation trajectory is a process in which the terminal runs the same application program. If the operation trajectory is generated based on the monitoring information carrying the identity of the same terminal, the displayed operation trajectory is the operation behavior performed in the terminal.
  • the viewing object may be a worker or user who manages the operation analysis work, and the display operation can facilitate the viewing object to more intuitively view the operation process.
  • the server receives the monitoring information sent by the terminal, generates the operation trajectory of the operation based on the monitoring information, and analyzes the operation performed by the user in the interface according to the operation trajectory , Because the monitoring information includes the terminal’s identity, application’s identity, operation information, and operation time, the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, and can ensure that the user is in the interface The accuracy of the operations performed for analysis.
  • the sequence of steps of the operation monitoring method and the operation analysis method provided in the embodiments of the present application can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. For example, it is possible to choose whether to execute the above-mentioned step 204 and step 205 according to application requirements. Any person familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, which should be covered by the protection scope of this application, and therefore will not be repeated.
  • the operation monitoring device 40 may include:
  • the recording module 401 is used to record the identification of the terminal and the identification of the application when it is detected that the interface of the application is displayed on the terminal.
  • the recording module 401 is also used to record the operation time of the operation and the operation information used to indicate the operation when it is detected that the user performs an operation on the interface.
  • the sending module 402 is used to send monitoring information to the server.
  • the monitoring information includes the identification of the terminal, the identification of the application program, the operation information, and the operation time.
  • the operation monitoring device 40 further includes:
  • the response module 403 is used to generate an operation response to the operation when it is detected that the user performs an operation on the interface.
  • the recording module 401 is also used to record the response time for generating the operation response and the response information used to indicate the operation response.
  • the monitoring information also includes response information and response time.
  • the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation on the interface.
  • the response information includes: interface information of an application program interface called when a response is generated for the operation.
  • the monitoring information including the terminal identification, application identification, operation information, and operation time is recorded through the recording module, and the sending module sends the monitoring information to the server Because the monitoring information can truly reflect the operations performed by the user on the front-end interface of the application, the server can analyze the operations performed by the user in the interface based on the monitoring information, and can effectively ensure that the user performs in the interface The accuracy of the analysis performed by the operation.
  • the operation analysis device 60 may include:
  • the receiving module 601 is used to receive multiple monitoring information sent by the terminal.
  • Each monitoring information includes the identification of the terminal, the identification of the application to which the interface of the application displayed by the terminal belongs, the operation time of the operation performed by the user on the interface, and Operation information used to indicate the operation.
  • the generating module 602 is configured to generate an operation trace of the operation performed on the interface of the application program displayed on the terminal according to a plurality of monitoring information, and the operation trace is recorded according to the operation time of each operation.
  • the operation analysis device 60 further includes:
  • the processing module 603 is used to generate a script program according to the operation trajectory.
  • the processing module 603 is also used to execute a script program to simulate the operation performed on the interface recorded in the operation track.
  • each monitoring information further includes: response information used to indicate the response generated by the terminal to the operation recorded by the monitoring information, and the time for generating the response.
  • the operation track also includes response information and response time.
  • the monitoring information sent by the terminal is received through the receiving module, the generating module generates the operation trajectory according to the monitoring information, and the processing module executes the user in the interface according to the operation trajectory. Analyze the operation of the application. Since the monitoring information includes the terminal’s identity, application’s identity, operation information, and operation time, the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, and ensure that the The accuracy of the analysis of the operations performed by the user in the interface.
  • An embodiment of the present application provides a computing device, which includes a processor and a memory.
  • a computer program is stored in the memory.
  • the computing device implements the operation monitoring method provided in the embodiment of the present application.
  • the computing device may be a terminal.
  • a schematic diagram of the structure please refer to the structure of the terminal in FIG. 1.
  • An embodiment of the present application also provides another computing device, which includes a processor and a memory.
  • a computer program is stored in the memory.
  • the computing device implements the operation analysis method provided in the embodiment of the present application.
  • the computing device may be a server.
  • a schematic diagram of the structure please refer to the structure of the server in FIG. 1.
  • the embodiment of the present application provides a non-volatile storage medium, and when an instruction in the storage medium is executed by a processor, the operation monitoring method provided in the embodiment of the present application is implemented.
  • the embodiment of the present application also provides another non-volatile storage medium.
  • the operation analysis method provided in the embodiment of the present application is implemented.
  • the embodiment of the present application provides a computer program product containing instructions.
  • the computer program product runs on a computer, the computer executes the operation monitoring method provided by the embodiment of the present application.
  • the embodiment of the present application also provides another computer program product containing instructions.
  • the computer program product runs on a computer, the computer executes the operation analysis method provided by the embodiment of the present application.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
  • the terms “first”, “second” and “third” are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance.
  • the term “at least one” refers to one or more, and the term “plurality” refers to two or more, unless expressly defined otherwise.

Abstract

An operation monitoring method and an operation analysis method, in the technical field of data processing. The method comprises: a server receiving multiple items of monitoring information sent by a terminal, each item of monitoring information at least comprising a terminal identifier, an identifier of an application in an application interface displayed by the terminal, an operation time of an operation executed by a user on the interface, and operation information used to indicate the operation (301); the server, according to the multiple items of monitoring information, generating an operation trajectory for the operation executed on the interface displayed by the terminal (302), the operation trajectory being recorded according to the operation time of the operation. The present method can perform analysis of an operation executed by a user on a front-end interface of an application.

Description

操作监控方法及装置、操作分析方法及装置Operation monitoring method and device, operation analysis method and device
本申请要求于2019年12月27日提交的申请号为201911380429.7、发明名称为“操作监控方法及装置、操作分析方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 27, 2019, with the application number 201911380429.7 and the invention title "Operation monitoring method and device, operation analysis method and device", the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本申请涉及数据处理技术领域,特别涉及一种操作监控方法及装置、操作分析方法及装置。This application relates to the field of data processing technology, and in particular to an operation monitoring method and device, and an operation analysis method and device.
背景技术Background technique
随着用户需求多元化和软件技术的发展,在访问应用程序的过程中需要执行的用户操作也越来越复杂。并且,为了提高用户体验,应用服务商还可以对用户在访问应用程序的过程中产生的操作进行分析,以便于根据分析结果提升应用程序的服务性能。With the diversification of user needs and the development of software technology, the user operations that need to be performed in the process of accessing applications are becoming more and more complex. Moreover, in order to improve the user experience, the application service provider may also analyze the operations generated by the user in the process of accessing the application, so as to improve the service performance of the application according to the analysis result.
相关技术中,在对用户访问应用程序过程中产生的操作进行分析时,通常需要先获取用户使用终端访问应用程序过程中对接口的调用记录,然后,根据该调用记录预估用户在该过程中产生的操作,再根据该操作进行分析。例如,在用户通过终端远程登录控制台的过程中,用户在终端显示界面中选择进入远程登录时,终端会向后台多次发起对指定接口的调用,因此,当调用记录包括多次对指定接口进行调用的调用记录时,可以预估用户在终端显示界面中执行了选择进入远程登录的操作,并根据该操作进行分析。In related technologies, when analyzing the operations generated during the user's access to the application, it is usually necessary to obtain the call record of the interface during the process of the user using the terminal to access the application, and then estimate that the user is in the process according to the call record. The resulting operation is analyzed based on the operation. For example, when the user remotely logs in to the console through the terminal, when the user chooses to enter the remote login in the terminal display interface, the terminal will initiate multiple calls to the specified interface to the background. Therefore, when the call record includes multiple calls to the specified interface When making the call record of the call, it can be estimated that the user has performed the operation of choosing to enter the remote login on the terminal display interface, and analyze according to the operation.
但是,该分析过程只能根据应用程序在后台执行时所调用的接口进行分析,并不能反映用户对应用程序的前端界面所执行的操作,从而无法对用户在前端界面执行的操作进行分析。However, this analysis process can only be analyzed based on the interface called when the application is executed in the background, and cannot reflect the operation performed by the user on the front-end interface of the application, so that the operation performed by the user on the front-end interface cannot be analyzed.
发明内容Summary of the invention
本申请提供了一种操作监控方法及装置、操作分析方法及装置,可以对用户在应用程序的前端界面执行的操作进行分析。This application provides an operation monitoring method and device, and an operation analysis method and device, which can analyze operations performed by users on the front-end interface of an application program.
第一方面,本申请提供了一种操作监控方法,该方法应用于终端,该方法包括:当侦测到终端显示应用程序的界面时,记录终端的标识和应用程序的标识;当侦测到用户在界面执行操作时,记录操作的操作时间和用于指示操作的操作信息;发送监控信息至服务器,监控信息包括终端的标识、应用程序的标识、操作信息和操作时间。In the first aspect, this application provides an operation monitoring method, which is applied to a terminal, and the method includes: when it is detected that the terminal displays an application program interface, recording the terminal's identity and the application's identity; when it is detected When the user performs an operation on the interface, the operation time of the operation and the operation information used to indicate the operation are recorded; the monitoring information is sent to the server, and the monitoring information includes the terminal identification, the application identification, the operation information and the operation time.
在本申请实施例提供的操作监控方法中,通过记录包括该终端的标识、应用程序的标识、操作信息和操作时间的监控信息,并将该监控信息发送至服务器,由于该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,使得服务器能够根据该监控信息对用户在界面中执行的操作进行分析,并能够有效保证对用户在界面中执行的操作进行分析的准确性。In the operation monitoring method provided by the embodiment of the present application, by recording the monitoring information including the terminal identification, application identification, operation information, and operation time, and sending the monitoring information to the server, the monitoring information can be truly Reflects the operations performed by the user on the front-end interface of the application, so that the server can analyze the operations performed by the user in the interface according to the monitoring information, and can effectively ensure the accuracy of the analysis on the operations performed by the user in the interface.
可选的,为保证监控信息的完整性,该方法还包括:当侦测到用户在界面上执行操作时,对操作产生操作响应;记录产生操作响应的响应时间和用于指示操作响应的响应信息。相应的,监控信息还包括响应信息和响应时间。Optionally, to ensure the integrity of the monitoring information, the method further includes: when it is detected that the user performs an operation on the interface, generating an operation response to the operation; recording the response time for generating the operation response and the response used to indicate the operation response information. Correspondingly, the monitoring information also includes response information and response time.
在一种可实现方式中,操作信息包括:用于指示操作的操作类型的类型信息和用于指示操作在界面中作用位置的位置信息。类型信息用于指示用户输入的操作是什么操作。根据该类型信息和该位置信息,可以确定用户在终端中执行的是什么操作,以及该操作在应用程序 的界面中产生作用的位置。In an implementable manner, the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation in the interface. The type information is used to indicate what the operation input by the user is. According to the type information and the location information, it is possible to determine what operation the user performs in the terminal and the location where the operation takes effect in the interface of the application program.
可选的,该操作信息还可以包括:用于指示终端显示界面时的配置信息和用于指示信息类型的指示信息。某个信息的指示信息用于指示该信息为操作信息或响应信息。该配置信息用于指示终端显示界面时的显示环境和执行操作时的操作环境,当操作信息还包括该配置信息时,能够便于根据该配置信息模拟终端显示该界面时的显示环境和执行操作时的操作环境,以提高模拟操作的准确性。Optionally, the operation information may further include: configuration information used to instruct the terminal to display the interface and indication information used to indicate the type of information. The indication information of a certain information is used to indicate that the information is operation information or response information. The configuration information is used to indicate the display environment when the terminal displays the interface and the operation environment when the operation is performed. When the operation information also includes the configuration information, it can be convenient to simulate the display environment when the terminal displays the interface and when the operation is performed according to the configuration information. The operating environment to improve the accuracy of the simulation operation.
另外,除了上述操作信息和响应信息外,监控信息还可以包括用户标识等信息,以便于服务器更充分地了解对终端执行操作时的操作环境。In addition, in addition to the above-mentioned operation information and response information, the monitoring information may also include information such as user identification, so that the server can more fully understand the operating environment when performing operations on the terminal.
在一种可实现方式中,该响应信息可以包括:接收操作的操作时间到产生响应的响应时间的等待时间,指示响应成功或响应失败的指示信息、及用于指示信息类型的指示信息等。该指示信息用于指示信息为操作信息或响应信息。并且,当终端对操作产生的操作响应为生成并发送API调用请求时,响应信息还可以包括:针对操作产生响应时所调用的应用程序接口的接口信息。可选地,该接口信息可以为应用程序接口的标识。In an implementable manner, the response information may include: the waiting time from the operating time of receiving the operation to the response time of generating the response, the indication information indicating the success or failure of the response, and the indication information indicating the information type. The indication information is used to indicate that the information is operation information or response information. Moreover, when the operation response generated by the terminal to the operation is to generate and send an API call request, the response information may further include: interface information of the application program interface that is called when the response is generated for the operation. Optionally, the interface information may be an identification of an application program interface.
在一种可实现方式中,终端可以采用以下方式获取用于指示操作的操作信息:根据应用程序对操作产生操作响应时所依据的参数,获取操作信息。例如,终端可以将应用程序对该操作产生操作响应时所依据的参数直接作为用于指示操作的操作信息。In an achievable manner, the terminal may obtain the operation information used to indicate the operation in the following manner: obtain the operation information according to the parameters on which the application program generates the operation response to the operation. For example, the terminal may directly use the parameters on which the application program generates an operation response to the operation as operation information for indicating the operation.
在一种可实现方式中,终端可以采用以下方式获取用于指示操作响应的响应信息:终端在接收到在界面上执行的操作后,侦测针对该操作的操作响应,当侦测到对该操作产生操作响应时,记录用于指示该响应的响应信息。In an achievable manner, the terminal can obtain the response information used to indicate the operation response in the following manner: after the terminal receives the operation performed on the interface, it detects the operation response to the operation, and when it detects the operation response When an operation generates an operation response, the response information used to indicate the response is recorded.
第二方面,本申请提供了一种操作分析方法,该方法应用于服务器,该方法包括:接收终端发送的多个监控信息,每个监控信息包括终端的标识、终端显示的应用程序的界面所属的应用程序的标识、用户在界面上执行的操作的操作时间、及用于指示操作的操作信息;根据多个监控信息,生成在终端所显示应用程序的界面上执行的操作的操作轨迹,操作轨迹按照每个操作的操作时间记录。In a second aspect, this application provides an operation analysis method, which is applied to a server, and the method includes: receiving a plurality of monitoring information sent by a terminal, and each monitoring information includes the identification of the terminal and the interface of the application displayed by the terminal. The identification of the application program, the operation time of the operation performed by the user on the interface, and the operation information used to indicate the operation; according to multiple monitoring information, the operation track of the operation performed on the interface of the application displayed on the terminal is generated, and the operation The trajectory is recorded according to the operating time of each operation.
在本申请实施例提供的操作分析方法中,服务器通过接收终端发送的监控信息,根据该监控信息生成操作的操作轨迹,并根据操作轨迹对用户在界面中执行的操作进行分析,由于该监控信息包括该终端的标识、应用程序的标识、操作信息和操作时间,使得该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,并能够保证对用户在界面中执行的操作进行分析的准确性。In the operation analysis method provided by the embodiment of the present application, the server receives the monitoring information sent by the terminal, generates the operation trajectory of the operation based on the monitoring information, and analyzes the operation performed by the user in the interface according to the operation trajectory, because the monitoring information Including the terminal identification, application identification, operation information and operation time, so that the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, and can ensure the analysis of the operation performed by the user in the interface Accuracy.
可选的,每个监控信息还包括:用于指示终端对监控信息所记录的操作产生响应的响应信息,及产生响应的时间。Optionally, each monitoring information further includes: response information used to instruct the terminal to generate a response to the operation recorded by the monitoring information, and the time for generating the response.
相应的,根据多个监控信息,生成在终端所显示应用程序的界面上执行的操作的操作轨迹,包括:根据多个监控信息,生成在终端显示每个监控信息所记录的应用程序的界面上执行每个监控信息所记录的操作,并根据操作进行响应的过程。Correspondingly, according to the multiple monitoring information, generating the operation trace of the operation performed on the interface of the application program displayed on the terminal includes: generating the interface of the application program recorded by each monitoring information on the terminal according to the multiple monitoring information The process of performing the operations recorded by each monitoring information and responding according to the operations.
在一种应用场景中,在生成操作轨迹之后,该方法还包括:根据操作轨迹生成脚本程序,执行脚本程序以模拟操作轨迹中记录的在界面上执行的操作;或者,根据操作轨迹生成脚本程序,执行脚本程序以模拟操作轨迹中记录的在界面上执行的操作,并根据操作进行响应的过程。In an application scenario, after the operation trajectory is generated, the method further includes: generating a script program according to the operation trajectory, and executing the script program to simulate the operation performed on the interface recorded in the operation trajectory; or, generating a script program according to the operation trajectory , Execute the script program to simulate the operation performed on the interface recorded in the operation track, and respond to the process according to the operation.
该应用场景即为对在界面上执行的操作进行场景模拟的应用场景。在场景模拟的一种情况中,服务器通过对某个终端的操作轨迹所记录的操作进行场景模拟,服务器能够获知在该 终端实现该操作过程中的每个操作环节发生的具体情况,并根据该具体情况对在终端上执行操作的过程进行操作过程审计和操作故障定位等分析操作。The application scenario is an application scenario for scene simulation of operations performed on the interface. In a situation of scene simulation, the server performs scene simulation on the operation recorded by the operation track of a certain terminal. The server can learn the specific situation of each operation link in the process of realizing the operation on the terminal, and according to the operation. For specific conditions, perform analysis operations such as operating process auditing and operating fault location on the process of performing operations on the terminal.
由于通过场景模拟能够获知终端执行操作的过程中发生的具体情况,相较于无法获取操作过程中发生的具体情况的相关技术,通过根据该具体情况对终端执行操作的过程进行分析,能够能更清楚地确定终端执行操作的过程中的细节,能够有效地保证分析的准确性。Since scene simulation can learn the specific conditions that occur during the operation of the terminal, compared to related technologies that cannot obtain the specific conditions that occur during the operation, the process of performing operations on the terminal can be analyzed according to the specific conditions. Clearly determining the details of the operation performed by the terminal can effectively ensure the accuracy of the analysis.
在场景模拟的另一种情况中,服务器可以分别对多个终端的操作轨迹所记录的操作进行场景模拟,模拟出多个终端访问响应服务器,并请求响应服务器向对应终端提供业务服务的真实访问过程,并根据该模拟出的真实访问过程对响应服务器进行性能测试。In another scenario of scenario simulation, the server can perform scenario simulations on the operations recorded by the operation traces of multiple terminals, simulate multiple terminals accessing the response server, and request the response server to provide real access to the corresponding terminal for business services. Process, and perform a performance test on the response server according to the simulated real access process.
由于通过场景模拟出的访问过程比较接近真实的访问过程,能够较准确的反映真实访问过程中的具体情况,根据该场景模拟出的访问过程对服务器进行性能测试的结果更接近于真实访问过程中访问过程对服务器性能产生的影响,当根据该测试结果优化响应服务器的服务性能时,能够准确且有效地提升服务器的服务性能。Since the access process simulated by the scenario is closer to the real access process, it can more accurately reflect the specific conditions of the real access process, and the performance test results of the server based on the access process simulated by the scenario are closer to the real access process. The access process has an impact on server performance. When the service performance of the response server is optimized according to the test result, the service performance of the server can be improved accurately and effectively.
第三方面,本申请提供了一种操作监控装置,该装置包括:记录模块,用于当侦测到终端显示应用程序的界面时,记录终端的标识和应用程序的标识;记录模块,还用于当侦测到用户在界面上执行操作时,记录操作的操作时间和用于指示操作的操作信息;发送模块,用于发送监控信息至服务器,监控信息包括终端的标识、应用程序的标识、操作信息和操作时间。In a third aspect, the present application provides an operation monitoring device, the device includes: a recording module for recording the terminal's identity and the application's identity when it is detected that the terminal displays the interface of the application; the recording module also uses When it is detected that the user is performing an operation on the interface, it records the operation time of the operation and the operation information used to indicate the operation; the sending module is used to send monitoring information to the server, and the monitoring information includes the terminal's identification, the application's identification, Operating information and operating time.
可选地,装置还包括:响应模块,用于当侦测到用户在界面上执行操作时,对操作产生操作响应。相应的,记录模块,还用于记录产生操作响应的响应时间和用于指示操作响应的响应信息。当侦测到用户在界面上执行操作时响应信息和响应时间。Optionally, the device further includes: a response module for generating an operation response to the operation when it is detected that the user performs an operation on the interface. Correspondingly, the recording module is also used to record the response time for generating the operation response and the response information used to indicate the operation response. Response information and response time when it is detected that the user performs an operation on the interface.
可选地,操作信息包括:用于指示操作的操作类型的类型信息和用于指示操作在界面中作用位置的位置信息。Optionally, the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation on the interface.
可选地,响应信息包括:针对操作产生响应时,调用的应用程序接口的接口信息。Optionally, the response information includes: interface information of an application program interface called when a response is generated for the operation.
第四方面,本申请提供了一种操作分析装置,该装置包括:接收模块,用于接收终端发送的多个监控信息,每个监控信息包括终端的标识、终端显示的应用程序的界面所属的应用程序的标识、用户在界面上执行的操作的操作时间、及用于指示操作的操作信息;生成模块,用于根据多个监控信息,生成在终端所显示应用程序的界面上执行的操作的操作轨迹,操作轨迹按照每个操作的操作时间记录。In a fourth aspect, the present application provides an operation analysis device. The device includes: a receiving module for receiving a plurality of monitoring information sent by the terminal, each monitoring information including the identification of the terminal and the interface of the application displayed by the terminal belongs to The identification of the application, the operation time of the operation performed by the user on the interface, and the operation information used to indicate the operation; the generating module is used to generate the operation performed on the interface of the application displayed on the terminal according to multiple monitoring information Operation trajectory, the operation trajectory is recorded according to the operation time of each operation.
可选地,该装置还包括:处理模块,用于根据操作轨迹生成脚本程序;Optionally, the device further includes: a processing module for generating a script program according to the operation trajectory;
处理模块,用于执行脚本程序以模拟操作轨迹中记录的在界面上执行的操作。The processing module is used to execute the script program to simulate the operation performed on the interface recorded in the operation track.
可选地,每个监控信息还包括:用于指示终端对监控信息所记录的操作产生的响应的响应信息,及产生响应的时间。相应的,操作轨迹还包括响应信息和响应时间。Optionally, each monitoring information further includes: response information used to indicate the response generated by the terminal to the operation recorded by the monitoring information, and the time for generating the response. Correspondingly, the operation track also includes response information and response time.
第五方面,本申请提供了一种计算设备,该计算设备包括处理器和存储器;存储器中存储有计算机程序;处理器执行计算机程序时,计算设备实现第一方面提供的操作监控方法。In a fifth aspect, the present application provides a computing device that includes a processor and a memory; a computer program is stored in the memory; when the processor executes the computer program, the computing device implements the operation monitoring method provided in the first aspect.
第六方面,本申请还提供了另一种计算设备,该计算设备包括处理器和存储器;存储器中存储有计算机程序;处理器执行计算机程序时,计算设备实现第二方面提供的操作分析方法。In a sixth aspect, this application also provides another computing device, which includes a processor and a memory; the memory stores a computer program; when the processor executes the computer program, the computing device implements the operation analysis method provided in the second aspect.
第七方面,本申请提供了一种非易失性的存储介质,当存储介质中的指令被处理器执行时,实现第一方面提供的操作监控方法。In a seventh aspect, the present application provides a non-volatile storage medium, which implements the operation monitoring method provided in the first aspect when the instructions in the storage medium are executed by the processor.
第八方面,本申请还提供了另一种非易失性的存储介质,当存储介质中的指令被处理器 执行时,实现第二方面提供的操作分析方法。In the eighth aspect, this application also provides another non-volatile storage medium, which implements the operation analysis method provided in the second aspect when the instructions in the storage medium are executed by the processor.
附图说明Description of the drawings
图1是本申请实施例所涉及的应用场景的示意图;Figure 1 is a schematic diagram of an application scenario involved in an embodiment of the present application;
图2是本申请实施例提供的一种操作监控方法的流程图;FIG. 2 is a flowchart of an operation monitoring method provided by an embodiment of the present application;
图3是本申请实施例提供的一种操作分析方法的流程图;FIG. 3 is a flowchart of an operation analysis method provided by an embodiment of the present application;
图4是本申请实施例提供的一种操作监控装置的结构示意图;FIG. 4 is a schematic structural diagram of an operation monitoring device provided by an embodiment of the present application;
图5是本申请实施例提供的另一种操作监控装置的结构示意图;FIG. 5 is a schematic structural diagram of another operation monitoring device provided by an embodiment of the present application;
图6是本申请实施例提供的一种操作分析装置的结构示意图;FIG. 6 is a schematic structural diagram of an operation analysis device provided by an embodiment of the present application;
图7是本申请实施例提供的另一种操作分析装置的结构示意图。FIG. 7 is a schematic structural diagram of another operation analysis device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions, and advantages of the present application clearer, the implementation manners of the present application will be described in further detail below in conjunction with the accompanying drawings.
图1是本申请实施例所涉及的应用场景的示意图。如图1所示,该应用场景包括:终端10和服务器11。其中,该终端10和该服务器11之间通过有线或无线网络建立有通信连接。该终端10可以为计算机、个人电脑、云主机、便携式移动终端10、多媒体播放器、电子书阅读器或可穿戴式设备等。该服务器11可以是一台服务器11,或者由若干台服务器11组成的服务器11集群,或者是一个云计算服务中心。Fig. 1 is a schematic diagram of an application scenario involved in an embodiment of the present application. As shown in FIG. 1, the application scenario includes: a terminal 10 and a server 11. Wherein, a communication connection is established between the terminal 10 and the server 11 through a wired or wireless network. The terminal 10 may be a computer, a personal computer, a cloud host, a portable mobile terminal 10, a multimedia player, an e-book reader or a wearable device, etc. The server 11 may be a server 11, or a server 11 cluster composed of several servers 11, or a cloud computing service center.
终端10中可以安装有应用程序。该终端10可以显示应用程序的界面,接收用户在该界面中执行的操作,并执行本申请实施例提供的操作监控方法。例如,当侦测到终端10显示应用程序的界面时,终端10可以记录该终端10的标识和该应用程序的标识。并且,当侦测到用户在该应用程序的界面上执行的操作时,终端10可以记录该操作的操作时间和用于指示该操作的操作信息,并将包括该终端10的标识、应用程序的标识、操作时间和操作信息的监控信息发送至服务器11。An application program may be installed in the terminal 10. The terminal 10 can display an interface of an application program, receive operations performed by a user on the interface, and execute the operation monitoring method provided in the embodiments of the present application. For example, when it is detected that the terminal 10 displays the interface of an application program, the terminal 10 may record the identification of the terminal 10 and the identification of the application. In addition, when an operation performed by the user on the interface of the application program is detected, the terminal 10 can record the operation time of the operation and the operation information used to indicate the operation, and include the identification of the terminal 10 and the application information. The monitoring information of the identification, operation time and operation information is sent to the server 11.
服务器11用于执行本申请实施例提供的操作分析方法。例如,该服务器11可以接收终端10发送的监控信息,并根据多个监控信息,生成在终端10所显示应用程序的界面上执行该多个监控信息所记录的操作的过程。并且,服务器11还可以根据生成的操作轨迹生成脚本程序,并通过执行该脚本程序以模拟操作轨迹中记录的在界面上执行的操作,以对在该界面上执行的操作进行操作分析。The server 11 is configured to execute the operation analysis method provided in the embodiment of the present application. For example, the server 11 may receive the monitoring information sent by the terminal 10, and based on the multiple monitoring information, generate a process of executing the operations recorded by the multiple monitoring information on the interface of the application displayed on the terminal 10. In addition, the server 11 may also generate a script program according to the generated operation track, and execute the script program to simulate the operation performed on the interface recorded in the operation track, so as to perform operation analysis on the operation performed on the interface.
由于该监控信息包括用于指示用户在界面上执行的操作的操作信息和操作时间等信息,且该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,使得根据该监控信息生成的操作轨迹能够真实地反映用户在界面中执行的操作,当根据操作轨迹对用户在界面中执行的操作进行分析时,能够保证对用户在界面中执行的操作进行分析的准确性。Since the monitoring information includes information such as operation information and operation time used to indicate the operation performed by the user on the interface, and the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, it is generated based on the monitoring information The operation trajectory of can truly reflect the operation performed by the user in the interface. When the operation performed by the user in the interface is analyzed according to the operation trajectory, the accuracy of the analysis of the operation performed by the user in the interface can be guaranteed.
进一步的,如图1所示,终端10包括第一处理器101,第一通信接口102和第一存储器103。第一处理器101、第一通信接口102和第一存储器103之间通过第一总线104相互连接。服务器11包括第二处理器111,第二通信接口112和第二存储器113。第二处理器111、第二通信接口112和第二存储器113之间通过第二总线114相互连接。Further, as shown in FIG. 1, the terminal 10 includes a first processor 101, a first communication interface 102 and a first memory 103. The first processor 101, the first communication interface 102, and the first memory 103 are connected to each other through a first bus 104. The server 11 includes a second processor 111, a second communication interface 112 and a second memory 113. The second processor 111, the second communication interface 112, and the second memory 113 are connected to each other through a second bus 114.
第一存储器103和第二存储器113均用于存储计算机程序。且该计算机程序可以是应用程序,处理器调用对应存储器中的应用程序时,能够实现该应用程序的功能。例如,第一处 理器101调用第一存储器103中的应用程序时,终端10能够实现本申请实施例提供的操作监控方法。第二处理器111调用第二存储器113中的应用程序时,服务器11能够实现本申请实施例提供的操作分析方法。Both the first memory 103 and the second memory 113 are used to store computer programs. Moreover, the computer program may be an application program, and when the processor calls the application program in the corresponding memory, the function of the application program can be realized. For example, when the first processor 101 calls the application in the first memory 103, the terminal 10 can implement the operation monitoring method provided in the embodiment of the present application. When the second processor 111 calls the application program in the second memory 113, the server 11 can implement the operation analysis method provided in the embodiment of the present application.
在图1中,第一总线104和第二总线114中的任一总线可以分为地址总线、数据总线、控制总线等。为便于表示,图1中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。In FIG. 1, any one of the first bus 104 and the second bus 114 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 1, but it does not mean that there is only one bus or one type of bus.
在图1中,第一处理器101和第二处理器111中的任一处理器可以是硬件芯片,该硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。或者,也可以是通用处理器,例如,中央处理器(central processing unit,CPU),网络处理器(network processor,NP),或者,CPU和NP的组合。In FIG. 1, any one of the first processor 101 and the second processor 111 may be a hardware chip, and the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device ( programmable logic device, PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. Alternatively, it may also be a general-purpose processor, for example, a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
在图1中,第一存储器103和第二存储器113可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);还可以包括上述种类的存储器的组合。In FIG. 1, the first memory 103 and the second memory 113 may include volatile memory (volatile memory), such as random-access memory (RAM); and may also include non-volatile memory (non-volatile memory). Volatile memory, such as flash memory, hard disk drive (HDD), or solid-state drive (SSD); it may also include a combination of the above types of memory.
需要说明的是,本申请实施例中提供的操作分析方法也可以由虚拟机执行,或者,也可以部分由服务器11执行,部分由虚拟机执行,本申请实施例对其不做具体限定。例如,服务器11可以接收终端10发送的多个监控信息,并根据该多个监控信息,生成在终端10所显示应用程序的界面上执行的操作的操作轨迹。虚拟机可以根据操作轨迹对多个监控信息中的操作信息所指示的操作进行分析。It should be noted that the operation analysis method provided in the embodiment of the present application may also be executed by a virtual machine, or partly executed by the server 11 and partly executed by a virtual machine, which is not specifically limited by the embodiment of the present application. For example, the server 11 may receive a plurality of monitoring information sent by the terminal 10, and based on the plurality of monitoring information, generate an operation track of the operation performed on the interface of the application program displayed on the terminal 10. The virtual machine can analyze the operation indicated by the operation information in the multiple monitoring information according to the operation track.
图2为本申请实施例提供的一种操作监控方法的流程图。如图2所示,该方法可以包括以下步骤:Fig. 2 is a flowchart of an operation monitoring method provided by an embodiment of the application. As shown in Figure 2, the method may include the following steps:
步骤201、终端接收用户输入的用于指示显示应用程序的界面的指定操作,并根据该指定操作在终端中显示该应用程序的界面。Step 201: The terminal receives a designated operation for instructing to display the interface of the application program input by the user, and displays the interface of the application program in the terminal according to the designated operation.
在用户使用终端的过程中,若用户需要在终端安装的某个应用程序的某个界面中执行操作时,用户可以对终端执行指定操作,以指示终端显示该应用程序的该界面。终端在接收到该指定操作后,可以根据该指定操作在终端的显示屏中显示该应用程序的该界面。During the user's use of the terminal, if the user needs to perform an operation on a certain interface of a certain application installed on the terminal, the user can perform a specified operation on the terminal to instruct the terminal to display the interface of the application. After receiving the designated operation, the terminal can display the interface of the application on the display screen of the terminal according to the designated operation.
步骤202、当侦测到终端显示应用程序的界面时,终端获取并记录终端的标识和应用程序的标识。Step 202: When it is detected that the terminal displays the interface of the application program, the terminal obtains and records the identification of the terminal and the identification of the application program.
终端中预先设置有信息获取应用程序。该信息获取应用程序可以侦测终端是否在显示应用程序的界面。在侦测到终端显示应用程序的界面时,该信息获取应用程序可以获取并记录该终端的标识和该应用程序的标识。An information acquisition application is preset in the terminal. The information acquisition application can detect whether the terminal is displaying the interface of the application. When it is detected that the terminal displays the interface of the application program, the information acquisition application program can acquire and record the terminal's identification and the application's identification.
并且,终端可以针对该终端中安装的一个或多个需要监控操作的应用程序执行信息获取应用程序。即在终端显示任一需要监控操作的应用程序的界面时,终端可以通过该信息获取应用程序获取该终端的标识和该应用程序的标识。In addition, the terminal can execute information acquisition applications for one or more applications installed in the terminal that require monitoring operations. That is, when the terminal displays the interface of any application program that requires monitoring operations, the terminal can obtain the identification of the terminal and the identification of the application through the information acquisition application.
或者,对于终端中安装的一个或多个需要监控操作的应用程序,每个需要监控操作的应用程序中可以内嵌有信息获取应用程序,以便于终端显示任一需要监控操作的应用程序的界 面时,使用该任一需要监控操作的应用程序中内嵌的信息获取应用程序获取该应用程序的标识等信息。Or, for one or more applications that require monitoring operations installed in the terminal, an information acquisition application can be embedded in each application that requires monitoring operations, so that the terminal can display the interface of any application that requires monitoring operations When using the information embedded in any application that requires monitoring operation, the application acquires the identification and other information of the application.
可选地,终端获取终端的标识的实现方式可以为:信息获取应用程序获取终端中指定硬件的标识号或指定软件的标识号,并将该标识号的部分和全部作为该终端的标识。例如,信息获取应用程序可以获取终端所使用的中央处理器(central processing unit,CPU)的序列号,并将该序列号的部分和全部作为该终端的标识。又例如,信息获取应用程序可以获取终端的通用唯一识别码(universally unique identifier,UUID),并将该UUID的部分和全部作为该终端的标识。又例如,信息获取应用程序可以获取终端所使用的的操作系统的序列号,并将该操作系统的序列号的部分或全部作为该终端的标识。Optionally, the method for obtaining the identification of the terminal by the terminal may be as follows: the information obtaining application obtains the identification number of the designated hardware or the identification number of the designated software in the terminal, and uses part or all of the identification number as the identification of the terminal. For example, the information acquisition application can acquire the serial number of the central processing unit (CPU) used by the terminal, and use part or all of the serial number as the terminal's identification. For another example, the information acquisition application can acquire the universally unique identifier (UUID) of the terminal, and use part or all of the UUID as the terminal's identification. For another example, the information acquisition application may acquire the serial number of the operating system used by the terminal, and use part or all of the serial number of the operating system as the terminal's identification.
或者,信息获取应用程序也可以对指定硬件的标识号或指定软件的标识号进行处理,并将处理后的标识号作为该终端的标识。例如,信息获取应用程序可以截取终端所使用的中央处理器的序列号的后10位,并在该序列号的后10位尾部添加5位随机数字,该后10位序列号和其尾部添加有5位随机数字所组成的数字序列即为该终端的标识。Alternatively, the information acquisition application can also process the identification number of the specified hardware or the identification number of the specified software, and use the processed identification number as the identification of the terminal. For example, the information acquisition application can intercept the last 10 digits of the serial number of the central processing unit used by the terminal, and add 5 random numbers to the last 10 digits of the serial number, and the last 10 digits of the serial number and its end are added The digital sequence composed of 5 random numbers is the identification of the terminal.
可选地,应用程序的标识可以为随机生成的具有指定总数位的数字。相应的,终端获取应用程序的标识的实现方式可以为:信息获取应用程序在侦测到终端显示应用程序的界面时,生成具有指定总数位的随机数字,并将该指定总数位的随机数字确定为该应用程序的标识。Optionally, the identification of the application program may be a randomly generated number with a designated total number of digits. Correspondingly, the way for the terminal to obtain the identification of the application program can be implemented as follows: when the information acquisition application detects that the terminal displays the interface of the application program, it generates a random number with a designated total number of bits, and determines the random number of the designated total number of bits Is the identity of the application.
需要说明的是,终端的标识的总位数和应用程序的标识的总位数均可以根据应用需求确定,本申请实施例对其不做具体限定。例如,终端的标识的总位数可以为128位,应用程序的标识的总位数可以为10位。It should be noted that the total number of digits of the identification of the terminal and the total number of digits of the identification of the application program can be determined according to application requirements, which are not specifically limited in the embodiment of the present application. For example, the total number of digits of the identification of the terminal may be 128 bits, and the total number of digits of the identification of the application program may be 10 bits.
步骤203、当侦测到用户在界面执行操作时,终端获取并记录操作的操作时间和用于指示操作的操作信息。Step 203: When it is detected that the user performs an operation on the interface, the terminal acquires and records the operation time of the operation and the operation information used to indicate the operation.
终端可以采用终端中预先设置的信息获取应用程序,获取并记录该操作时间和操作信息。并且,由于终端在接收到用户在界面中执行的操作后,会针对该操作产生反应,且该反应是终端根据检测到的操作的相关参数所产生的,因此,在终端获取到该操作的相关参数后,信息获取应用程序可以获取该相关参数,并根据该相关参数得到该操作时间和操作信息。或者,信息获取应用程序也可以将侦测到的针对操作产生的响应时,根据该侦测的响应确定响应时间和响应信息。其中,该步骤203中所采用的信息获取应用程序的设置方式,可以相应参考步骤202中信息获取应用程序的设置方式。The terminal may use the information acquisition application program preset in the terminal to acquire and record the operation time and operation information. Moreover, since the terminal responds to the operation after receiving the operation performed by the user in the interface, and the reaction is generated by the terminal according to the relevant parameters of the detected operation, the terminal obtains the relevant information of the operation After the parameters, the information obtaining application can obtain the relevant parameters, and obtain the operation time and operation information according to the relevant parameters. Alternatively, the information acquisition application can also determine the response time and response information based on the detected response when it detects a response to the operation. Wherein, the setting method of the information acquisition application used in step 203 may refer to the setting method of the information acquisition application in step 202 accordingly.
其中,操作信息包括:用于指示操作的操作类型的类型信息和用于指示操作在界面中作用位置的位置信息。类型信息用于指示用户输入的操作是什么操作。根据该类型信息和该位置信息,可以确定用户在终端中执行的是什么操作,以及该操作在应用程序的界面中产生作用的位置。例如,操作类型的类型信息可以指示操作为鼠标左键的单击操作、鼠标左键的双击操作、鼠标右键单击操作、鼠标右键双击操作、鼠标的滚轮操作或键盘中某个按键的输入操作等。并且,终端中可以预先设置有坐标系,可以根据该坐标系确定操作在界面中作用位置的横坐标和纵坐标,并使用该横坐标和该纵坐标表示该位置信息。The operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation in the interface. The type information is used to indicate what the operation input by the user is. According to the type information and the location information, it is possible to determine what operation the user performs in the terminal and the location where the operation takes effect in the interface of the application program. For example, the type information of the operation type can indicate that the operation is a click operation of the left mouse button, a double click operation of the left mouse button, a right mouse click operation, a double click operation of the right mouse button, a wheel operation of the mouse, or an input operation of a key on the keyboard Wait. In addition, a coordinate system may be preset in the terminal, and the abscissa and ordinate of the position where the operation acts on the interface can be determined according to the coordinate system, and the abscissa and the ordinate may be used to represent the position information.
例如,当用户使用键盘在界面中的光标位置处输入了键码“M”时,在用于指示该操作的操作信息中,类型信息用于指示键盘输入了键码“M”的操作,位置信息用于指示光标的位置。又例如,当用户使用鼠标在界面中某一位置处单击左键时,在用于指示该操作的操作信息中,类型信息用于指示鼠标单击左键的操作,位置信息用于指示该某一位置。For example, when the user uses the keyboard to input the key code "M" at the cursor position in the interface, in the operation information used to indicate the operation, the type information is used to indicate the operation in which the keyboard input the key code "M". Information is used to indicate the position of the cursor. For another example, when the user uses the mouse to click the left button at a certain position in the interface, in the operation information used to indicate the operation, the type information is used to indicate the operation of clicking the left button of the mouse, and the position information is used to indicate the operation. A certain location.
可选地,操作信息还可以包括:用于指示终端显示界面时的配置信息和用于指示信息类 型的指示信息。该指示信息用于指示信息为操作信息或响应信息。该配置信息包括:终端的配置信息和应用程序的配置信息。终端的配置信息可以包括:终端的分辨率、终端的网际协议(internet protocol,IP)地址、终端使用的网络类型和终端使用的操作系统等信息。应用程序的配置信息可以包括:应用程序的类型信息、应用程序的版本信息和应用程序的显示分辨率。该用于指示终端显示界面时的配置信息用于指示终端显示界面时的显示环境和执行操作时的操作环境,当操作信息还包括该配置信息时,能够便于根据该配置信息模拟终端显示该界面时的显示环境和执行操作时的操作环境,以保证模拟操作的准确性。例如,根据终端的IP地址能够确定终端所处的网络环境,可以确定终端在根据操作产生响应时所使用网络的网络提供商,及网络的带宽等信息。另外,除了上述操作信息和响应信息外,监控信息还可以包括用户标识等信息,以便于服务器更充分地了解对终端执行操作时的操作环境。Optionally, the operation information may also include: configuration information used to instruct the terminal to display the interface and indication information used to indicate the type of information. The indication information is used to indicate that the information is operation information or response information. The configuration information includes: terminal configuration information and application configuration information. The configuration information of the terminal may include information such as the resolution of the terminal, the internet protocol (IP) address of the terminal, the network type used by the terminal, and the operating system used by the terminal. The configuration information of the application may include: type information of the application, version information of the application, and display resolution of the application. The configuration information used to indicate the terminal display interface is used to indicate the display environment when the terminal displays the interface and the operation environment when the operation is performed. When the operation information also includes the configuration information, it can be convenient to simulate the terminal to display the interface according to the configuration information. Time display environment and operating environment when performing operations to ensure the accuracy of simulation operations. For example, the network environment where the terminal is located can be determined according to the IP address of the terminal, and the network provider of the network used by the terminal when generating a response based on the operation, as well as information such as the network bandwidth, can be determined. In addition, in addition to the above-mentioned operation information and response information, the monitoring information may also include information such as user identification, so that the server can more fully understand the operating environment when performing operations on the terminal.
例如,终端的配置信息可以包括:终端的分辨率为1920×1080,终端使用的网络为AA网络运营商提供的网络,终端使用的操作系统为Windows10系统。应用程序的配置信息可以包括:应用程序的类型为网络服务类(如浏览器),应用程序的版本信息为Version7.0.9,应用程序的显示分辨率为1920×1080。For example, the configuration information of the terminal may include: the resolution of the terminal is 1920×1080, the network used by the terminal is the network provided by the AA network operator, and the operating system used by the terminal is the Windows 10 system. The configuration information of the application program may include: the type of the application program is a network service class (such as a browser), the version information of the application program is Version 7.0.9, and the display resolution of the application program is 1920×1080.
步骤204、终端根据操作信息和界面,对操作产生操作响应。Step 204: The terminal generates an operation response to the operation according to the operation information and interface.
终端在侦测到用户在界面执行操作后,可以根据该操作的操作信息和该界面的内容,确定用户执行操作时想要实现的功能,并对该操作产生操作响应,以便于实现该用户想要实现的功能。其中,终端根据操作产生操作响应,是指终端接收到操作后该终端根据该操作所产生的反应。After detecting that the user performs an operation on the interface, the terminal can determine the function that the user wants to implement when the operation is performed based on the operation information of the operation and the content of the interface, and generate an operation response to the operation, so as to realize the user's desire. The function to be implemented. Wherein, the operation response generated by the terminal according to the operation refers to the reaction generated by the terminal according to the operation after the terminal receives the operation.
在一种可实现方式中,当操作所指示的功能需要在服务器(以下称为响应服务器)的配合下实现时,终端对操作产生的操作响应可以为生成操作请求,该操作请求用于请求响应服务器向终端提供实现操作所指示的功能所需的服务,并向该响应服务器发送该操作请求。示例地,该操作请求可以为应用程序接口(application programming interface,API)调用请求。例如,假设用户在浏览器界面中执行的操作是点击浏览器界面中的登录按钮,由于该登录操作的实现需要响应服务器向终端提供认证等一系列服务,且该一系列服务需要响应服务器调用API实现。此时,终端对该操作产生的操作响应为生成请求响应服务器提供认证等一系列服务的API调用请求,并向响应服务器发送该API调用请求。In an achievable manner, when the function indicated by the operation needs to be implemented with the cooperation of the server (hereinafter referred to as the response server), the operation response generated by the terminal to the operation may be to generate an operation request, which is used to request a response The server provides the terminal with services required to implement the function indicated by the operation, and sends the operation request to the response server. For example, the operation request may be an application programming interface (API) call request. For example, suppose that the operation performed by the user in the browser interface is to click the login button in the browser interface, because the realization of the login operation needs to respond to the server to provide a series of services such as authentication to the terminal, and the series of services need to respond to the server calling API achieve. At this time, the operation response generated by the terminal to the operation is to generate an API call request for a series of services such as authentication provided by the request response server, and send the API call request to the response server.
在另一种可实现方式中,当终端自身可以实现操作所指示的功能时,终端对操作产生的操作响应为终端执行该操作所指示的功能。例如,假设用户在文字处理应用程序界面中执行的操作是选择部分文字并指示高亮显示该部分文字,由于终端自身可以实现高亮显示文字的功能,因此可以确定终端对该操作产生的操作响应为高亮显示该部分文字。In another achievable manner, when the terminal itself can implement the function indicated by the operation, the operation response generated by the terminal to the operation is that the terminal executes the function indicated by the operation. For example, suppose that the operation performed by the user in the interface of a word processing application is to select part of the text and instruct to highlight the part of the text. Since the terminal itself can realize the function of highlighting the text, it can determine the operation response of the terminal to the operation To highlight this part of the text.
步骤205、当侦测到对操作产生操作响应时,终端获取并记录产生操作响应的响应时间和用于指示操作响应的响应信息。Step 205: When detecting that an operation response is generated to the operation, the terminal obtains and records the response time for generating the operation response and the response information used to indicate the operation response.
终端可以采用终端中预先设置的信息获取应用程序,获取并记录响应时间和响应信息。并且,由于终端对操作产生响应时,所产生的响应都需要终端中的组件执行,且组件在执行时是依据对应的指示参数执行的,因此,信息获取应用程序可以根据该指示参数确定响应信息。同时,组件执行响应的时间即为响应时间,因此,当信息获取应用程序侦测到对操作产生操作响应的时间即为该响应时间。其中,该步骤205中所采用的信息获取应用程序的设置方式,可以相应参考步骤202中信息获取应用程序的设置方式。The terminal may use the information acquisition application program preset in the terminal to acquire and record the response time and response information. In addition, since the terminal responds to the operation, the generated response needs to be executed by the component in the terminal, and the component is executed according to the corresponding indicator parameter. Therefore, the information acquisition application can determine the response information according to the indicator parameter . At the same time, the time when the component executes the response is the response time. Therefore, the time when the information acquisition application detects that the operation response to the operation is generated is the response time. Wherein, for the setting method of the information acquisition application adopted in step 205, reference may be made to the setting method of the information acquisition application in step 202 accordingly.
其中,该响应信息可以包括:接收操作的操作时间到产生响应的响应时间的等待时间、 指示响应成功或响应失败的指示信息、及用于指示信息类型的指示信息等。该指示信息用于指示信息为操作信息或响应信息。并且,当终端对操作产生的操作响应为生成并发送API调用请求时,响应信息还可以包括:针对操作产生响应时所请求调用的应用程序接口的接口信息。可选地,该接口信息可以为应用程序接口的标识(API ID)。Wherein, the response information may include: the waiting time from the operating time of receiving the operation to the response time of generating the response, the indication information indicating the success or failure of the response, and the indication information indicating the type of information, etc. The indication information is used to indicate that the information is operation information or response information. In addition, when the operation response generated by the terminal to the operation is to generate and send an API call request, the response information may also include: interface information of the application program interface requested to be called when the response is generated for the operation. Optionally, the interface information may be an application program interface identification (API ID).
需要说明的是,该步骤204和步骤205为可选步骤,在执行本申请实施例提供的对应用的监控方法时,可以根据应用需求选择是否执行该步骤204和步骤205。并且,终端也可以以采样的方式获取操作信息和响应信息,此时,操作信息还可以包括终端获取操作信息时的采样频率,响应信息还可以包括终端获取操作信息时的采样频率。It should be noted that step 204 and step 205 are optional steps. When the method for monitoring an application provided in the embodiment of the present application is executed, it is possible to choose whether to execute step 204 and step 205 according to application requirements. In addition, the terminal may also obtain operation information and response information in a sampling manner. In this case, the operation information may also include the sampling frequency when the terminal obtains the operation information, and the response information may also include the sampling frequency when the terminal obtains the operation information.
步骤206、终端发送监控信息至服务器。Step 206: The terminal sends monitoring information to the server.
其中,该监控信息包括:终端的标识、应用程序的标识、操作信息和操作时间。此时,终端可以将包括该终端的标识、应用程序的标识、操作信息和操作时间的监控信息发送至服务器。或者,当执行步骤204和步骤205时,该监控信息还可以包括:响应信息和响应时间。相应的,终端发送监控信息至服务器的过程包括:终端将包括该终端的标识、应用程序的标识、操作信息、操作时间、响应信息和响应时间的监控信息发送至服务器。Wherein, the monitoring information includes: the identification of the terminal, the identification of the application, the operation information, and the operation time. At this time, the terminal may send monitoring information including the terminal's identification, the application's identification, operation information, and operation time to the server. Alternatively, when step 204 and step 205 are performed, the monitoring information may further include: response information and response time. Correspondingly, the process of the terminal sending the monitoring information to the server includes: the terminal sending the monitoring information including the terminal's identification, the application's identification, operation information, operation time, response information, and response time to the server.
其中,由于该监控信息包括多种信息,终端向服务器发送该监控信息的实现方式可以有多种。例如,终端可以在每次向服务器发送信息的过程中,将包括终端的标识、应用程序的标识、操作信息和操作时间的多种信息一次性地发送至服务器。或者,终端可以在多次发送过程中,分别将该多种信息发送至服务器。并且,终端向服务器发送监控信息的时机也可以根据实际需求确定。例如,终端可以实时向服务器发送监控信息,即终端在每获取到一种信息后,可以将该信息发送至服务器。或者,终端可以周期性地向服务器发送监控信息,即在每经过一个信息采集周期后,终端可以将该信息采集周期内获取到的监控信息发送至服务器。Among them, since the monitoring information includes a variety of information, there may be multiple implementation ways for the terminal to send the monitoring information to the server. For example, each time the terminal sends information to the server, a variety of information including the terminal's identity, the application's identity, the operation information, and the operation time may be sent to the server at one time. Alternatively, the terminal may send the multiple types of information to the server during multiple sending processes. In addition, the timing for the terminal to send monitoring information to the server can also be determined according to actual needs. For example, the terminal can send monitoring information to the server in real time, that is, each time the terminal obtains a type of information, it can send the information to the server. Alternatively, the terminal may periodically send the monitoring information to the server, that is, after each information collection period, the terminal may send the monitoring information acquired during the information collection period to the server.
可选地,终端在记录信息的过程中,还可以生成校验码,并在向服务器发送监控信息时将该校验码一并发送至服务器。该校验码用于检验监控信息是否被篡改,以保证监控信息的准确性。相应的,服务器接收到监控信息和校验码后,可以按照与终端预先约定的检验方式,根据该监控信息生成校验码,并将该服务器生成的校验码与终端发送的校验码进行比较,当服务器生成的校验码与终端发送的校验码相同时,确定该监控信息未被篡改,当服务器生成的校验码与终端发送的校验码不同时,确定该监控信息被篡改,并丢弃该监控信息。Optionally, in the process of recording information, the terminal may also generate a check code, and send the check code to the server when sending monitoring information to the server. The verification code is used to check whether the monitoring information has been tampered with, so as to ensure the accuracy of the monitoring information. Correspondingly, after the server receives the monitoring information and the check code, it can generate the check code based on the monitoring information according to the check method agreed with the terminal in advance, and compare the check code generated by the server with the check code sent by the terminal. Compare, when the check code generated by the server is the same as the check code sent by the terminal, it is determined that the monitoring information has not been tampered with, and when the check code generated by the server is different from the check code sent by the terminal, it is determined that the monitoring information has been tampered with , And discard the monitoring information.
综上所述,在本申请实施例提供的操作监控方法中,通过记录包括该终端的标识、应用程序的标识、操作信息和操作时间的监控信息,并将该监控信息发送至服务器,由于该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,使得服务器能够根据该监控信息对用户在界面中执行的操作进行分析,并能够有效保证对用户在界面中执行的操作进行分析的准确性。To sum up, in the operation monitoring method provided by the embodiment of the present application, the monitoring information including the terminal identification, application identification, operation information, and operation time is recorded, and the monitoring information is sent to the server. The monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, so that the server can analyze the operation performed by the user in the interface according to the monitoring information, and can effectively ensure the analysis of the operation performed by the user in the interface Accuracy.
图3为本申请实施例提供的一种操作分析方法的流程图。如图3所示,该方法可以包括以下步骤:FIG. 3 is a flowchart of an operation analysis method provided by an embodiment of the application. As shown in Figure 3, the method may include the following steps:
步骤301、服务器接收终端发送的多个监控信息,每个监控信息至少包括终端的标识、终端显示的应用程序的界面所属的应用程序的标识、用户在该界面上执行的操作的操作时间、及用于指示该操作的操作信息。Step 301: The server receives multiple monitoring information sent by the terminal. Each monitoring information includes at least the identification of the terminal, the identification of the application to which the interface of the application displayed by the terminal belongs, the operation time of the operation performed by the user on the interface, and The operation information used to indicate the operation.
可选地,每个监控信息还可以包括:对操作信息产生响应的响应时间和用于指示所产生的响应的响应信息。Optionally, each monitoring information may further include: response time for generating a response to the operation information and response information for indicating the generated response.
需要说明的是,在服务器接收到监控信息后,可以先对监控信息进行预处理,然后存储该经过预处理的监控信息,以备后续使用。例如,服务器在接收到包括多个监控信息的数据流后,可以采用服务器中的消息处理模块对该数据流进行消息处理,然后使用服务器中的流处理模块对经过消息处理的监控信息进行数据筛选、数据校验和数据分类等流处理操作,再将经过流处理操作后的监控信息存储在数据库中。并且,当数据校验结果指示监控信息被篡改时,服务器中的告警模块可以发出告警信息。同时,服务器中还可以设置有存储模块和管理模块,该存储模块用于存储从终端接收的多个监控信息的原始数据,该管理模块用于对服务器中的各个模块进行管理。其中,消息处理模块可以为卡夫卡(kafka)消息处理系统,数据库可以为时序列数据库(time series database,tsdb)。It should be noted that, after the server receives the monitoring information, it can preprocess the monitoring information first, and then store the preprocessed monitoring information for subsequent use. For example, after the server receives a data stream that includes multiple monitoring information, it can use the message processing module in the server to perform message processing on the data stream, and then use the stream processing module in the server to perform data filtering on the monitoring information that has undergone message processing. Stream processing operations such as data verification and data classification, and then store the monitoring information after stream processing operations in the database. In addition, when the data verification result indicates that the monitoring information has been tampered with, the alarm module in the server can send out alarm information. At the same time, the server may also be provided with a storage module and a management module, the storage module is used to store the original data of multiple monitoring information received from the terminal, and the management module is used to manage each module in the server. The message processing module may be a Kafka (kafka) message processing system, and the database may be a time series database (tsdb).
步骤302、服务器根据多个监控信息,生成在终端所显示的界面上执行的操作的操作轨迹。Step 302: The server generates an operation track of the operation performed on the interface displayed on the terminal according to the multiple monitoring information.
服务器可以根据多个监控信息,按照不同监控信息所记载的操作的操作时间由早到晚的顺序,生成在终端所显示的界面上执行多个监控信息记录的操作的操作轨迹。或者,可以先按照指定筛选策略对该多个监控信息进行筛选,然后根据筛选得到的监控信息生成操作轨迹。该指定策略可以根据后续对操作行为进行分析的分析目的确定。例如,在需要分析终端运行同一应用程序时用户的操作行为时,服务器可以在终端中筛选携带有同一应用程序的标识的监控信息,并根据该携带有同一应用程序的监控信息生成操作轨迹。又例如,当服务器接收到多个终端发送的多个监控信息,且需要分析在同一终端中执行的操作行为时,可以在终端中筛选携带有同一终端的标识的监控信息,并根据该携带有同一终端的标识的监控信息生成操作轨迹。The server may generate an operation track for performing operations recorded by multiple monitoring information on the interface displayed by the terminal according to the multiple monitoring information, in the order of the operation time of the operation recorded in the different monitoring information from morning to evening. Alternatively, the multiple monitoring information can be screened according to a specified screening strategy first, and then an operation track can be generated based on the screened monitoring information. The designated strategy may be determined according to the analysis purpose of the subsequent analysis of the operation behavior. For example, when it is necessary to analyze the user's operation behavior when the terminal runs the same application program, the server can filter the monitoring information carrying the identity of the same application program in the terminal, and generate an operation track based on the monitoring information carrying the same application program. For another example, when the server receives multiple monitoring information sent by multiple terminals and needs to analyze the operation behavior performed in the same terminal, it can filter the monitoring information that carries the identity of the same terminal in the terminal, and according to the information carried The monitoring information of the identity of the same terminal generates an operation track.
其中,当监控信息包括:终端的标识、应用程序的标识、操作信息和操作时间时,该操作轨迹可以视为在终端分别显示多个监控信息记录的应用程序的界面中执行对应监控信息所记录的操作的过程的时序性描述。当监控信息还包括:终端的标识、应用程序的标识、操作信息、操作时间、响应信息和响应时间时,该操作轨迹可以视为在终端分别显示多个监控信息记录的应用程序的界面,在各个界面中执行操作,并根据各个操作进行响应的过程的时序性描述。Among them, when the monitoring information includes: terminal identification, application identification, operation information, and operation time, the operation track can be regarded as executing the corresponding monitoring information recorded in the interface of the application that displays multiple monitoring information records on the terminal. The sequential description of the process of operation. When the monitoring information also includes: terminal identification, application identification, operation information, operation time, response information, and response time, the operation track can be regarded as an interface that displays multiple monitoring information records on the terminal. The sequential description of the process of performing operations in each interface and responding to each operation.
示例地,表1示出了用户标识为XP-0012738的用户在终端中执行操作后,终端获取到的多个监控信息。每个监控信息包括:终端的标识、应用程序的标识、所执行的操作的操作时间和操作信息,及终端根据操作产生的响应的响应信息和响应时间。下面对其分别进行说明:For example, Table 1 shows multiple monitoring information obtained by the terminal after the user whose user ID is XP-0012738 performs an operation in the terminal. Each monitoring information includes: the identification of the terminal, the identification of the application, the operation time and operation information of the performed operation, and the response information and response time of the response generated by the terminal according to the operation. They are explained separately as follows:
用户在需要终端显示某个应用程序的界面时,可以执行指定操作,终端在接收到该指定操作后,终端根据该指定操作在显示屏中显示了该应用程序的界面。此时,终端可以获取并记录该终端的标识为191191919......182783(表1中未示出),及该应用程序的标识(表1中未示出)。当终端侦测到用户在20:29:17使用鼠标点击了界面中的“远程连接”按钮的操作时,终端可以确定该鼠标点击操作在该界面中的作用位置为界面中显示有“远程连接”按钮的位置。此时,如表1所示,终端获取并记录了用于指示该操作的操作信息(为便于区分称其为第一操作信息)为鼠标点击“远程连接”,操作时间为20:29:17。其中,“远程连接”的功能为建立终端与远程控制台之间的远程连接。When the user needs the terminal to display the interface of a certain application program, he can perform a designated operation. After the terminal receives the designated operation, the terminal displays the interface of the application program on the display screen according to the designated operation. At this time, the terminal can acquire and record the terminal's identifier as 191191919...182783 (not shown in Table 1) and the identifier of the application program (not shown in Table 1). When the terminal detects that the user clicks the "remote connection" button in the interface with the mouse at 20:29:17, the terminal can determine the position of the mouse click operation in the interface as "remote connection" is displayed in the interface The location of the button. At this time, as shown in Table 1, the terminal acquires and records the operation information used to indicate the operation (called the first operation information for easy distinction) as the mouse click "remote connection", and the operation time is 20:29:17 . Among them, the function of "remote connection" is to establish a remote connection between the terminal and the remote console.
终端在接收到鼠标点击“远程连接”按钮的操作后,终端可以根据该操作显示统一资源定位符(uniform resource locator,URL)地址为http://in**an.ua**ei.com/c**b/bus**ns的控制台页面,且终端将页面跳转显示为该控制台页面的时间为20:29:20。其中,终端跳转显示控制 台页面可视为终端根据鼠标点击“远程连接”按钮的操作所产生的操作响应(为便于区分称其为第一操作响应)。After the terminal receives the operation of clicking the "remote connection" button with the mouse, the terminal can display the uniform resource locator (URL) address according to the operation as http://in**an.ua**ei.com/ c**b/bus**ns console page, and the terminal displays the page jump to the console page at 20:29:20. Among them, the terminal's jump to display the console page can be regarded as the operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for the convenience of distinction, it is called the first operation response).
终端产生第一操作响应后,如表1所示,终端获取并记录了该第一操作响应的响应时间为20:29:20,及用于指示该第一操作响应的第一响应信息为:页面跳转为URL地址为http://in**an.ua**ei.com/c**b/bus**ns的控制台页面。After the terminal generates the first operation response, as shown in Table 1, the terminal acquires and records that the response time of the first operation response is 20:29:20, and the first response information used to indicate the first operation response is: The page jumps to the console page with the URL address http://in**an.ua**ei.com/c**b/bus**ns.
并且,为了建立远程连接,终端还需要获取远程控制台的URL地址,并向该远程控制台发送远程连接建立请求。因此,在终端显示控制台页面的过程中,终端还需要向远程服务器发送获取远程控制台的URL地址的API调用请求,并在获取到远程控制台的URL地址后,根据该远程控制台的URL地址向远程控制台发送远程连接建立请求。并且,终端在发送远程连接建立请求之前,还可以向远程服务器发送检测远程控制台的服务状态的API调用请求。In addition, in order to establish a remote connection, the terminal also needs to obtain the URL address of the remote console and send a remote connection establishment request to the remote console. Therefore, in the process of displaying the console page on the terminal, the terminal also needs to send an API call request to the remote server to obtain the URL address of the remote console, and after obtaining the URL address of the remote console, according to the URL of the remote console The address sends a remote connection establishment request to the remote console. In addition, before sending the remote connection establishment request, the terminal may also send an API call request for detecting the service status of the remote console to the remote server.
其中,终端向远程服务器发送获取远程控制台的URL地址的API调用请求,可视为终端根据鼠标点击“远程连接”按钮的操作所产生的操作响应(为便于区分称其为第二操作响应)。终端产生第二操作响应后,如表1所示,终端获取并记录了该第二操作响应的响应时间为20:29:21,及用于指示该第二操作响应的第二响应信息为:发起获取远程控制台的URL地址的API调用请求。Among them, the terminal sends an API call request to obtain the URL address of the remote console to the remote server, which can be regarded as an operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for easy distinction, it is called the second operation response) . After the terminal generates the second operation response, as shown in Table 1, the terminal obtains and records that the response time of the second operation response is 20:29:21, and the second response information used to indicate the second operation response is: Initiate an API call request to obtain the URL address of the remote console.
终端向远程服务器发送检测远程控制台的服务状态的API调用请求,可视为终端根据鼠标点击“远程连接”按钮的操作所产生的操作响应(为便于区分称其为第三操作响应)。终端产生第三操作响应后,如表1所示,终端获取并记录了该第三操作响应的响应时间为20:29:22,及用于指示该第三操作响应的第三响应信息为:发起检测远程控制台的服务状态的API调用请求。The terminal sends an API call request for detecting the service status of the remote console to the remote server, which can be regarded as an operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for easy distinction, it is called the third operation response). After the terminal generates the third operation response, as shown in Table 1, the terminal acquires and records that the response time of the third operation response is 20:29:22, and the third response information used to indicate the third operation response is: Initiate an API call request to detect the service status of the remote console.
终端向远程控制台发送远程连接建立请求,可视为终端根据鼠标点击“远程连接”按钮的操作所产生的操作响应(为便于区分称其为第四操作响应)。终端产生第四操作响应后,如表1所示,终端获取并记录了该第四操作响应的响应时间为20:29:23,及用于指示该第四操作响应的第四响应信息为:发起远程连接建立请求。The terminal sends a remote connection establishment request to the remote console, which can be regarded as an operation response generated by the terminal according to the operation of clicking the "remote connection" button with the mouse (for easy distinction, it is called the fourth operation response). After the terminal generates the fourth operation response, as shown in Table 1, the terminal obtains and records that the response time of the fourth operation response is 20:29:23, and the fourth response information used to indicate the fourth operation response is: Initiate a remote connection establishment request.
进一步地,在终端向远程服务器发送API调用请求后,该远程服务器还可以向终端发送用于反映该API调用请求是否成功调用对应接口的信息。相应的,该用于反映该API调用请求是否成功调用对应接口的信息也可以记载在对应的响应信息中(表1中未示出)。例如,终端向远程服务器发送获取远程控制台的URL地址的API调用请求后,若远程服务器根据该API调用请求调用对应的接口成功,该远程服务器可以向终端发送指示调用接口成功的状态码“200”,则可以将指示调用请求200正确的信息记载在第二操作响应的第二响应信息中。又例如,终端向远程服务器发送检测远程控制台的服务状态的API调用请求后,若远程服务器根据该API调用请求调用对应的接口失败,该远程服务器可以向终端发送指示调用接口失败的状态码“404”,则可以将指示调用请求404错误的信息记载在第四操作响应的第四响应信息中。Further, after the terminal sends the API call request to the remote server, the remote server may also send to the terminal information reflecting whether the API call request successfully calls the corresponding interface. Correspondingly, the information used to reflect whether the API call request successfully calls the corresponding interface can also be recorded in the corresponding response information (not shown in Table 1). For example, after the terminal sends an API call request to obtain the URL address of the remote console to the remote server, if the remote server successfully calls the corresponding interface according to the API call request, the remote server can send the status code "200" to the terminal indicating that the interface is successfully called. ", the information indicating that the invocation request 200 is correct may be recorded in the second response information of the second operation response. For another example, after the terminal sends an API call request for detecting the service status of the remote console to the remote server, if the remote server fails to call the corresponding interface according to the API call request, the remote server can send the terminal a status code indicating the failure to call the interface " 404", the information indicating the 404 error of the call request can be recorded in the fourth response information of the fourth operation response.
至此,终端已经获取了根据用户使用鼠标点击界面中的“远程连接”按钮的操作所产生的监控信息。如表1所示,该监控信息包括:第一操作信息和操作时间,第一响应信息和响应时间,第二响应信息和响应时间,第三响应信息和响应时间,第四响应信息和响应时间。So far, the terminal has obtained the monitoring information generated according to the operation of the user using the mouse to click the "remote connection" button in the interface. As shown in Table 1, the monitoring information includes: first operation information and operation time, first response information and response time, second response information and response time, third response information and response time, fourth response information and response time .
在终端与远程控制台之间建立远程连接后,用户还通过键盘在控制台页面中输入新建用户命令的操作,即使用键盘分别输入“a”、“d”、“d”、“u”、“s”、“e”和“r”。当将键盘输入一个字符的操作视为一次输入操作时,该输入新建用户命令的操作可视为执行了七次输入操作, 相应的,获取的每个监控信息可以包括用于指示一次输入操作的操作信息和操作时间。其中,用于指示使用键盘输入“a”的操作的第二操作信息为:键盘输入键码key“a”,操作时间为20:29:35。用于指示使用键盘输入“d”的操作的第三操作信息为:键盘输入键码key“d”,操作时间为20:29:36。用于指示使用键盘输入“d”的操作的第四操作信息为:键盘输入键码key“d”,操作时间为20:29:37。用于指示使用键盘输入“u”的操作的第五操作信息为:键盘输入键码key“u”,操作时间为20:29:38。用于指示使用键盘输入“s”的操作的第六操作信息为:键盘输入键码key“s”,操作时间为20:29:39。用于指示使用键盘输入“e”的操作的第七操作信息为:键盘输入键码key“e”,操作时间为20:29:40。用于指示使用键盘输入“r”的操作的第八操作信息为:键盘输入键码key“r”,操作时间为20:29:41。After establishing a remote connection between the terminal and the remote console, the user also uses the keyboard to enter the operation of creating a new user command on the console page, that is, use the keyboard to input "a", "d", "d", "u", "S", "e" and "r". When the operation of inputting a character on the keyboard is regarded as an input operation, the operation of inputting a new user command can be regarded as performing seven input operations. Accordingly, each acquired monitoring information can include an input operation indicating one input operation. Operating information and operating time. Among them, the second operation information used to instruct the operation of using the keyboard to input "a" is: the keyboard input key code key "a", and the operation time is 20:29:35. The third operation information used to indicate the operation of using the keyboard to input "d" is: the keyboard input key code key "d", and the operation time is 20:29:36. The fourth operation information for instructing the operation of using the keyboard to input "d" is: the keyboard input key code key "d", and the operation time is 20:29:37. The fifth operation information for instructing the operation of using the keyboard to input "u" is: the keyboard input key code key "u", and the operation time is 20:29:38. The sixth operation information for instructing the operation of using the keyboard to input "s" is: the keyboard input key code key "s", and the operation time is 20:29:39. The seventh operation information used to instruct the operation of using the keyboard to input "e" is: the keyboard input key code key "e", and the operation time is 20:29:40. The eighth operation information used to instruct the operation of using the keyboard to input "r" is: the keyboard input key code key "r", and the operation time is 20:29:41.
在用户输入新建用户命令的操作后,用户又在20:29:45使用鼠标点击了界面中的“关闭浏览器”按钮的操作,终端可以确定该鼠标点击操作在该界面中的作用位置为界面中显示有“关闭浏览器”按钮的位置。此时,如表1所示,终端又获取并记录了用于指示该操作的操作信息(为便于区分称其为第九操作信息)为鼠标点击“关闭浏览器”,操作时间为20:29:45。终端接收到该点击“关闭浏览器”按钮的操作会关闭浏览器。After the user enters the operation of creating a new user command, the user clicks the "close browser" button in the interface with the mouse at 20:29:45, and the terminal can determine the position of the mouse click in the interface as the interface The position where the "Close Browser" button is displayed in. At this time, as shown in Table 1, the terminal again acquires and records the operation information used to indicate the operation (called the ninth operation information for easy distinction) as the mouse click "close browser", and the operation time is 20:29 :45. When the terminal receives the operation of clicking the "close browser" button, the browser will be closed.
表1Table 1
Figure PCTCN2020133429-appb-000001
Figure PCTCN2020133429-appb-000001
根据该表1所示的多个监控信息,终端按照操作时间由早到晚的顺序,生成了如下操作轨迹,该操作轨迹按照操作时间由早到晚的顺序,展示了用户执行的操作和终端根据操作所产生的响应。操作轨迹如下:According to the multiple monitoring information shown in Table 1, the terminal generates the following operation trajectory in the order of operation time from morning to night, and the operation trajectory shows the operations performed by the user and the terminal in the order of operation time from morning to night. According to the response generated by the operation. The operation track is as follows:
第(1)步,鼠标点击了界面中的“远程连接”按钮,20:29:17;Step (1), the mouse clicked the "remote connection" button in the interface, 20:29:17;
第(2)步,页面跳转为URL地址为http://in**an.ua**ei.com/c**b/bus**ns的控制台页面,20:29:20;Step (2), the page jumps to the console page with URL address http://in**an.ua**ei.com/c**b/bus**ns, 20:29:20;
第(3)步,发起获取远程控制台的URL地址的API调用请求,20:29:21;Step (3), initiate an API call request to obtain the URL address of the remote console, 20:29:21;
第(4)步,发起检测远程控制台的服务状态的API调用请求,20:29:22;Step (4), initiate an API call request to detect the service status of the remote console, 20:29:22;
第(5)步,发起建立远程连接的请求,20:29:23;Step (5), initiate a request to establish a remote connection, 20:29:23;
第(6)步,键盘分别输入“a”、“d”、“d”、“u”、“s”、“e”和“r”,20:29:41;Step (6), keyboard input "a", "d", "d", "u", "s", "e" and "r" respectively, 20:29:41;
第(7)步,鼠标点击“关闭浏览器”,20:29:45。Step (7), mouse click "close browser", 20:29:45.
其中,当第二响应信息还包括指示调用请求200正确的信息时,该操作轨迹中的第(4)步可以为:发起检测远程控制台的服务状态的API调用请求,请求200正确,20:29:22。当第四响应信息还包括指示调用请求404错误的信息时,该操作轨迹中的第(5)步可以为:发起建立远程连接的请求,请求404错误,20:29:23。Wherein, when the second response information also includes information indicating that the call request 200 is correct, the step (4) in the operation track may be: initiate an API call request to detect the service status of the remote console, and the request 200 is correct, 20: 29:22. When the fourth response information also includes information indicating a 404 error in the call request, the step (5) in the operation track may be: initiate a request to establish a remote connection, request 404 error, 20:29:23.
步骤303、服务器根据操作轨迹对多个监控信息中的操作信息所指示的操作进行分析。Step 303: The server analyzes the operation indicated by the operation information in the multiple monitoring information according to the operation track.
对监控信息中的操作信息所指示的操作进行分析的实现方式可以有多种,下面以以下两种实现方式为例对其进行说明:There are many implementation ways to analyze the operation indicated by the operation information in the monitoring information. The following two implementation ways are used as examples to illustrate it:
在第一种可实现方式中,可以根据操作轨迹,模拟操作轨迹中记录的在界面上执行操作的过程,以根据该模拟的过程对在终端上执行操作的过程进行过程分析。或者,根据操作轨迹,模拟操作轨迹中记录的在界面上执行操作,并根据操作进行响应的过程,以根据该模拟的过程对在终端上执行操作并产生响应的过程进行过程分析。In the first achievable manner, the process of performing operations on the interface recorded in the operation trace can be simulated according to the operation trajectory, so as to perform process analysis on the process of performing operations on the terminal according to the simulated process. Or, according to the operation trajectory, the process of performing operations on the interface and responding according to the operations recorded in the operation trajectory is simulated, so as to perform process analysis on the process of performing operations on the terminal and generating responses according to the simulated process.
其中,该模拟操作过程是指:服务器根据操作轨迹,模拟终端执行操作轨迹所记录的操作时的操作环境,并在该操作环境中模拟执行操作轨迹所记录的操作,然后根据每个操作实现对应功能的过程。也即是,该模拟操作过程可视为对该操作轨迹所记录的操作进行场景重现的过程。类似的,模拟操作和响应的过程可视为场景重现对操作轨迹记录的操作及对该操作所产生的响应的过程。Among them, the simulation operation process refers to: the server simulates the operating environment when the terminal performs the operation recorded by the operation track according to the operation track, and simulates the operation recorded by the operation track in the operation environment, and then realizes the corresponding operation according to each operation. Functional process. That is, the simulated operation process can be regarded as a process of scene reproduction of the operation recorded on the operation track. Similarly, the process of simulating operation and response can be regarded as the process of scene reproducing the operation recorded on the operation track and the response to the operation.
在一种情况中,服务器通过对某个终端的操作轨迹所记录的操作进行场景模拟,服务器能够获知在该终端实现该操作过程中的每个操作环节发生的具体情况,并根据该具体情况对在终端上执行操作的过程进行操作过程审计和操作故障定位等分析操作。In one case, the server performs scene simulation on the operation recorded by the operation track of a certain terminal, and the server can learn the specific situation of each operation link in the process of realizing the operation on the terminal, and make a corresponding analysis according to the specific situation. Perform analysis operations such as operation process audit and operation fault location in the process of performing operations on the terminal.
其中,操作过程审计是根据在操作过程的各个环节中发生的具体情况,监督和审查该操作过程中是否有违反规定的行为。操作故障定位是当操作过程出现错误提示(操作错误提示或访问不成功提示等)时,根据在操作过程的各个环节中发生的具体情况,确定导致出现错误的原因的行为。Among them, the operation process audit is to supervise and review whether there is any violation of regulations during the operation process based on the specific circumstances that occur in each link of the operation process. Operation fault location is the behavior that determines the cause of the error according to the specific circumstances that occur in each link of the operation process when there is an error prompt (operation error prompt or access unsuccessful prompt, etc.) during the operation process.
由于通过场景模拟能够获知终端执行操作的过程中发生的具体情况,相较于无法获取操作过程中发生的具体情况的相关技术,通过根据该具体情况对终端执行操作的过程进行分析,能够能更清楚地确定终端执行操作的过程中的细节,能够有效地保证分析的准确性。Since scene simulation can learn the specific conditions that occur during the operation of the terminal, compared to related technologies that cannot obtain the specific conditions that occur during the operation, the process of performing operations on the terminal can be analyzed according to the specific conditions. Clearly determining the details of the operation performed by the terminal can effectively ensure the accuracy of the analysis.
在另一种情况中,服务器可以分别对多个终端的操作轨迹所记录的操作进行场景模拟,模拟出多个终端访问响应服务器,并请求响应服务器向对应终端提供业务服务的真实访问过程,并根据该模拟出的真实访问过程对响应服务器进行性能测试。In another case, the server can perform scenario simulations on the operations recorded by the operation traces of multiple terminals, simulate multiple terminals accessing the response server, and request the response server to provide the actual access process of the business service to the corresponding terminal, and Perform a performance test on the response server according to the simulated real access process.
例如,服务器可以根据百万个终端的操作轨迹,模拟出百万个终端同时访问响应服务器,并请求响应服务器向对应终端提供业务服务的真实访问过程,以测试响应服务器在向该百万个终端提供业务服务的负荷情况下的服务性能,实现对该响应服务器的压力测试,以便于根据该压力测试的结果优化响应服务器的服务性能。For example, the server can simulate millions of terminals accessing the response server at the same time based on the operation trajectory of millions of terminals, and request the response server to provide the real access process of business services to the corresponding terminal, so as to test that the response server is providing service to the million terminals. Provide the service performance under the load of the business service, and realize the stress test of the response server, so as to optimize the service performance of the response server according to the result of the stress test.
由于通过场景模拟出的访问过程比较接近真实的访问过程,能够较准确的反映真实访问过程中的具体情况,根据该场景模拟出的访问过程对服务器进行性能测试的结果更接近于真实访问过程中访问过程对服务器性能产生的影响,当根据该测试结果优化响应服务器的服务性能时,能够准确且有效地提升服务器的服务性能。Since the access process simulated by the scenario is closer to the real access process, it can more accurately reflect the specific conditions of the real access process, and the performance test results of the server based on the access process simulated by the scenario are closer to the real access process. The access process has an impact on server performance. When the service performance of the response server is optimized according to the test result, the service performance of the server can be improved accurately and effectively.
需要说明的是,在根据操作轨迹对操作进行场景模拟时,可以先根据操作轨迹生成脚本 程序,并通过执行该脚本程序实现操作的场景模拟过程,以提高场景模拟的自动化程度。其中,根据操作轨迹生成脚本程序的实现过程可以为:根据操作轨迹中所有操作和所有响应的时序,依次生成用于执行对应操作和响应的计算机程序,以得到该脚本程序。It should be noted that when performing scene simulation of an operation based on the operation trajectory, a script program can be generated based on the operation trajectory first, and the scene simulation process of the operation can be realized by executing the script program, so as to improve the automation degree of the scene simulation. The implementation process of generating the script program according to the operation trajectory may be: according to the timing of all operations and all responses in the operation trajectory, a computer program for executing corresponding operations and responses is sequentially generated to obtain the script program.
在第二种可实现方式中,服务器使用显示器展示操作轨迹。并且,根据对监控信息进行筛选时所使用的指定筛选策略,可以按照不同分析目的实现不同方式的展示。In the second achievable way, the server uses a display to show the operation trajectory. In addition, according to the specified screening strategy used when screening the monitoring information, different ways of displaying can be realized according to different analysis purposes.
例如,若操作轨迹是根据携带有同一应用程序的标识的监控信息生成的,则展示的操作轨迹为终端运行同一应用程序的过程。若操作轨迹是根据携带有同一终端的标识的监控信息生成的,则展示的操作轨迹为在该终端中执行的操作行为。For example, if the operation trajectory is generated based on monitoring information carrying the identifier of the same application program, the displayed operation trajectory is a process in which the terminal runs the same application program. If the operation trajectory is generated based on the monitoring information carrying the identity of the same terminal, the displayed operation trajectory is the operation behavior performed in the terminal.
并且,在展示操作轨迹时,其观看对象可以为管理操作分析工作的工作人员或用户等,通过该展示操作能够便于观看对象较直观地查看操作过程。In addition, when the operation track is displayed, the viewing object may be a worker or user who manages the operation analysis work, and the display operation can facilitate the viewing object to more intuitively view the operation process.
综上所述,在本申请实施例提供的操作分析方法中,服务器通过接收终端发送的监控信息,根据该监控信息生成操作的操作轨迹,并根据操作轨迹对用户在界面中执行的操作进行分析,由于该监控信息包括该终端的标识、应用程序的标识、操作信息和操作时间,使得该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,并能够保证对用户在界面中执行的操作进行分析的准确性。To sum up, in the operation analysis method provided by the embodiments of the present application, the server receives the monitoring information sent by the terminal, generates the operation trajectory of the operation based on the monitoring information, and analyzes the operation performed by the user in the interface according to the operation trajectory , Because the monitoring information includes the terminal’s identity, application’s identity, operation information, and operation time, the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, and can ensure that the user is in the interface The accuracy of the operations performed for analysis.
本申请实施例提供的操作监控方法和操作分析方法的步骤先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,例如,可以根据应用需求选择是否执行上述步骤204和步骤205。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。The sequence of steps of the operation monitoring method and the operation analysis method provided in the embodiments of the present application can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. For example, it is possible to choose whether to execute the above-mentioned step 204 and step 205 according to application requirements. Any person familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, which should be covered by the protection scope of this application, and therefore will not be repeated.
本申请实施例还提供了一种操作监控装置。如图4所示,该操作监控装置40可以包括:The embodiment of the application also provides an operation monitoring device. As shown in FIG. 4, the operation monitoring device 40 may include:
记录模块401,用于当侦测到终端显示应用程序的界面时,记录终端的标识和应用程序的标识。The recording module 401 is used to record the identification of the terminal and the identification of the application when it is detected that the interface of the application is displayed on the terminal.
记录模块401,还用于当侦测到用户在界面上执行操作时,记录操作的操作时间和用于指示操作的操作信息。The recording module 401 is also used to record the operation time of the operation and the operation information used to indicate the operation when it is detected that the user performs an operation on the interface.
发送模块402,用于发送监控信息至服务器,监控信息包括终端的标识、应用程序的标识、操作信息和操作时间。The sending module 402 is used to send monitoring information to the server. The monitoring information includes the identification of the terminal, the identification of the application program, the operation information, and the operation time.
可选地,如图5所示,该操作监控装置40还包括:Optionally, as shown in FIG. 5, the operation monitoring device 40 further includes:
响应模块403,用于当侦测到用户在界面上执行操作时,对操作产生操作响应。The response module 403 is used to generate an operation response to the operation when it is detected that the user performs an operation on the interface.
记录模块401,还用于记录产生操作响应的响应时间和用于指示操作响应的响应信息。The recording module 401 is also used to record the response time for generating the operation response and the response information used to indicate the operation response.
相应的,监控信息还包括响应信息和响应时间。Correspondingly, the monitoring information also includes response information and response time.
可选地,操作信息包括:用于指示操作的操作类型的类型信息和用于指示操作在界面中作用位置的位置信息。Optionally, the operation information includes: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation on the interface.
可选地,响应信息包括:针对操作产生响应时,调用的应用程序接口的接口信息。Optionally, the response information includes: interface information of an application program interface called when a response is generated for the operation.
综上所述,在本申请实施例提供的操作监控装置中,通过记录模块记录包括该终端的标识、应用程序的标识、操作信息和操作时间的监控信息,发送模块将该监控信息发送至服务器,由于该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,使得服务器能够根据该监控信息对用户在界面中执行的操作进行分析,且能够有效保证对用户在界面中执行的操作进行分析的准确性。In summary, in the operation monitoring device provided by the embodiment of the present application, the monitoring information including the terminal identification, application identification, operation information, and operation time is recorded through the recording module, and the sending module sends the monitoring information to the server Because the monitoring information can truly reflect the operations performed by the user on the front-end interface of the application, the server can analyze the operations performed by the user in the interface based on the monitoring information, and can effectively ensure that the user performs in the interface The accuracy of the analysis performed by the operation.
本申请实施例还提供了一种操作分析装置。如图6所示,该操作分析装置60可以包括:The embodiment of the present application also provides an operation analysis device. As shown in FIG. 6, the operation analysis device 60 may include:
接收模块601,用于接收终端发送的多个监控信息,每个监控信息包括终端的标识、终端显示的应用程序的界面所属的应用程序的标识、用户在界面上执行的操作的操作时间、及用于指示操作的操作信息。The receiving module 601 is used to receive multiple monitoring information sent by the terminal. Each monitoring information includes the identification of the terminal, the identification of the application to which the interface of the application displayed by the terminal belongs, the operation time of the operation performed by the user on the interface, and Operation information used to indicate the operation.
生成模块602,用于根据多个监控信息,生成在终端所显示应用程序的界面上执行的操作的操作轨迹,操作轨迹按照每个操作的操作时间记录。The generating module 602 is configured to generate an operation trace of the operation performed on the interface of the application program displayed on the terminal according to a plurality of monitoring information, and the operation trace is recorded according to the operation time of each operation.
可选地,如图7所示,该操作分析装置60还包括:Optionally, as shown in FIG. 7, the operation analysis device 60 further includes:
处理模块603,用于根据操作轨迹生成脚本程序。The processing module 603 is used to generate a script program according to the operation trajectory.
处理模块603,还用于执行脚本程序以模拟操作轨迹中记录的在界面上执行的操作。The processing module 603 is also used to execute a script program to simulate the operation performed on the interface recorded in the operation track.
可选地,每个监控信息还包括:用于指示终端对监控信息所记录的操作产生的响应的响应信息,及产生响应的时间。Optionally, each monitoring information further includes: response information used to indicate the response generated by the terminal to the operation recorded by the monitoring information, and the time for generating the response.
相应的,操作轨迹还包括响应信息及响应时间。Correspondingly, the operation track also includes response information and response time.
综上所述,在本申请实施例提供的操作分析装置中,通过接收模块接收终端发送的监控信息,生成模块根据该监控信息生成操作的操作轨迹,处理模块根据操作轨迹对用户在界面中执行的操作进行分析,由于该监控信息包括该终端的标识、应用程序的标识、操作信息和操作时间,使得该监控信息能够真实地反映用户对应用程序的前端界面所执行的操作,并能够保证对用户在界面中执行的操作进行分析的准确性。To sum up, in the operation analysis device provided by the embodiment of the present application, the monitoring information sent by the terminal is received through the receiving module, the generating module generates the operation trajectory according to the monitoring information, and the processing module executes the user in the interface according to the operation trajectory. Analyze the operation of the application. Since the monitoring information includes the terminal’s identity, application’s identity, operation information, and operation time, the monitoring information can truly reflect the operation performed by the user on the front-end interface of the application, and ensure that the The accuracy of the analysis of the operations performed by the user in the interface.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the device and module described above can be referred to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本申请实施例提供了一种计算设备,该计算设备包括处理器和存储器。存储器中存储有计算机程序。处理器执行计算机程序时,该计算设备实现本申请实施例提供的操作监控方法。可选地,该计算设备可以为终端,其结构示意图请参考图1中终端的结构。An embodiment of the present application provides a computing device, which includes a processor and a memory. A computer program is stored in the memory. When the processor executes the computer program, the computing device implements the operation monitoring method provided in the embodiment of the present application. Optionally, the computing device may be a terminal. For a schematic diagram of the structure, please refer to the structure of the terminal in FIG. 1.
本申请实施例还提供了另一种计算设备,该计算设备包括处理器和存储器。存储器中存储有计算机程序。处理器执行计算机程序时,该计算设备实现本申请实施例提供的操作分析方法。可选地,该计算设备可以为服务器,其结构示意图请参考图1中服务器的结构。An embodiment of the present application also provides another computing device, which includes a processor and a memory. A computer program is stored in the memory. When the processor executes the computer program, the computing device implements the operation analysis method provided in the embodiment of the present application. Optionally, the computing device may be a server. For a schematic diagram of the structure, please refer to the structure of the server in FIG. 1.
本申请实施例提供了一种非易失性的存储介质,当存储介质中的指令被处理器执行时,实现本申请实施例提供的操作监控方法。The embodiment of the present application provides a non-volatile storage medium, and when an instruction in the storage medium is executed by a processor, the operation monitoring method provided in the embodiment of the present application is implemented.
本申请实施例还提供了另一种非易失性的存储介质,当存储介质中的指令被处理器执行时,实现本申请实施例提供的操作分析方法。The embodiment of the present application also provides another non-volatile storage medium. When the instructions in the storage medium are executed by the processor, the operation analysis method provided in the embodiment of the present application is implemented.
本申请实施例提供了一种包含指令的计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行本申请实施例提供的操作监控方法。The embodiment of the present application provides a computer program product containing instructions. When the computer program product runs on a computer, the computer executes the operation monitoring method provided by the embodiment of the present application.
本申请实施例还提供了另一种包含指令的计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行本申请实施例提供的操作分析方法。The embodiment of the present application also provides another computer program product containing instructions. When the computer program product runs on a computer, the computer executes the operation analysis method provided by the embodiment of the present application.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program to instruct relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
在本申请实施例中,术语“第一”、“第二”和“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“至少一个”是指一个或多个,术语“多个”指两个或两个以上,除非另有明确的限定。In the embodiments of the present application, the terms "first", "second" and "third" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance. The term "at least one" refers to one or more, and the term "plurality" refers to two or more, unless expressly defined otherwise.
本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this application is merely an association relationship describing associated objects, which means that there can be three types of relationships. For example, A and/or B can mean that there is A alone, and both A and B exist. There are three cases of B. In addition, the character "/" in this text generally indicates that the associated objects before and after are in an "or" relationship.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的构思和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the concept and principle of this application shall be included in the protection of this application. Within range.

Claims (14)

  1. 一种操作监控方法,其特征在于,所述方法应用于终端,所述方法包括:An operation monitoring method, characterized in that the method is applied to a terminal, and the method includes:
    当侦测到所述终端显示应用程序的界面时,记录所述终端的标识和所述应用程序的标识;When it is detected that the terminal displays the interface of the application program, record the identification of the terminal and the identification of the application program;
    当侦测到用户在所述界面上执行操作时,记录所述操作的操作时间和用于指示所述操作的操作信息;When it is detected that the user is performing an operation on the interface, record the operation time of the operation and the operation information used to indicate the operation;
    发送监控信息至服务器,所述监控信息包括所述终端的标识、所述应用程序的标识、所述操作信息和所述操作时间。Send monitoring information to the server, where the monitoring information includes the identification of the terminal, the identification of the application, the operation information, and the operation time.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当侦测到用户在所述界面上执行操作时,对所述操作产生操作响应;When it is detected that the user is performing an operation on the interface, generate an operation response to the operation;
    记录产生所述操作响应的响应时间和用于指示所述操作响应的响应信息;Record the response time for generating the operation response and the response information used to indicate the operation response;
    其中,所述监控信息还包括所述响应信息和所述响应时间。Wherein, the monitoring information further includes the response information and the response time.
  3. 根据权利要求1或2所述的方法,其特征在于,所述操作信息包括:用于指示所述操作的操作类型的类型信息和用于指示所述操作在所述界面中作用位置的位置信息。The method according to claim 1 or 2, wherein the operation information comprises: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation in the interface .
  4. 根据权利要求2所述的方法,其特征在于,所述响应信息包括:针对所述操作产生响应时,调用的应用程序接口的接口信息。The method according to claim 2, wherein the response information comprises: interface information of an application program interface that is called when a response is generated for the operation.
  5. 一种操作分析方法,其特征在于,所述方法应用于服务器,所述方法包括:An operation analysis method, characterized in that the method is applied to a server, and the method includes:
    接收终端发送的多个监控信息,每个监控信息包括所述终端的标识、所述终端显示的应用程序的界面所属的应用程序的标识、用户在所述界面上执行的操作的操作时间、及用于指示所述操作的操作信息;Receive a plurality of monitoring information sent by the terminal, each monitoring information includes the identification of the terminal, the identification of the application to which the interface of the application displayed by the terminal belongs, the operation time of the operation performed by the user on the interface, and Operation information used to indicate the operation;
    根据所述多个监控信息,生成在所述终端所显示应用程序的界面上执行的操作的操作轨迹,所述操作轨迹按照每个操作的操作时间记录。According to the plurality of monitoring information, an operation trace of the operation performed on the interface of the application program displayed on the terminal is generated, and the operation trace is recorded according to the operation time of each operation.
  6. 根据权利要求5所述的方法,其特征在于,在所述根据所述多个监控信息,生成在所述终端所显示应用程序的界面上执行的操作的操作轨迹之后,所述方法还包括:The method according to claim 5, characterized in that, after generating an operation trace of an operation performed on an interface of an application program displayed on the terminal according to the plurality of monitoring information, the method further comprises:
    根据所述操作轨迹生成脚本程序;Generate a script program according to the operation trajectory;
    执行所述脚本程序以模拟所述操作轨迹中记录的在所述界面上执行的操作。The script program is executed to simulate the operation performed on the interface recorded in the operation track.
  7. 根据权利要求5所述的方法,其特征在于,每个监控信息还包括:用于指示所述终端对所述监控信息所记录的操作产生的响应的响应信息,及产生响应的时间;所述操作轨迹还包括所述响应信息及响应时间。The method according to claim 5, wherein each monitoring information further comprises: response information for indicating the response generated by the terminal to the operation recorded by the monitoring information, and the time when the response is generated; The operation track also includes the response information and response time.
  8. 一种操作监控装置,其特征在于,所述装置包括:An operation monitoring device, characterized in that the device includes:
    记录模块,用于当侦测到所述终端显示应用程序的界面时,记录所述终端的标识和所述应用程序的标识;The recording module is used to record the terminal's identification and the application's identification when it is detected that the terminal is displaying the interface of the application program;
    所述记录模块,还用于当侦测到用户在所述界面上执行操作时,记录所述操作的操作时间和用于指示所述操作的操作信息;The recording module is further configured to record the operation time of the operation and the operation information used to indicate the operation when it is detected that the user is performing an operation on the interface;
    发送模块,用于发送监控信息至服务器,所述监控信息包括所述终端的标识、所述应用程序的标识、所述操作信息和所述操作时间。The sending module is configured to send monitoring information to the server, where the monitoring information includes the identification of the terminal, the identification of the application, the operation information, and the operation time.
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    响应模块,用于当侦测到用户在所述界面上执行操作时,对所述操作产生操作响应;The response module is used to generate an operation response to the operation when it is detected that the user is performing an operation on the interface;
    所述记录模块,还用于记录产生所述操作响应的响应时间和用于指示所述操作响应的响应信息;The recording module is also used to record the response time for generating the operation response and the response information used to indicate the operation response;
    其中,所述监控信息还包括所述响应信息和所述响应时间。Wherein, the monitoring information further includes the response information and the response time.
  10. 根据权利要求8或9所述的装置,其特征在于,所述操作信息包括:用于指示所述操作的操作类型的类型信息和用于指示所述操作在所述界面中作用位置的位置信息。The device according to claim 8 or 9, wherein the operation information comprises: type information used to indicate the operation type of the operation and position information used to indicate the position of the operation in the interface .
  11. 根据权利要求9所述的装置,其特征在于,所述响应信息包括:针对所述操作产生响应时,调用的应用程序接口的接口信息。The device according to claim 9, wherein the response information comprises: interface information of an application program interface that is invoked when a response is generated for the operation.
  12. 一种操作分析装置,其特征在于,所述装置包括:An operation analysis device, characterized in that the device comprises:
    接收模块,用于接收终端发送的多个监控信息,每个监控信息包括所述终端的标识、所述终端显示的应用程序的界面所属的应用程序的标识、用户在所述界面上执行的操作的操作时间、及用于指示所述操作的操作信息;The receiving module is used to receive a plurality of monitoring information sent by the terminal, each monitoring information includes the identification of the terminal, the identification of the application to which the interface of the application displayed by the terminal belongs, and the operation performed by the user on the interface The operating time of and the operating information used to indicate the operation;
    生成模块,用于根据所述多个监控信息,生成在所述终端所显示应用程序的界面上执行的操作的操作轨迹,所述操作轨迹按照每个操作的操作时间记录。The generating module is configured to generate an operation trajectory of the operation performed on the interface of the application program displayed on the terminal according to the multiple monitoring information, and the operation trajectory is recorded according to the operation time of each operation.
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device according to claim 12, wherein the device further comprises:
    处理模块,用于根据所述操作轨迹生成脚本程序;A processing module for generating a script program according to the operation trajectory;
    所述处理模块,还用于执行所述脚本程序以模拟所述操作轨迹中记录的在所述界面上执行的操作。The processing module is also used to execute the script program to simulate the operation performed on the interface recorded in the operation track.
  14. 根据权利要求12所述的装置,其特征在于,每个监控信息还包括:用于指示所述终端对所述监控信息所记录的操作产生的响应的响应信息,及产生响应的时间;所述操作轨迹还包括所述响应信息及响应时间。The device according to claim 12, wherein each monitoring information further comprises: response information for indicating the response of the terminal to the operation recorded by the monitoring information, and the time when the response is generated; The operation track also includes the response information and response time.
PCT/CN2020/133429 2019-12-27 2020-12-02 Operation monitoring method and apparatus, operation analysis method and apparatus WO2021129335A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911380429.7 2019-12-27
CN201911380429.7A CN111198797B (en) 2019-12-27 2019-12-27 Operation monitoring method and device and operation analysis method and device

Publications (1)

Publication Number Publication Date
WO2021129335A1 true WO2021129335A1 (en) 2021-07-01

Family

ID=70746076

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/133429 WO2021129335A1 (en) 2019-12-27 2020-12-02 Operation monitoring method and apparatus, operation analysis method and apparatus

Country Status (2)

Country Link
CN (1) CN111198797B (en)
WO (1) WO2021129335A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198797B (en) * 2019-12-27 2021-12-31 华为技术有限公司 Operation monitoring method and device and operation analysis method and device
CN112083860A (en) * 2020-09-07 2020-12-15 珠海格力电器股份有限公司 Control method and device of mobile terminal
CN114024849B (en) * 2022-01-05 2022-04-01 广州市成格信息技术有限公司 Intelligent AI operation and maintenance perception method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278630A1 (en) * 2004-06-14 2005-12-15 Bracey William M Tracking user operations
CN103488507A (en) * 2013-09-18 2014-01-01 北京思特奇信息技术股份有限公司 User behavior trajectory playback method
CN105306257A (en) * 2015-09-24 2016-02-03 浪潮(北京)电子信息产业有限公司 Method and system for collecting user experience
CN106682910A (en) * 2015-11-04 2017-05-17 中国移动通信集团公司 Information processing method, system and related equipment
CN109710354A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Page monitor method, page restoring method, device, equipment and medium
CN111198797A (en) * 2019-12-27 2020-05-26 华为技术有限公司 Operation monitoring method and device and operation analysis method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6014746B2 (en) * 2013-03-01 2016-10-25 株式会社日立製作所 Unauthorized use detection method and unauthorized use detection device
CN107545424B (en) * 2016-06-23 2020-11-27 腾讯科技(深圳)有限公司 Data monitoring processing method, device and system
US20180035606A1 (en) * 2016-08-05 2018-02-08 Romello Burdoucci Smart Interactive and Autonomous Robotic Property Maintenance Apparatus, System, and Method
CN108304301B (en) * 2017-12-15 2021-03-19 创新先进技术有限公司 Method and device for recording user behavior track
CN108647133A (en) * 2018-04-28 2018-10-12 深圳市小牛在线互联网信息咨询有限公司 User's operation track recording method, device, storage medium and computer equipment
CN109376050A (en) * 2018-09-03 2019-02-22 平安普惠企业管理有限公司 A kind of APP monitoring method, computer readable storage medium and terminal device
CN110275811A (en) * 2019-05-24 2019-09-24 北京指掌易科技有限公司 A kind of method of mobile terminal H5 application behavior monitoring
CN110362446B (en) * 2019-06-19 2022-12-23 平安普惠企业管理有限公司 Mobile application abnormal operation monitoring method and device, storage medium and electronic equipment
CN110515830A (en) * 2019-07-15 2019-11-29 平安普惠企业管理有限公司 Operation trace method for visualizing, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278630A1 (en) * 2004-06-14 2005-12-15 Bracey William M Tracking user operations
CN103488507A (en) * 2013-09-18 2014-01-01 北京思特奇信息技术股份有限公司 User behavior trajectory playback method
CN105306257A (en) * 2015-09-24 2016-02-03 浪潮(北京)电子信息产业有限公司 Method and system for collecting user experience
CN106682910A (en) * 2015-11-04 2017-05-17 中国移动通信集团公司 Information processing method, system and related equipment
CN109710354A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Page monitor method, page restoring method, device, equipment and medium
CN111198797A (en) * 2019-12-27 2020-05-26 华为技术有限公司 Operation monitoring method and device and operation analysis method and device

Also Published As

Publication number Publication date
CN111198797B (en) 2021-12-31
CN111198797A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
US11704177B2 (en) Session triage and remediation systems and methods
WO2021129335A1 (en) Operation monitoring method and apparatus, operation analysis method and apparatus
WO2019196274A1 (en) Web page testing method and apparatus, electronic device, and medium
US8490059B2 (en) Cross-browser testing of a web application
US7139978B2 (en) Recording user interaction with an application
US8566648B2 (en) Automated testing on devices
US11249833B2 (en) Error detection and remediation using an error signature
US7464004B2 (en) Troubleshooting to diagnose computer problems
US10705946B2 (en) Techniques for real time server testing in a production environment
WO2013075612A1 (en) Auto login method and device
US10521333B2 (en) Automated system for fixing and debugging software deployed to customers
WO2018184361A1 (en) Application test method, server, terminal, and storage media
US20160359989A1 (en) Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN110381026B (en) Business service packaging and accessing system, method and device for rich client
US9477399B1 (en) Automated interaction for mobile applications
US10135684B2 (en) Differential staging of devices in bulk enrollment
CN113362173A (en) Anti-duplication mechanism verification method, anti-duplication mechanism verification system, electronic equipment and storage medium
US9201591B1 (en) Automated coverage monitoring of mobile applications
RU2669172C2 (en) Method and monitoring system of web-site consistency
CN112015715A (en) Industrial Internet data management service testing method and system
WO2015039585A1 (en) Method and device for testing software reliability
US20230131682A1 (en) Facilitated live analysis of screen content
CN113986768A (en) Application stability testing method, device, equipment and medium
US9858549B2 (en) Business transaction resource usage tracking

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20905142

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20905142

Country of ref document: EP

Kind code of ref document: A1