CN107665142B - Method, terminal and computer readable storage medium for detecting interruption of application program business process - Google Patents
Method, terminal and computer readable storage medium for detecting interruption of application program business process Download PDFInfo
- Publication number
- CN107665142B CN107665142B CN201710607832.3A CN201710607832A CN107665142B CN 107665142 B CN107665142 B CN 107665142B CN 201710607832 A CN201710607832 A CN 201710607832A CN 107665142 B CN107665142 B CN 107665142B
- Authority
- CN
- China
- Prior art keywords
- page
- application program
- preset condition
- business process
- loaded
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3438—Recording 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a method, a terminal and a computer readable storage medium for detecting interruption of an application program service flow. The method comprises the following steps: acquiring a configuration file corresponding to an application program to judge whether a service flow of the application program needs to be detected or not; if the detection is needed, acquiring a page loaded by the application program; if the loaded page meets a first preset condition, marking the service process starting on the page and starting timing; if the currently loaded page does not meet the second preset condition, judging whether the timed time exceeds the preset time or whether the process of the application program is finished; and if the timed time exceeds the preset time or the process of the application program is finished, determining that the business process is interrupted and uploading the recorded business process information to the server. The embodiment of the invention can detect the interruption of the service flow of the application program and upload the service flow information to the server so as to enable relevant personnel to optimize the service flow of the application program and improve the user experience.
Description
Technical Field
The present invention relates to the field of electronic terminal technologies, and in particular, to a method, a terminal, and a computer-readable storage medium for detecting an interruption of an application program service flow.
Background
For the business processes involved in the application program, such as registration, login, transaction, etc., the success rate and user experience of the business processes are very much concerned by operators and production personnel, but currently, the completion times of the business processes can only be determined through background data, and information such as whether the user is interrupted during operation, the interruption times, the time spent by the business processes, etc. cannot be known. Products and operators do not have the information data as reference, and data support is not provided when the business process of the application program is optimized, and meanwhile, the experience of users cannot be improved in a targeted manner.
Disclosure of Invention
The embodiment of the invention provides a method, a terminal and a computer readable storage medium for detecting interruption of an application program service flow, which can detect the interruption of the application program service flow.
In a first aspect, an embodiment of the present invention provides a method for detecting an interruption of a service flow of an application program, where the method includes:
acquiring a configuration file corresponding to an application program;
judging whether the service process of the application program needs to be detected or not according to the configuration file;
if the detection is needed, acquiring a page loaded by the application program;
judging whether the loaded page meets a first preset condition or not;
if the first preset condition is met, marking the service process starting on the page and starting timing;
judging whether the currently loaded page meets a second preset condition or not;
if the second preset condition is not met, judging whether the timed time exceeds the preset time or whether the process of the application program is finished;
and if the timed time exceeds the preset time or the process of the application program is finished, determining that the business process is interrupted and uploading the recorded business process information to the server, wherein the business process information comprises the page of the detected business process and the timed time.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
the configuration acquisition unit is used for acquiring a configuration file corresponding to the application program;
the detection judging unit is used for judging whether the service process of the application program needs to be detected or not according to the configuration file;
the page acquisition unit is used for acquiring a page loaded by the application program if the service flow of the application program needs to be detected;
the starting judgment unit is used for judging whether the loaded page meets a first preset condition or not;
the marking timing unit is used for marking the start of the business process on the page and starting timing if the loaded page meets a first preset condition;
the ending judgment unit is used for judging whether the currently loaded page meets a second preset condition or not;
the time judging unit is used for judging whether the timed time exceeds the preset time or whether the process of the application program is finished if the currently loaded page does not meet the second preset condition;
and the uploading unit is used for determining that the business process is interrupted and uploading the recorded business process information to the server if the timed time exceeds the preset time or the process of the application program is finished, wherein the business process information comprises the page of the detected business process and the timed time.
In a third aspect, an embodiment of the present invention provides another terminal, where the terminal includes:
a memory and a processor; the memory stores program data for realizing the detection of the interruption of the application program service flow; the processor is configured to execute the program data stored in the memory to perform the method of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing one or more program data, which can be executed by one or more processors to implement the method of the first aspect.
According to the embodiment of the invention, by acquiring the loaded page, if the loaded page meets a first preset condition, a service flow is marked on the page to start and time counting is started, if the currently loaded page does not meet a second preset condition, if the timed time exceeds the preset time or the process of the application program is finished, the service flow is determined to be interrupted, and the recorded service flow information is uploaded to the server. The embodiment of the invention can detect the interruption of the service flow of the application program and upload the service flow information to the server so as to enable relevant personnel to optimize the service flow of the application program and improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for detecting an interruption of a service flow of an application according to an embodiment of the present invention;
FIG. 2 is a schematic sub-flow diagram provided in the embodiment of FIG. 1;
FIG. 3 is a schematic flow chart diagram of a method for detecting an interruption in a business process of an application according to another embodiment of the present invention;
fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a detection judgment unit provided by an embodiment of the present invention;
fig. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention;
fig. 7 is a schematic block diagram of a terminal according to another 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 some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
It will also be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first preset condition may be referred to as a second preset condition, and similarly, the second preset condition may be referred to as a first preset condition, without departing from the scope of the present invention. The first preset condition and the second preset condition are both preset conditions, but they are not the same preset condition.
In specific implementations, the terminal described in the embodiments of the present invention includes, but is not limited to, a portable device such as a mobile phone, a laptop computer, or a tablet computer, in which an application program can be installed and run. It should also be understood that in some embodiments the terminal is not a portable communication device, but includes a desktop computer, television, etc. in which applications may be installed and run.
Fig. 1 is a schematic flowchart of a method for detecting an interruption of a service flow of an application according to an embodiment of the present invention. The method includes S101 to S109.
S101, obtaining a configuration file corresponding to the application program. The configuration file corresponding to the application program comprises an identifier for detecting whether the service flow of the application program needs to be detected or a condition for detecting whether the service flow of the application program needs to be detected. The configuration file may be on the terminal local to the application or on the server side. If the configuration file is on the local terminal of the application program, the local corresponding configuration file of the application program can be obtained when the application program is started. The configuration file on the application program local terminal exists after the installation or the update of the application program is completed, if the service flow of the application program needs to be detected, the configuration file is acquired and the corresponding service flow is detected every time the application program is started, and the detected service flow cannot be changed. And if the configuration file is at the server side, acquiring the configuration file corresponding to the server side when the application program sends a request to the server. Such as sending an application launch request, a login request, etc. In the configuration file of the server, relevant personnel such as developers can modify the configuration file, corresponding business processes can be detected according to the specific business requirements of the application program, and the detected business processes can be changed, for example, some detection of the business processes can be added, or any business process can not be detected. The configuration file at the server end can more flexibly control the service flow to be detected. In practical implementation, the configuration file corresponding to the application program may be placed on a terminal local to the application program or on a server side as needed.
And S102, judging whether the service process of the application program needs to be detected or not according to the configuration file. If the configuration file corresponding to the application program includes the identifier of whether the service flow of the application program needs to be detected, judging whether the service flow of the application program needs to be detected or not through the identifier, and if the identifier of the service flow of the application program needs to be detected is 1, the identifier of the service flow of the application program does not need to be detected is 0. If the condition of the service process of the application program needs to be detected is configured in the corresponding configuration file, if the condition of the service process is configured with a first preset condition and a second preset condition. Specifically, as shown in FIG. 2, S102 includes S201-S203. S201, judging whether a first preset condition and a second preset condition are configured in the configuration file. The first preset condition is a preset condition for starting a service process to be detected, and the second preset condition is a preset condition for ending the service process to be detected. If the configuration file is configured with a first preset condition and a second preset condition, executing S202; otherwise, S203 is executed. S202, judging that the business process of the application program needs to be detected. S203, judging that the business process of the application program does not need to be detected.
S103, if the business process of the application program needs to be detected, the page loaded by the application program is obtained.
And S104, judging whether the loaded page meets a first preset condition. If the loaded page comprises a first preset condition, judging that the first preset condition is met; otherwise, judging that the first preset condition is not met.
And S105, if the first preset condition is met, marking the start of the business process on the page and starting timing.
And S106, judging whether the currently loaded page meets a second preset condition. If the loaded page comprises a second preset condition, judging that the second preset condition is met; otherwise, judging that the second preset condition is not met. If the second preset condition is met, executing S107; if the second preset condition is not satisfied, S108 is executed.
And S107, deleting the recorded business process information, wherein the business process information comprises the page of the detected business process and the timing time. The page of the detected business process may be page information displayed by the application program when the business process is ended, or may be all page information opened from the beginning to the end of the detected business process. If the service flow is interrupted, the page of the detected service flow may be page information displayed by the application program when the service flow is determined to be interrupted, or may be all page information displayed from the beginning of the detected service flow to when the interruption is determined. The frame of the application program is a native frame, and the page information comprises a page starting label, a page ending label, a button label in the page and the like; if the frame is a hybrid frame, the page information comprises an open or closed page path.
And S108, judging whether the timed time exceeds the preset time or whether the process of the application program is finished. If the timed time does not exceed the preset time and the process of the application program is not finished, executing S106; otherwise, S109 is executed. Assuming that T represents the average completion time of the service flow, the preset time is n × T (the specific value of n may be adjusted according to actual conditions, and preferably n is 3). The ending of the process where the application program is located may be understood as the termination of the running of the application program, including the termination of the running of the application program due to the occurrence of an exception, the termination of the running of the application program by a user, and the like.
And S109, if the timed time exceeds the preset time or the process of the application program is finished, determining that the business process is interrupted and uploading the recorded business process information to the server, wherein the business process information comprises the page of the detected business process and the timed time. It can be understood that if the business process is not completed within the preset time, it is determined that the business process is not completed, and the business process is determined to be interrupted and the recorded business process information is uploaded to the server; and if the application program stops running, judging that the business process cannot be completed, determining that the business process is interrupted, and uploading the recorded business process information to the server. And uploading the relevant information of the business process to a server so that relevant personnel such as products and operators can optimize the business process of the application program, and the user experience is improved.
In the embodiment, the loaded page is obtained, if the loaded page meets the first preset condition, the service flow is marked on the page to start and time counting is started, if the currently loaded page does not meet the second preset condition, if the timed time exceeds the preset time or the process of the application program is finished, the service flow is determined to be interrupted, and the recorded service flow information is uploaded to the server. The embodiment of the invention can detect the interruption of the service flow of the application program and upload the service flow information to the server so as to enable relevant personnel to optimize the service flow of the application program and improve the user experience.
Fig. 3 is a schematic flowchart of a method for detecting an interruption of a service flow of an application according to another embodiment of the present invention. The method includes S301 to S310. The main difference between this embodiment of the method and the embodiment of the method described in fig. 1 is that: step S303 is added.
S303, detecting the type of the application program framework. Wherein the types of application frameworks include at least a native framework and a hybrid framework. The application program of the native framework is specific to a certain platform (such as iOS or android), and the development tools and languages supported by the corresponding platform are used (such as the iOS platform supports Xcode and Objective-C, and the android platform supports Eclipse and Java). Native applications are best viewed (look) and run (performance). The mixed-frame application program enables developers to embed the HTML application program into a thin native container, and integrates the advantages and the disadvantages of the native application program and the HTML application program.
If the type of the application framework is a native framework, S305 determines whether the loaded page meets a first preset condition, including: judging whether the loaded page has a starting page tag of the business process; if the loaded page has a starting page tag of the business process, judging that a first preset condition is met; and if the initial page tag of the business process does not exist, judging that the first preset condition is not met. S307, judging whether the currently loaded page meets a second preset condition, including: judging whether a page loaded currently has an ending page label of the business process and whether a button label in the page is clicked; and if the currently loaded page has an end page tag of the business process and a button tag in the end page is clicked, judging that a second preset condition is met, otherwise, judging that the second preset condition is not met. Wherein, otherwise, the following conditions are included: and if the currently loaded page does not have the end page tag of the business process or does not have the button tag of the end page, or the currently loaded page has the end page tag of the business process and has the button tag in the end page but has no button tag in the end page clicked, and the like. In a specific implementation, the code may be injected through a hooking technique to obtain a page tag opened or closed in a loaded page and a button tag in the page.
If the type of the application framework is a native framework, S305 determines whether the loaded page meets a first preset condition, including: judging whether the loaded page path is the initial page path of the business process; if the loaded page path is the initial page path of the business process, judging that a first preset condition is met; and if the loaded page path is not the initial page path of the service process, judging that the first preset condition is not met. S307, judging whether the currently loaded page meets a second preset condition, including: judging whether the currently loaded page path is the service flow end page path or not; and if the currently loaded page path is the service flow end page path, judging that a second preset condition is met, and if the currently loaded page path is not the service flow end page path, judging that the second preset condition is not met. The page path refers to a Uniform Resource Locator (URL), and is obtained by acquiring the URL.
The above embodiments further define how to determine whether the loaded page satisfies the first preset condition and whether the loaded page satisfies the second preset condition, respectively, if the types of the application program frames are the native frame and the hybrid frame.
Fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal 40 includes a configuration acquisition unit 401, a detection judgment unit 402, a page acquisition unit 403, a start judgment unit 404, a mark timing unit 405, an end judgment unit 406, a deletion unit 407, a time judgment unit 408, and an upload unit 409.
The configuration obtaining unit 401 is configured to obtain a configuration file corresponding to an application program, where the configuration file corresponding to the application program includes an identifier of whether to detect a service flow of the application program or a condition of whether to detect the service flow of the application program. The configuration file may be on the terminal local to the application or on the server side. If the configuration file is on the local terminal of the application program, the local corresponding configuration file of the application program can be obtained when the application program is started. The configuration file on the application program local terminal exists after the installation or the update of the application program is completed, if the service flow of the application program needs to be detected, the configuration file is acquired and the corresponding service flow is detected every time the application program is started, and the detected service flow cannot be changed. And if the configuration file is at the server side, acquiring the configuration file corresponding to the server side when the application program sends a request to the server. Such as sending an application launch request, a login request, etc. In the configuration file of the server, relevant personnel such as developers can modify the configuration file, corresponding business processes can be detected according to the specific business requirements of the application program, and the detected business processes can be changed, for example, some detection of the business processes can be added, or any business process can not be detected. The configuration file at the server end can more flexibly control the service flow to be detected. In practical implementation, the configuration file corresponding to the application program may be placed on a terminal local to the application program or on a server side as needed.
The detection judging unit 402 is configured to judge whether the service flow of the application needs to be detected according to the configuration file. If the configuration file corresponding to the application program includes the identifier of whether the service flow of the application program needs to be detected, judging whether the service flow of the application program needs to be detected or not through the identifier, and if the identifier of the service flow of the application program needs to be detected is 1, the identifier of the service flow of the application program does not need to be detected is 0. If the condition of the service process of the application program needs to be detected is configured in the corresponding configuration file, if the condition of the service process is configured with a first preset condition and a second preset condition. Specifically, as shown in fig. 5, the detection determination unit includes a condition determination unit 501 and a detection determination unit 502. The condition determining unit 501 is configured to determine whether a first preset condition and a second preset condition are configured in the configuration file. The first preset condition is a preset condition for starting a service process to be detected, and the second preset condition is a preset condition for ending the service process to be detected. The detection determining unit 502 is configured to determine that the service flow of the application program needs to be detected if the configuration file has the first preset condition and the second preset condition, and otherwise, determine that the service flow of the application program does not need to be detected.
The page obtaining unit 403 is configured to obtain a page loaded by an application program if the service flow of the application program needs to be detected.
The start judging unit 404 is configured to judge whether the loaded page satisfies a first preset condition. If the loaded page comprises a first preset condition, judging that the first preset condition is met; otherwise, judging that the first preset condition is not met.
The marking timing unit 405 is configured to mark the start of the service process and start timing if the loaded page meets a first preset condition.
The ending judgment unit 406 is configured to judge whether the currently loaded page meets a second preset condition. . If the loaded page comprises a second preset condition, judging that the second preset condition is met; otherwise, judging that the second preset condition is not met.
The deleting unit 407 is configured to delete the recorded service flow information if the currently loaded page meets a second preset condition, where the service flow information includes the detected page of the service flow and the timing time. The page of the detected business process may be page information displayed by the application program when the business process is ended, or may be all page information opened from the beginning to the end of the detected business process. If the service flow is interrupted, the page of the detected service flow may be page information displayed by the application program when the service flow is determined to be interrupted, or may be all page information displayed from the beginning of the detected service flow to when the interruption is determined. The frame of the application program is a native frame, and the page information comprises a page starting label, a page ending label, a button label in the page and the like; if the frame is a hybrid frame, the page information comprises an open or closed page path.
The time determining unit 408 is configured to determine whether the timed time exceeds a preset time or whether the process of the application program is finished if the currently loaded page does not satisfy the second preset condition. Assuming that T represents the average completion time of the service flow, the preset time is n × T (the specific value of n may be adjusted according to actual conditions, and preferably n is 3). The ending of the process where the application program is located may be understood as the termination of the running of the application program, including the termination of the running of the application program due to the occurrence of an exception, the termination of the running of the application program by a user, and the like.
The uploading unit 409 is configured to determine that the business process is interrupted and upload the recorded business process information to the server if the timed time exceeds the preset time or the process where the application program is located is finished, where the business process information includes a page of the detected business process and the timed time. It can be understood that if the business process is not completed within the preset time, it is determined that the business process is not completed, and the business process is determined to be interrupted and the recorded business process information is uploaded to the server; and if the application program stops running, judging that the business process cannot be completed, determining that the business process is interrupted, and uploading the recorded business process information to the server. And uploading the relevant information of the business process to a server so that relevant personnel such as products and operators can optimize the business process of the application program, and the user experience is improved.
Fig. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention. The terminal 60 includes a configuration acquisition unit 601, a detection judgment unit 602, a page acquisition unit 603, a start judgment unit 604, a mark timing unit 605, an end judgment unit 606, a deletion unit 607, a time judgment unit 608, an upload unit 609, and a detection framework unit 610. The main differences between this embodiment and the embodiment of fig. 4 are: a detection frame unit 610 is added. The configuration acquiring unit 601, the detection judging unit 602, the page acquiring unit 603, the start judging unit 604, the mark timing unit 605, the end judging unit 606, the deleting unit 607, the time judging unit 608, and the uploading unit 609 please refer to the embodiment of fig. 4 to describe the corresponding contents.
This embodiment differs from the embodiment of fig. 4 in that:
the detection framework unit 610 is used to detect the type of application framework. Wherein the types of application frameworks include at least a native framework and a hybrid framework.
If the type of the application framework is a native framework, the start determining unit 604 is configured to determine whether the loaded page meets a first preset condition, including: judging whether the loaded page has a starting page tag of the business process; if the loaded page has a starting page tag of the business process, judging that a first preset condition is met; and if the initial page tag of the business process does not exist, judging that the first preset condition is not met. The ending judgment unit 606 is configured to judge whether the currently loaded page meets a second preset condition, where the judging includes: judging whether a page loaded currently has an ending page label of the business process and whether a button label in the page is clicked; if the currently loaded page has an end page tag of the business process and a button tag in the end page is clicked, judging that a second preset condition is met; and if the currently loaded page does not have the end page tag of the business process or the button tag of the end page or the end page tag of the business process and the button tag in the end page but the button tag in the end page is not clicked, judging that the second preset condition is not met. In a specific implementation, the code may be injected through a hooking technique to obtain a page tag opened or closed in a loaded page and a button tag in the page.
If the type of the application framework is a native framework, the start determining unit 604 is configured to determine whether the loaded page meets a first preset condition, including: judging whether the loaded page path is the initial page path of the business process; if the loaded page path is the initial page path of the business process, judging that a first preset condition is met; and if the loaded page path is not the initial page path of the service process, judging that the first preset condition is not met. The ending judgment unit 606 is configured to judge whether the currently loaded page meets a second preset condition, where the judging includes: judging whether the currently loaded page path is the service flow end page path or not; if the currently loaded page path is the service flow end page path, judging that a second preset condition is met; and if the currently loaded page path is not the service process end page path, judging that the second preset condition is not met. The page path refers to a Uniform Resource Locator (URL), and is obtained by acquiring the URL.
Fig. 7 is a schematic block diagram of a terminal according to another embodiment of the present invention. The terminal 70 includes one or more memories 701 and one or more processors 702. The memory 701 and the processor 702 are connected by a bus 703. Wherein:
the memory 701 is used to store program data with various functions. In the embodiment of the present invention, the data stored in the memory 701 includes a configuration file corresponding to the application program, a first preset condition, a second preset condition, preset time, recorded service flow information, a service flow to be detected, and program data for detecting interruption of the service flow of the application program. In particular implementations, memory 701 of embodiments of the present invention may be system memory, such as volatile (e.g., RAM), non-volatile (e.g., ROM, flash memory, etc.), or some combination of the two. In a specific implementation, the memory 701 according to the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
The processor 702 is configured to execute the program data stored in the memory 701 to perform the following operations:
acquiring a configuration file corresponding to an application program; judging whether the service process of the application program needs to be detected or not according to the configuration file; if the detection is needed, acquiring a page loaded by the application program; judging whether the loaded page meets a first preset condition or not; if the first preset condition is met, marking the service process starting on the page and starting timing; judging whether the currently loaded page meets a second preset condition or not; if the second preset condition is not met, judging whether the timed time exceeds the preset time or whether the process of the application program is finished; and if the timed time exceeds the preset time or the process of the application program is finished, determining that the business process is interrupted and uploading the recorded business process information to the server, wherein the business process information comprises the page of the detected business process and the timed time.
The processor 702 also performs the following operations:
and if the currently loaded page meets a second preset condition, deleting the recorded business process information.
The processor 702, prior to said obtaining the page loaded by the application, further performs the following:
detecting a type of a framework of an application; if the frame of the application program is a native frame, the determining whether the loaded page meets a first preset condition includes: judging whether the loaded page has a starting page tag of the business process; if the initial page tag of the business process exists, judging that a first preset condition is met; the judging whether the currently loaded page meets a second preset condition includes: judging whether a page loaded currently has an end page label of the business process and whether a button label in the page is clicked; if the ending page label of the business process exists and the button label in the page is clicked, judging that a second preset condition is met; if the frame of the application program is a hybrid frame, the determining whether the loaded page meets a first preset condition includes: judging whether the path of the loaded page is the initial page path of the business process; if the loaded page path is the initial page path of the business process, judging that a first preset condition is met; the judging whether the currently loaded page meets a second preset condition includes: judging whether the path of the currently loaded page is the path of the service flow end page; and if the currently loaded page path is the service flow end page path, judging that a second preset condition is met.
The processor 702 also performs the following operations:
judging whether a first preset condition and a second preset condition are configured in the configuration file or not; if the first preset condition and the second preset condition are configured, judging that the service process of the application program needs to be detected; otherwise, the business process of the application program does not need to be detected.
The present invention also provides a computer-readable storage medium having one or more program data stored thereon, the one or more program data being executable by one or more processors to implement the steps of:
acquiring a configuration file corresponding to an application program; judging whether the service process of the application program needs to be detected or not according to the configuration file; if the detection is needed, acquiring a page loaded by the application program; judging whether the loaded page meets a first preset condition or not; if the first preset condition is met, marking the start of the business process and starting timing; judging whether the currently loaded page meets a second preset condition or not; if the second preset condition is not met, judging whether the timed time exceeds the preset time or whether the process of the application program is finished; and if the timed time exceeds the preset time or the process of the application program is finished, determining that the business process is interrupted and uploading the recorded business process information to the server, wherein the business process information comprises the page of the detected business process and the timed time.
Preferably, the steps further comprise:
and if the currently loaded page meets a second preset condition, deleting the recorded business process information.
Preferably, the steps further comprise:
detecting a type of a framework of an application; if the frame of the application program is a native frame, the determining whether the loaded page meets a first preset condition includes: judging whether the loaded page has a starting page tag of the business process; if the initial page tag of the business process exists, judging that a first preset condition is met; the judging whether the currently loaded page meets a second preset condition includes: judging whether a page loaded currently has an end page label of the business process and whether a button label in the page is clicked; if the ending page label of the business process exists and the button label in the page is clicked, judging that a second preset condition is met; if the frame of the application program is a hybrid frame, the determining whether the loaded page meets a first preset condition includes: judging whether the path of the loaded page is the initial page path of the business process; if the loaded page path is the initial page path of the business process, judging that a first preset condition is met; the judging whether the currently loaded page meets a second preset condition includes: judging whether the path of the currently loaded page is the path of the service flow end page; and if the currently loaded page path is the service flow end page path, judging that a second preset condition is met.
Preferably, the steps further comprise:
judging whether a first preset condition and a second preset condition are configured in the configuration file or not; if the first preset condition and the second preset condition are configured, judging that the service process of the application program needs to be detected; otherwise, the business process of the application program does not need to be detected.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly 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.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. Further, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, terminals or units, and may also be an electrical, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
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 (5)
1. A method for detecting an interruption in a business process of an application, the method comprising:
acquiring a configuration file corresponding to an application program;
judging whether the service process of the application program needs to be detected or not according to the configuration file;
if the detection is needed, acquiring a page loaded by the application program;
judging whether the loaded page meets a first preset condition or not;
if the first preset condition is met, marking the service process starting on the page and starting timing;
judging whether the currently loaded page meets a second preset condition or not;
if the second preset condition is not met, judging whether the timed time exceeds the preset time or whether the process of the application program is finished;
if the timed time exceeds the preset time or the process of the application program is finished, determining that the business process is interrupted and uploading the recorded business process information to a server, wherein the business process information comprises the page of the detected business process and the timed time;
before the obtaining of the page loaded by the application program, the method further includes:
detecting a type of an application framework;
if the frame of the application program is a native frame, the determining whether the loaded page meets a first preset condition includes: judging whether the loaded page has a starting page tag of the business process; if the initial page tag of the business process exists, judging that a first preset condition is met;
the judging whether the currently loaded page meets a second preset condition includes:
judging whether a page loaded currently has an end page label of the business process and whether a button label in the page is clicked; if the ending page label of the business process exists and the button label in the page is clicked, judging that a second preset condition is met;
if the frame of the application program is a hybrid frame, the determining whether the loaded page meets a first preset condition includes: judging whether the loaded page path is the initial page path of the business process; if the loaded page path is the initial page path of the business process, judging that a first preset condition is met;
the judging whether the currently loaded page meets a second preset condition includes:
judging whether the currently loaded page path is the service flow end page path or not; and if the currently loaded page path is the service flow end page path, judging that a second preset condition is met.
2. The method of claim 1, wherein the method further comprises:
and if the currently loaded page meets a second preset condition, deleting the recorded business process information.
3. The method according to any one of claims 1-2, wherein said determining whether to detect a business process of an application according to the configuration file comprises:
judging whether a first preset condition and a second preset condition are configured in the configuration file or not;
if the first preset condition and the second preset condition are configured, judging that the service process of the application program needs to be detected;
otherwise, the business process of the application program does not need to be detected.
4. A terminal, characterized in that the terminal comprises: a memory and a processor; the memory stores program data for realizing the detection of the interruption of the application program service flow; the processor is configured to execute the program data stored in the memory to perform the method of any of claims 1 to 3.
5. A computer-readable storage medium, storing one or more program data, the one or more program data being executable by one or more processors to implement the method of any one of claims 1 to 3.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710607832.3A CN107665142B (en) | 2017-07-24 | 2017-07-24 | Method, terminal and computer readable storage medium for detecting interruption of application program business process |
PCT/CN2017/099703 WO2019019251A1 (en) | 2017-07-24 | 2017-08-30 | Method, apparatus and device for detecting service process interruption, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710607832.3A CN107665142B (en) | 2017-07-24 | 2017-07-24 | Method, terminal and computer readable storage medium for detecting interruption of application program business process |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107665142A CN107665142A (en) | 2018-02-06 |
CN107665142B true CN107665142B (en) | 2020-04-07 |
Family
ID=61122581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710607832.3A Active CN107665142B (en) | 2017-07-24 | 2017-07-24 | Method, terminal and computer readable storage medium for detecting interruption of application program business process |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107665142B (en) |
WO (1) | WO2019019251A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287441A (en) * | 2019-06-27 | 2019-09-27 | 广州华多网络科技有限公司 | Detection method, device, equipment and the storage medium of page load duration |
CN113032130A (en) * | 2021-05-24 | 2021-06-25 | 荣耀终端有限公司 | System exception handling method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000132428A (en) * | 1998-10-21 | 2000-05-12 | Toshiba Corp | Computer system, application monitoring method for computer system, and program recording medium |
CN101556540A (en) * | 2009-06-01 | 2009-10-14 | 杭州华三通信技术有限公司 | Unified management method for a plurality of backup software and system thereof |
CN101594634A (en) * | 2009-06-24 | 2009-12-02 | 上海华为技术有限公司 | A kind of data transmission method, relevant apparatus and system thereof |
CN102163308A (en) * | 2011-04-18 | 2011-08-24 | 中国科学院计算技术研究所 | Flow service data uploading system and method |
CN102722559A (en) * | 2012-05-31 | 2012-10-10 | 奇智软件(北京)有限公司 | Method, device and system for controlling processes of abnormal pages |
CN103167016A (en) * | 2013-01-07 | 2013-06-19 | 北京奇虎科技有限公司 | Browser crash data uploading and processing method and browser crush data uploading and processing device |
CN106251508A (en) * | 2016-07-22 | 2016-12-21 | 深圳怡化电脑股份有限公司 | The method for processing business of a kind of self-aided terminal and system |
CN106297073A (en) * | 2016-07-29 | 2017-01-04 | 深圳怡化电脑股份有限公司 | A kind of self-aided terminal method for processing business and system |
CN106951302A (en) * | 2017-04-28 | 2017-07-14 | 努比亚技术有限公司 | Using the method for testing and terminal and computer-readable recording medium of the time of startup |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6934893B1 (en) * | 2000-11-16 | 2005-08-23 | Stmicroelectronics S.A. | Method of monitoring the activation of programmed sequences of a programmed system and computer program and apparatus for implementing same |
US7546601B2 (en) * | 2004-08-10 | 2009-06-09 | International Business Machines Corporation | Apparatus, system, and method for automatically discovering and grouping resources used by a business process |
CN101582812A (en) * | 2008-05-13 | 2009-11-18 | 新奥特(北京)视频技术有限公司 | Monitoring and operation managing system |
US9218359B2 (en) * | 2010-07-02 | 2015-12-22 | Code Systems Corporation | Method and system for profiling virtual application resource utilization patterns by executing virtualized application |
-
2017
- 2017-07-24 CN CN201710607832.3A patent/CN107665142B/en active Active
- 2017-08-30 WO PCT/CN2017/099703 patent/WO2019019251A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000132428A (en) * | 1998-10-21 | 2000-05-12 | Toshiba Corp | Computer system, application monitoring method for computer system, and program recording medium |
CN101556540A (en) * | 2009-06-01 | 2009-10-14 | 杭州华三通信技术有限公司 | Unified management method for a plurality of backup software and system thereof |
CN101594634A (en) * | 2009-06-24 | 2009-12-02 | 上海华为技术有限公司 | A kind of data transmission method, relevant apparatus and system thereof |
CN102163308A (en) * | 2011-04-18 | 2011-08-24 | 中国科学院计算技术研究所 | Flow service data uploading system and method |
CN102722559A (en) * | 2012-05-31 | 2012-10-10 | 奇智软件(北京)有限公司 | Method, device and system for controlling processes of abnormal pages |
CN103167016A (en) * | 2013-01-07 | 2013-06-19 | 北京奇虎科技有限公司 | Browser crash data uploading and processing method and browser crush data uploading and processing device |
CN106251508A (en) * | 2016-07-22 | 2016-12-21 | 深圳怡化电脑股份有限公司 | The method for processing business of a kind of self-aided terminal and system |
CN106297073A (en) * | 2016-07-29 | 2017-01-04 | 深圳怡化电脑股份有限公司 | A kind of self-aided terminal method for processing business and system |
CN106951302A (en) * | 2017-04-28 | 2017-07-14 | 努比亚技术有限公司 | Using the method for testing and terminal and computer-readable recording medium of the time of startup |
Also Published As
Publication number | Publication date |
---|---|
WO2019019251A1 (en) | 2019-01-31 |
CN107665142A (en) | 2018-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107038085B (en) | Method, device and system for repairing client application | |
CN105335187B (en) | Application processing method and device | |
CN104049986A (en) | Plugin loading method and device | |
US11099889B2 (en) | Method-call-chain tracking method, electronic device, and computer readable storage medium | |
CN104750550A (en) | Mobile terminal application management system and method and use time record generating method | |
CN101751593B (en) | Smart card and backup, recovering method and system thereof | |
CN110442502B (en) | Point burying method, device, equipment and storage medium | |
CN109710286B (en) | System upgrading method, device, equipment and storage medium | |
CN104021218A (en) | Information display method and device | |
CN108268296A (en) | Loading method, the client and server of page layout | |
CN105354498A (en) | Operation method of registry, related device and equipment | |
CN106775754A (en) | The compatible processing method and processing device of application | |
CN107665142B (en) | Method, terminal and computer readable storage medium for detecting interruption of application program business process | |
CN104424333A (en) | Method and system for loading table data | |
CN104484482A (en) | Webpage information updating method and system of network platform | |
CN105224611A (en) | Based on the operation processing method of browser, device and browser | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN102984330A (en) | Contact person data management method of communication device | |
CN104350476B (en) | A kind of version detection period control method and device | |
CN110297859A (en) | The method and apparatus for handling real time data | |
CN106603625B (en) | Data protection method and device | |
CN112600803B (en) | Web end data signature method and device and computer equipment | |
CN109144544A (en) | Application program update method, system and device used in a kind of bank | |
CN110704157B (en) | Application starting method, related device and medium | |
CN111414190B (en) | Request processing method and device |
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 |