CN108306787B - Application monitoring method and related equipment - Google Patents
Application monitoring method and related equipment Download PDFInfo
- Publication number
- CN108306787B CN108306787B CN201711481493.5A CN201711481493A CN108306787B CN 108306787 B CN108306787 B CN 108306787B CN 201711481493 A CN201711481493 A CN 201711481493A CN 108306787 B CN108306787 B CN 108306787B
- Authority
- CN
- China
- Prior art keywords
- information
- client
- application
- detected
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 238000012544 monitoring process Methods 0.000 title claims abstract description 71
- 230000008569 process Effects 0.000 claims abstract description 54
- 238000012795 verification Methods 0.000 claims description 59
- 230000006870 function Effects 0.000 claims description 40
- 230000004044 response Effects 0.000 claims description 33
- 230000002159 abnormal effect Effects 0.000 claims description 23
- 230000005856 abnormality Effects 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012360 testing method Methods 0.000 claims description 16
- 238000001514 detection method Methods 0.000 claims description 5
- 238000012806 monitoring device Methods 0.000 claims 3
- 238000004891 communication Methods 0.000 description 25
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 235000019800 disodium phosphate Nutrition 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1425—Traffic logging, e.g. anomaly detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/535—Tracking the activity of the user
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses an application monitoring method and related equipment, wherein the method comprises the following steps: starting an operation monitoring function aiming at the application to be detected; monitoring the operation process aiming at the application to be detected; and sending operation information corresponding to the abnormity to a server under the condition that the abnormity occurs in the operation process is monitored. By the embodiment of the invention, the operation process of the application to be detected can be monitored, and the efficiency of solving the operation problem of the application to be detected is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an application monitoring method and a related device.
Background
At present, most of the applied compatibility tests are performed based on the existing terminal equipment or the existing operating system, and the tests in the mode have many problems. On one hand, due to the fact that terminal equipment on the market is various in types, omission is avoided when the terminal equipment is applied to compatibility testing; on the other hand, with the continuous upgrade of the terminal device operating system, the situation that the application is incompatible with the upgraded operating system may occur, which may cause problems in the installation or operation process of the application and affect the user experience.
Disclosure of Invention
The embodiment of the invention provides an application monitoring method and related equipment, which can monitor the operation process of an application and is beneficial to improving the efficiency of solving the operation problem of the application.
In a first aspect, an embodiment of the present invention provides an application monitoring method, where the method is applied to a client, and includes:
starting an operation monitoring function aiming at the application to be detected;
monitoring the operation process aiming at the application to be detected;
and sending operation information corresponding to the abnormity to a server under the condition that the abnormity occurs in the operation process is monitored.
Optionally, the specific implementation of monitoring the operation process for the application to be detected is as follows: monitoring each step of operation for the application to be detected; and recording the operation sequence of each step of operation and the feedback information corresponding to each step of operation.
Optionally, when it is monitored that the operation process is abnormal, the specific implementation manner of sending the operation information corresponding to the abnormality to the server is as follows: determining whether feedback information corresponding to the current step operation is consistent with preset feedback information corresponding to the current step operation; if not, determining that the operation process is abnormal; and sending the operation information corresponding to the abnormality to a server, wherein the operation information comprises the current step operation, the feedback information corresponding to the current step operation, the previous step operation of the current step operation and the feedback information corresponding to the previous step operation.
Optionally, before the operation monitoring function for the application to be detected is started, an information verification request may be sent to the server when it is detected that the application to be detected is started, where the information verification request carries the device information and the system information of the client; and executing the step of opening the operation monitoring function for the application to be detected when a response to the information verification request transmitted by the server is received, the response to the information verification request being generated when the server fails to verify at least one of the device information and the system information of the client.
In a second aspect, an embodiment of the present invention provides another application monitoring method, where the method is applied to a server, and includes:
receiving operation information corresponding to an abnormality sent by a client when monitoring that the operation process of an application to be detected is abnormal;
and generating early warning information according to the operation information.
Optionally, when monitoring that an operation process of a currently running application to be detected is abnormal, the receiving client may further receive an information verification request sent by the client before sending operation information corresponding to the abnormality, where the information verification request carries device information and system information of the client; responding to the information verification request, and respectively matching the equipment information and the system information of the client with the equipment information and the system information stored in a database; and if the device information does not match with the device information of the client side in the database and/or the system information does not match with the system information of the client side, determining that at least one of the device information and the system information of the client side is not verified, and sending a response of the information verification request to the client side.
In a third aspect, an embodiment of the present invention provides an application monitoring apparatus, which includes means for performing the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides another application monitoring apparatus, which includes means for performing the method of the second aspect.
In a fifth aspect, an embodiment of the present invention provides a client, where the server includes a processor, a communication interface, and a memory, where the processor, the communication interface, and the memory are connected to each other, where the communication interface is controlled by the processor to send and receive messages, and the memory is used to store a computer program that supports the server to execute the above method, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a server, which includes a processor, a network interface, and a memory, where the processor, the communication interface, and the memory are connected to each other, where the communication interface is controlled by the processor to send and receive messages, the memory is used to store a computer program that supports the server to execute the above method, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the second aspect.
In a seventh aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method of the first aspect.
In an eighth aspect, the present invention provides another computer-readable storage medium, which stores a computer program, the computer program comprising program instructions, which, when executed by a processor, cause the processor to execute the method of the second aspect.
In the embodiment of the invention, the client can start the operation monitoring function aiming at the application to be detected, monitor the operation process aiming at the application to be detected, and send the operation information corresponding to the abnormality to the server under the condition of monitoring that the operation process is abnormal. Furthermore, after receiving the operation information sent by the client, the server can generate early warning information according to the operation information, which is beneficial to improving the efficiency of solving the operation problem of the application to be detected.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an application monitoring method according to an embodiment of the present invention;
FIG. 3a is a schematic view of an operation interface provided in an embodiment of the present invention;
FIG. 3b is a schematic view of another exemplary operating interface provided in accordance with an embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of another application monitoring method provided in the embodiment of the present invention;
FIG. 5 is a schematic block diagram of an application monitoring apparatus provided in an embodiment of the present invention;
fig. 6 is a schematic block diagram of a client according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of another application monitoring apparatus provided by an embodiment of the present invention;
fig. 8 is a schematic block diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The client described in the present invention may be a terminal running an application to be detected, or an application running on the terminal, and specifically, the application may be the application to be detected, or another application having a binding relationship with the application to be detected. When the client is the application to be detected, the device information and the system information of the client described in the invention are the device information and the system information of the terminal running the application to be detected.
The device information described in the present invention may include hardware configuration information, storage information, model number, and the like of the client; the system information described in the present invention may include the system type, the system version number, and the like of the client.
In order to better understand the embodiments of the present invention, a communication system to which the embodiments of the present invention are applicable is described below.
Fig. 1 is a schematic structural diagram of a communication system to which an embodiment of the present invention is applicable. As shown in fig. 1, the communication system may include a client 101 and a server 102. The client 101 may be an application program or a terminal, such as a smart phone, a tablet computer, a vehicle-mounted computer, and the like; or wearable devices, such as sports bracelets, telephone watches, and the like; but may also be a non-portable communication device such as a desktop computer.
In a specific implementation, the client 101 in the communication system may open an operation monitoring function for an application to be detected, monitor an operation process for the application to be detected, and send operation information corresponding to an abnormality to the server 102 when the operation process is monitored to be abnormal; the server 102 may receive operation information corresponding to an abnormality sent by the client when the client monitors that the operation process of the application to be detected is abnormal, and generate early warning information according to the operation information.
The following further describes the application monitoring method and related devices provided by the embodiments of the present invention.
Referring to fig. 2, fig. 2 is a schematic flow chart of an application monitoring method according to an embodiment of the present invention, and as shown in the drawing, the application monitoring method may include:
201. and the client starts an operation monitoring function aiming at the application to be detected.
There may be one or more applications to be detected, which is not limited in this respect.
In a feasible embodiment, the client may be an application to be detected, and the application to be detected is pre-integrated with a Software Development Kit (SDK) corresponding to the operation monitoring function. When the application to be detected is started, the operation monitoring function integrated in the application can be started according to default setting or indication of a user.
In a feasible embodiment, the client may be a terminal running the application to be detected, the client integrates an SDK corresponding to the operation monitoring function in advance, and when detecting that the application to be detected is started, the client may start the operation monitoring function for the application to be detected according to default settings or an instruction of a user. When the number of the applications to be detected is multiple, that is, the client starts the operation monitoring function for the multiple applications to be detected, the name information of each application to be detected can be acquired, different applications can be distinguished according to the name information, and distinguishing and monitoring of the multiple applications are facilitated.
202. The client monitors the operation process for the application to be detected.
203. And the client sends the operation information corresponding to the abnormity to the server under the condition that the abnormity occurs in the operation process is monitored.
In a feasible embodiment, the client may monitor each step of operation for the application to be detected, record an operation sequence of each step of operation, and record feedback information corresponding to each step of operation, further determine whether the feedback information corresponding to the current step of operation is consistent with preset feedback information corresponding to the current step of operation, if not, determine that an operation process is abnormal, and send operation information corresponding to the abnormality to the server. The operation information may include a current step operation, feedback information corresponding to the current step operation, a previous step operation of the current step operation, and feedback information corresponding to the previous step operation.
Each step of operation may be an operation input by the user for the application to be detected, for example, an operation input by the user by clicking or pressing a certain function button, or an operation input by switching a page, and the like. The feedback information corresponding to each step of operation may be response information of the client after each step of operation input by the user, and correspondingly, the preset feedback information is preset response information corresponding to each preset step of operation. For example, if a certain step of operation is a sliding operation of a user inputting an upward sliding page, and the client responds to the response information after the sliding operation, the page content after the sliding operation may be responded, that is, the feedback information corresponding to the sliding operation may be the page content after the client responds to the sliding operation. The preset feedback information corresponding to the sliding operation may be preset page content after the preset client responds to the upward sliding operation.
The determination, by the client, that the feedback information corresponding to the current step operation is inconsistent with the preset feedback information corresponding to the current step operation may include multiple situations:
after the client starts the operation monitoring function for the application to be detected, each step of operation of a user for the application to be detected can be detected in real time or according to preset duration, and if the response of the current step of operation is not detected, it can be determined that the feedback information corresponding to the current step of operation is inconsistent with the preset feedback information corresponding to the current step of operation.
For example, the client is the application a to be detected, the preset time is 3s, when the application a to be detected starts the operation monitoring function, the user inputs the click operation for logging in for the application a to be detected, and after the application a to be detected detects the click operation, the user waits for 3s, and the response corresponding to the click operation is still not detected. At this time, the application a to be detected may determine that the feedback information corresponding to the click operation is inconsistent with the preset feedback information.
After the client starts the operation monitoring function for the application to be detected, each step of operation of the user for the application to be detected can be detected in real time or according to preset duration, and if the fact that the response information responding to the current step of operation is inconsistent with the preset response information of the current step of operation is detected, the fact that the feedback information corresponding to the current step of operation is inconsistent with the preset feedback information corresponding to the current step of operation can be determined.
For example, the client is an application a to be detected, the current step operation is a sliding operation of sliding a current page to the right, the current page is an application page of the application a to be detected, and the preset response information of the client responding to the sliding operation is as follows: the preset page content after the client slides the current page to the right is shown in fig. 3 a. When the application a to be detected starts the operation monitoring function, the user inputs a sliding operation of sliding right for the current page, after the application a to be detected responds to the sliding operation, the page content of the current page is as shown in fig. 3b, and the page content of the current page is determined to be inconsistent with the preset page content by analyzing the page content of fig. 3b, that is, the response information responding to the sliding operation is inconsistent with the preset response information. At this time, the application a to be detected may determine that the feedback information corresponding to the sliding operation is inconsistent with the preset feedback information.
In a feasible embodiment, the client may be a terminal for running the applications to be detected, and when the client simultaneously monitors the operation process of one or more applications to be detected, each step of operation for different applications to be detected may be distinguished and monitored according to name information of each application to be detected, and an operation sequence of each step of operation for different applications to be detected and feedback information corresponding to each step of operation may be distinguished and recorded. Further, when the client monitors that the feedback information corresponding to the current step operation of a certain application to be detected is inconsistent with the preset feedback information corresponding to the current step operation, it can be determined that the operation process of the application to be detected is abnormal, and then the name information of the application to be detected, the current step operation, the feedback information of the current step operation, the previous step operation of the current step operation and the feedback information of the previous step operation are sent to the server.
When the operation sequence of each step of operation of different applications to be detected and the feedback information corresponding to each step of operation are recorded in the client side, different data recording tables can be set for the different applications to be detected. For example, there are two applications to be detected, which are an application a to be detected and an application B to be detected, and the client end may separately record the operation sequence of each step of operation of the applications a and B to be detected, and when the feedback information corresponding to each step of operation is received, set the data recording tables shown in tables 1-1 and 1-2.
TABLE 1-1
Application name to be detected | Operation of each step and sequence | Feedback information corresponding to operation |
Application A to be tested | First step of operation | Feedback information 1 |
Application A to be tested | Second step of operation | Feedback information 2 |
Application A to be tested | The third step of operation | Feedback messageInformation 3 |
Tables 1 to 2
Application name to be detected | Operation of each step and sequence | Feedback information corresponding to operation |
Application B to be detected | First step of operation | Feedback information 01 |
Application B to be detected | Second step of operation | Feedback information 02 |
Application B to be detected | The third step of operation | Feedback information 03 |
204. And the server receives operation information corresponding to the abnormity sent by the client when monitoring that the operation process of the application to be detected is abnormal.
205. And the server generates early warning information according to the operation information.
In a possible embodiment, when receiving the operation information sent by the client, the server may generate the warning information according to the current step operation, the feedback information of the current step operation, the previous step operation of the current step operation, and the feedback information of the previous step operation, which are included in the operation information. Furthermore, the developer can timely and accurately find the operation problem of the application to be detected according to the early warning information, and then timely release a new version to solve the problem, so that the efficiency of solving the operation problem of the application to be detected is improved.
In a possible embodiment, when the client performs step 203 and sends the operation information to the server, the name information of the application to be detected may also be sent together. For this situation, the early warning information may include the operation information and name information of the application to be detected. By adopting the method and the device, when the server receives a plurality of operation information, the development personnel can distinguish each operation information and the target application to be detected corresponding to each operation information more intuitively through the name information, and the efficiency of solving the operation problem of the target application to be detected is further improved.
In the embodiment of the invention, the client can start the operation monitoring function aiming at the application to be detected, monitor the operation process aiming at the application to be detected, and send the operation information corresponding to the abnormality to the server under the condition of monitoring that the operation process is abnormal. Furthermore, after receiving the operation information sent by the client, the server can generate early warning information according to the operation information, which is beneficial to improving the efficiency of solving the operation problem of the application to be detected.
Referring to fig. 4, fig. 4 is a schematic flow chart of another application monitoring method according to an embodiment of the present invention, and as shown in the drawing, the application monitoring method may include:
401. when detecting that the application to be detected is started, the client sends an information verification request to the server, wherein the information verification request carries equipment information and system information of the client.
402. The server receives an information verification request sent by the client, wherein the information verification request carries equipment information and system information of the client.
403. The server responds to the information checking request, and matches the equipment information and the system information of the client with the equipment information and the system information stored in the database respectively.
404. And if the device information does not match with the device information of the client side in the database and/or the system information does not match with the system information of the client side, the server determines that at least one of the device information and the system information of the client side is not verified, and sends a response of the information verification request to the client side.
The device information and the system information stored in the database may be device information and system information that an application to be detected has passed a test, and the test is a compatibility test.
In a feasible embodiment, the client may send an information verification request to the server after establishing a communication connection with the server, after receiving the information verification request, the server may match the device information and the system information of the client, which are carried in the information verification request, with the device information and the system information stored in the database, respectively, and if the matching result is that the device information does not exist in the database and the device information of the client is matched, and/or the system information does not exist and the system information of the client is matched, the client may determine that at least one of the device information and the system information of the client fails to be verified, and send a response of the information verification request to the client.
The server determines that at least one of the device information and the system information of the client fails to be checked, which may specifically include the following cases: if the matching result is that the device information does not exist in the database and is matched with the device information of the client, the client can determine that the device information of the client is not verified; if the matching result is that the system information does not exist in the database and is matched with the system information of the client, the client can determine that the system information of the client is not verified; if the matching result is that the database does not have the device information matched with the device information of the client or the system information matched with the system information of the client, the client can determine that the verification of the device information and the system information of the client is failed.
For example, the server stores therein in advance the device information 010, 011, and 012; the server receives the information verification request, the server can match the client device information carried in the information verification request with the pre-stored device information 010, 011 and 012, match the client system information carried in the information verification request with the pre-stored system information X01, X02 and X03, and if the matching result shows that the device information does not match the client device information in the database, the server can determine that the client device information is not verified and send a response of the information verification request to the client.
405. The client executes step 406 upon receiving a response to the information check request sent by the server.
And the response of the information verification request is generated when at least one of the verification of the equipment information and the system information of the client side is failed by the server.
406. And the client starts an operation monitoring function aiming at the application to be detected.
407. The client monitors the operation process for the application to be detected.
408. And the client sends the operation information corresponding to the abnormity to the server under the condition that the abnormity occurs in the operation process is monitored.
The specific implementation manner of steps 406-408 can refer to the related description of steps 201-203 in the above embodiment, and is not described herein again.
409. And the server receives operation information corresponding to the abnormity sent by the client when monitoring that the operation process of the application to be detected is abnormal.
The specific implementation manner of step 409 may refer to the related description of step 204 in the foregoing embodiment, and is not described herein again.
410. And the server generates early warning information according to the operation information.
In a feasible embodiment, after receiving the operation information sent by the client, the server can further obtain the matching result determined before, and generate the early warning information according to the operation information and the matching result, where the early warning information may include the operation information and the matching result, so that a developer can timely and accurately find the operation problem of the application to be detected according to the early warning information, and then timely release a new version to solve the problem, thereby improving the efficiency of solving the operation problem of the application to be detected.
For example, the operation information includes a current step operation corresponding to an abnormality when the client monitors that the operation process of the application to be detected is abnormal, feedback information of the current step operation, a previous step operation of the current step operation, and feedback information of the previous step operation. Then, after receiving the operation information sent by the client, the server may further obtain the matching result determined before, and generate, in combination with the operation information and the matching result, the early warning information including the current step operation, the feedback information of the current step operation, the previous step operation of the current step operation, the feedback information of the previous step operation, and the matching result.
In a possible embodiment, when no abnormality occurs in an operation process corresponding to the preset function, the client may send an information update request to the server, where the information update request may be used to request the server to store at least one of the device information and the system information of the client in the database. Further, after receiving the information updating request sent by the client, the server may respond to the information updating request and store at least one of the device information and the system information of the client in the database in combination with the matching result.
The preset function may be a main function of the application to be detected. For example, when the application to be detected is an instant messaging application, the preset function can be a corresponding function such as dialing, answering a call, adding a contact person and the like; for another example, when the application to be detected is a payment application, the preset function may be a corresponding function such as login, payment, transfer, and the like.
In a specific implementation, after receiving the information updating request sent by the client, the server may further analyze a matching result determined before, and if the matching result is that the device information does not exist in the database and is matched with the device information of the client, the server may store the device information of the client into the database; if the matching result is that the system information does not exist in the database and is matched with the system information of the client, the server can store the system information of the client into the database; if the matching result is that the database has neither the device information matched with the device information of the client nor the system information matched with the system information of the client, the server can store the device information and the system information of the client into the database.
In a feasible embodiment, the application to be detected may report other error information to the server besides the operation information to the server in the running process, where the other error information may be memory occupation information, application crash information, network speed information, file damage information, and the like. Further, after receiving the error information, the server may mark the error information, so that a developer may distinguish different error information according to the mark, and when an error corresponding to the error information is resolved, the server may remove the mark.
In the embodiment of the invention, the client can send an information verification request to the server when detecting that the application to be detected is started, after receiving the information verification request sent by the client, the server can respectively match the device information and the system information of the client carried in the information verification request with the device information and the system information stored in the database, and if the device information does not match with the device information of the client and/or the system information does not match with the system information of the client, the server determines that at least one of the device information and the system information of the client fails to be verified and sends a response of the information verification request to the client. Further, when receiving a response of the information verification request sent by the server, the client can start an operation monitoring function for the application to be detected, monitor the operation process for the application to be detected, and send the operation information corresponding to the abnormality to the server when monitoring that the operation process is abnormal, so that after receiving the operation information, the server can generate early warning information according to the operation information, and the efficiency of solving the operation problem of the application to be detected is improved.
An embodiment of the present invention provides an application monitoring apparatus, which includes modules for executing the method described in fig. 2 or fig. 4. Specifically, referring to fig. 5, a schematic block diagram of an apparatus according to an embodiment of the present invention is provided. The device of the embodiment comprises: a start module 50, a monitoring module 51 and a sending module 52, wherein:
the starting module 50 is used for starting the operation monitoring function aiming at the application to be detected;
a monitoring module 51, configured to monitor an operation process for the application to be detected;
a sending module 52, configured to send, when the monitoring module monitors that the operation process is abnormal, operation information corresponding to the abnormality to a server.
Optionally, the monitoring module 51 is specifically configured to:
monitoring each step of operation for the application to be detected;
and recording the operation sequence of each step of operation and the feedback information corresponding to each step of operation.
Optionally, the sending module 52 includes:
a determining unit 520, configured to determine whether feedback information corresponding to a current step operation is consistent with preset feedback information corresponding to the current step operation, and determine that an operation process is abnormal when the feedback information is inconsistent with the preset feedback information;
a sending unit 521, configured to send operation information corresponding to the exception to a server, where the operation information includes a current step operation, feedback information corresponding to the current step operation, a previous step operation of the current step operation, and feedback information corresponding to the previous step operation.
Optionally, the apparatus further comprises: a detection module 53 and a receiving module 54, wherein:
a detection module 53, configured to detect whether an application to be detected is started;
the sending module 52 is further configured to send an information verification request to the server when the detection module 53 detects that the application to be detected is started, where the information verification request carries the device information and the system information of the client;
a receiving module 54, configured to receive a response to the information verification request sent by the server;
the starting module 50 is further configured to start the operation monitoring function for the application to be detected when the receiving module 54 receives a response of the information verification request sent by the server, where the response of the information verification request is generated when the server fails to verify at least one of the device information and the system information of the client.
It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. Each functional module in the embodiments of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a form of hardware or a form of a software functional unit.
In the case of an integrated module, the apparatus may comprise: the device comprises a processing module, a receiving module and a sending module. The processing module may be used to control and manage the actions of the device, and/or for other processes of the techniques described herein. The receiving module and the sending module may be used to support communication of the apparatus with other network entities, for example with the functional modules (or units) or network entities shown in fig. 5. The apparatus may also include a storage module to store program code and data for the apparatus.
The processing module may be a processor or a controller, and may be, for example, a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The receiving module may be a receiver and the transmitting module may be a transmitter, or the receiving module and the transmitting module may be integrated into a communication interface. The storage module may be a memory.
When the processing module is a processor, the receiving module and the sending module are integrated into a communication interface, and the storage module is a memory, the client according to the embodiment of the present invention may be the client shown in fig. 6.
Referring to fig. 6, the client may include: a processor 601, a memory 602, and a communication interface 603 and bus 604. Wherein, the processor 601, the memory 602 and the communication interface 603 are connected to each other by a bus 604; the bus 604 may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
In a specific implementation, the processor 601, the memory 602, and the communication interface 603 described in this embodiment of the present application may execute an implementation manner of the client described in the method embodiment of fig. 2 or fig. 4 provided in this embodiment of the present application, and may also execute an implementation manner of the apparatus described in fig. 5 of the present application, which is not described herein again.
Another application monitoring apparatus is provided in an embodiment of the present invention, and includes modules for performing the methods described in fig. 2 or fig. 4. Specifically, referring to fig. 7, a schematic block diagram of an apparatus according to an embodiment of the present invention is provided. The device of the embodiment comprises: a receiving module 70 and a generating module 71, wherein:
the receiving module 70 is configured to receive operation information corresponding to an abnormality sent by a client when the client monitors that the operation process of the application to be detected is abnormal;
and the generating module 71 is configured to generate early warning information according to the operation information.
Optionally, the apparatus further comprises: a matching module 72 and a sending module 73, wherein:
the receiving module 70 is further configured to receive an information verification request from a client, where the information verification request carries device information and system information of the client;
a matching module 72, configured to respond to the information verification request, and match the device information and the system information of the client with the device information and the system information stored in the database, respectively;
a sending module 73, configured to determine that at least one of the device information and the system information of the client fails to be checked if there is no device information in the database that matches the device information of the client and/or there is no system information that matches the system information of the client, and send a response to the information check request to the client.
It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. Each functional module in the embodiments of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a form of hardware or a form of a software functional unit.
In the case of an integrated module, the apparatus may comprise: the device comprises a processing module, a receiving module and a sending module. The processing module may be used to control and manage the actions of the device, and/or for other processes of the techniques described herein. The receiving module and the sending module may be used to support communication of the apparatus with other network entities, for example with the functional modules (or units) or network entities shown in fig. 7. The apparatus may also include a storage module to store program code and data for the apparatus.
The processing module may be a processor or a controller, and may be, for example, a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The receiving module may be a receiver and the transmitting module may be a transmitter, or the receiving module and the transmitting module may be integrated into a communication interface. The storage module may be a memory.
When the processing module is a processor, the receiving module and the sending module are integrated into a communication interface, and the storage module is a memory, the server according to the embodiment of the present invention may be the server shown in fig. 8.
Referring to fig. 8, the server may include: a processor 801, a memory 802, and a communication interface 803, and a bus 804. Wherein, the processor 801, the memory 802 and the communication interface 803 are connected with each other by a bus 804; the bus 804 may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
In a specific implementation, the processor 801, the memory 802, and the communication interface 803 described in this embodiment of the present application may execute an implementation manner of the server described in the method embodiment of fig. 2 or fig. 4 provided in this embodiment of the present application, and may also execute an implementation manner of the apparatus described in fig. 7 of the present application, which is not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the computer program may perform the steps performed by the client in the method embodiment described in fig. 2 or fig. 4.
Another computer-readable storage medium is provided in an embodiment of the present invention, and stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, the computer program may perform the steps performed by the server in the embodiment of the method shown in fig. 2 or fig. 4.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. An application monitoring method, which is applied to a client, and comprises the following steps:
when detecting that the application to be detected is started, sending an information verification request to a server, wherein the information verification request carries equipment information and system information of the client;
when a response of the information verification request sent by the server is received, opening an operation monitoring function aiming at the application to be detected, wherein the response of the information verification request is generated when the server does not pass verification of at least one of the equipment information and the system information of the client aiming at the equipment information and the system information which pass the test of the application to be detected and are stored in a database, and the test is a compatibility test;
monitoring the operation process aiming at the application to be detected;
under the condition that the abnormality occurs in the operation process, sending operation information corresponding to the abnormality to a server;
and when detecting that no abnormal operation process corresponding to the preset function occurs, sending an information updating request to the server, wherein the information updating request is used for requesting the server to store at least one of the equipment information and the system information of the client into a database.
2. The method according to claim 1, wherein the monitoring of the operational process for the application to be detected comprises:
monitoring each step of operation for the application to be detected;
and recording the operation sequence of each step of operation and the feedback information corresponding to each step of operation.
3. The method according to claim 2, wherein when it is monitored that an abnormality occurs in the operation process, sending operation information corresponding to the abnormality to a server includes:
determining whether feedback information corresponding to the current step operation is consistent with preset feedback information corresponding to the current step operation;
if not, determining that the operation process is abnormal;
and sending the operation information corresponding to the abnormality to a server, wherein the operation information comprises the current step operation, the feedback information corresponding to the current step operation, the previous step operation of the current step operation and the feedback information corresponding to the previous step operation.
4. An application monitoring method, which is applied to a server, the method comprising:
receiving an information verification request sent by a client, wherein the information verification request carries equipment information and system information of the client, and the information verification request is sent by the client when the client detects that an application to be detected is started;
responding the information verification request, and respectively matching the equipment information and the system information of the client with the equipment information and the system information which are stored in a database and pass the test aiming at the application to be detected, wherein the test is a compatibility test;
if the device information does not match the device information of the client and/or the system information does not match the system information of the client in the database, determining that at least one of the device information and the system information of the client fails to be verified, and sending a response of the information verification request to the client, so that after the client receives the response of the information verification request, an operation monitoring function aiming at the application to be detected is started, and an operation process aiming at the application to be detected is monitored;
receiving operation information corresponding to the abnormity sent by the client when monitoring that the operation process of the application to be detected is abnormal;
generating early warning information according to the operation information;
receiving an information updating request sent by the client, wherein the information updating request is sent when the client detects that no operation process corresponding to a preset function is abnormal;
and responding to the information updating request, and storing at least one of the equipment information and the system information of the client side in a database.
5. An application monitoring device, the application monitoring device being configured at a client, the device comprising:
the detection module is used for detecting whether the application to be detected is started or not;
the sending module is used for sending an information verification request to a server when the detection module detects that the application to be detected is started, wherein the information verification request carries the equipment information and the system information of the client;
the receiving module is used for receiving a response of the information verification request sent by the server, the response of the information verification request is generated when the server fails to verify at least one of the equipment information and the system information of the client based on the equipment information and the system information which are stored in the database and pass the test of the application to be detected, and the test is a compatibility test;
the starting module is used for starting the operation monitoring function aiming at the application to be detected when the receiving module receives the response of the information verification request sent by the server;
the monitoring module is used for monitoring the operation process aiming at the application to be detected;
the sending module is used for sending the operation information corresponding to the abnormity to a server under the condition that the monitoring module monitors that the operation process is abnormal;
the sending module is further configured to send an information update request to the server when it is detected that no abnormality occurs in any operation process corresponding to the preset function, where the information update request is used to request the server to store at least one of the device information and the system information of the client in a database.
6. An application monitoring device, the device comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an information verification request from a client, the information verification request carries equipment information and system information of the client, and the information verification request is sent by the client when the client detects that an application to be detected is started;
the matching module is used for responding to the information verification request and respectively matching the equipment information and the system information of the client with the equipment information and the system information which are stored in a database and pass the test aiming at the application to be detected;
a sending module, configured to determine that at least one of the device information and the system information of the client fails to be verified if no device information in the database matches the device information of the client and/or no system information matches the system information of the client, and send a response to the information verification request to the client, so that after receiving the response to the information verification request, the client opens an operation monitoring function for an application to be detected, and monitors an operation process for the application to be detected;
the receiving module is further configured to receive operation information corresponding to the abnormality, which is sent by the client when the client monitors that the operation process of the application to be detected is abnormal;
the generating module is used for generating early warning information according to the operation information;
the receiving module is further configured to receive an information update request sent by the client, where the information update request is sent by the client when the client detects that no abnormality occurs in any operation process corresponding to a preset function;
the matching module is further used for responding to the information updating request and storing at least one of the equipment information and the system information of the client side in a database.
7. A client, comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, and wherein the processor is configured to invoke the program instructions to perform the method of any one of claims 1-3.
8. A server, comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, and wherein the processor is configured to invoke the program instructions to perform the method of claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711481493.5A CN108306787B (en) | 2017-12-29 | 2017-12-29 | Application monitoring method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711481493.5A CN108306787B (en) | 2017-12-29 | 2017-12-29 | Application monitoring method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108306787A CN108306787A (en) | 2018-07-20 |
CN108306787B true CN108306787B (en) | 2021-01-08 |
Family
ID=62868340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711481493.5A Active CN108306787B (en) | 2017-12-29 | 2017-12-29 | Application monitoring method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108306787B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111722949B (en) * | 2019-03-18 | 2024-04-05 | 北京京东尚科信息技术有限公司 | Information processing method, terminal, server and storage medium |
CN109992940B (en) * | 2019-03-29 | 2021-03-12 | 北京金山云网络技术有限公司 | Authentication method, device, system and authentication server |
CN110457548A (en) * | 2019-07-24 | 2019-11-15 | 深圳壹账通智能科技有限公司 | Method and related equipment for abnormal front-end operation reminder based on experience database |
CN110471852A (en) * | 2019-08-12 | 2019-11-19 | 中国工商银行股份有限公司 | Online test method, system and electronic equipment |
CN112380540B (en) * | 2020-11-13 | 2024-09-03 | 武汉虹旭信息技术有限责任公司 | Android application security detection method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955768A (en) * | 2016-04-22 | 2016-09-21 | 北京奇虎科技有限公司 | Method and device for providing application use performance information |
CN106326025A (en) * | 2016-08-23 | 2017-01-11 | 乐视控股(北京)有限公司 | Method and device for processing abnormality of browser |
-
2017
- 2017-12-29 CN CN201711481493.5A patent/CN108306787B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108306787A (en) | 2018-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108306787B (en) | Application monitoring method and related equipment | |
CN109361562B (en) | Automatic testing method based on associated network equipment access | |
US8661543B2 (en) | Mobile terminal having security diagnosis functionality and method of making diagnosis on security of mobile terminal | |
CN109634258B (en) | Bus message checking method, device and system for hardware-in-loop test | |
CN109218407B (en) | Code management and control method based on log monitoring technology and terminal equipment | |
CN109254864A (en) | A kind of application failure restorative procedure, device and electronic equipment | |
CN110334007A (en) | Function interface call verification method and device, electronic equipment and storage medium | |
CN111045921A (en) | Automated interface testing method, device, computer equipment and storage medium | |
CN108470000B (en) | Automatic testing method, system and medium for communication terminal software | |
CN106872879B (en) | Hardware wireless debugging method and device, communication chip and electronic equipment | |
CN111786855A (en) | Network card pressure testing method and device, electronic equipment and storage medium | |
CN106980565B (en) | Upgrading process monitoring method and device | |
CN111211929A (en) | Fault positioning method, fault positioning device, control equipment and intelligent equipment | |
CN110221948A (en) | Test script generation method, device, computer installation and storage medium | |
CN108880897A (en) | Acceptance method, device, computer equipment and the storage medium of server | |
CN114491555A (en) | Equipment safety detection method and device, computer equipment and storage medium | |
CN110928770A (en) | Software testing method, device, system, storage medium and electronic equipment | |
CN108345533A (en) | Application program debugging method, device and server | |
CN111198797A (en) | Operation monitoring method and device, operation analysis method and device | |
CN107395451B (en) | Processing method, device and equipment for internet traffic abnormity and storage medium | |
CN115242621A (en) | Network private line monitoring method, device, equipment and computer readable storage medium | |
CN113300912B (en) | Equipment testing method and device and electronic equipment | |
CN112650557A (en) | Command execution method and device | |
US20240311226A1 (en) | Stand-alone iot device for repairing failures on a computing device | |
KR101625890B1 (en) | Test automation system and test automation method for detecting change for signature of internet application traffic protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |