CN110032597B - Visual processing method and device for operation behaviors of application program - Google Patents

Visual processing method and device for operation behaviors of application program Download PDF

Info

Publication number
CN110032597B
CN110032597B CN201811457631.0A CN201811457631A CN110032597B CN 110032597 B CN110032597 B CN 110032597B CN 201811457631 A CN201811457631 A CN 201811457631A CN 110032597 B CN110032597 B CN 110032597B
Authority
CN
China
Prior art keywords
operation information
cluster
key value
information
value pair
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811457631.0A
Other languages
Chinese (zh)
Other versions
CN110032597A (en
Inventor
孙震
张新琛
陈忻
黄伟东
李佳楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811457631.0A priority Critical patent/CN110032597B/en
Publication of CN110032597A publication Critical patent/CN110032597A/en
Application granted granted Critical
Publication of CN110032597B publication Critical patent/CN110032597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a visual processing method and device for operation behaviors of an application program. The method comprises the following steps: acquiring an operation information set of each operation step in an operation behavior path of at least one operation sequence of an application program, wherein the operation information set comprises step numbers of the operation steps in the corresponding operation behavior paths and operation information of the operation steps; clustering the operation information sets of the operation steps with the same step numbers to obtain operation information clusters corresponding to the step numbers, wherein the operation information clusters comprise the operation information sets of the operation steps with the corresponding step numbers of the at least one operation sequence; clustering and storing each obtained operation information into structured data; and generating a visual display of the operational behavior path of the at least one operational sequence based on the structured data. The device and the method can intuitively display the operation behavior path information aiming at the operation sequence of the application program.

Description

Visual processing method and device for operation behaviors of application program
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for visually processing an operation behavior of an application.
Background
The automatic test of the application program is a process of converting the test behavior of manual operation into machine execution so as to test the application program. The automatic test can replace the manual test of the application program in the past, and is a test means which can save manpower, time and hardware resources and improve the test efficiency. Under different types of application program automation test frameworks, writing and execution of test cases are a necessary ring. For the written test case, the behavior path data of the test case when the test case tests the application program is acquired, and the test process and the application program are analyzed.
In addition, for the application program installed on the user terminal, it is also necessary to acquire behavior path data of the user when operating the application program in some cases, and further, by analyzing the behavior path data, help is provided for subsequent development and update of the application program.
However, there is still no mature solution for how to intuitively acquire the behavior path inline data structure of the test case or the operation of the user and if the design logic of the tested object or the operated object is pushed back through the behavior path data.
Disclosure of Invention
In view of the above, the present disclosure provides a method and an apparatus for visualizing operation behaviors of an application, which are capable of intuitively presenting operation behavior path information for an operation sequence of the application, thereby facilitating analysis of the operation behaviors or the application itself.
According to one aspect of the present disclosure, a method for visualizing operation behavior of an application is provided, including: acquiring an operation information set of each operation step in an operation behavior path of at least one operation sequence of an application program, wherein the operation information set comprises a step number of each operation step in the corresponding operation behavior path and operation information of each operation step; clustering the operation information sets of the operation steps with the same step number to obtain each operation information cluster corresponding to the step number, wherein the operation information cluster comprises a set of operation information of the operation steps with the corresponding step numbers of the at least one operation sequence; clustering and storing each obtained operation information into structured data; and generating a visual display of the operational behavior path of the at least one operational sequence based on the structured data.
Optionally, in an example, the operation information cluster and the operation information may be represented by using a key value pair, where in a key value pair corresponding to the operation information cluster, a key indicates a step number of an operation step, and a value indicates operation information of the operation step, and in a key value pair corresponding to the operation information, a key indicates a type of the operation information, and a value indicates specific content of the operation information.
Optionally, in an example, storing the obtained respective operation information clusters as the structured data may include: for each operation step in the at least one operation sequence, embedding the key value pair of the operation information cluster of the operation step in the operation information cluster of the previous operation step as a part of the value in the key value pair of the operation information cluster of the previous operation step.
Optionally, in an example, the operation information of the operation step includes an operation sequence identifier, a page name of a page where the operation step is located, and operation content of the operation step, and storing the obtained clusters of the respective operation information as the structured data may further include: and merging the operation information of each operation sequence with the same page name aiming at each operation information cluster.
Optionally, in an example, for each operation information cluster, merging the operation information of each operation sequence with the same page name may include: for the operation information of each operation sequence with the same page name in each operation information cluster: taking any page name key value pair in the page name key value pairs in each operation information as a combined page name key value pair; and aiming at key value pairs of other types of operation information except the page name key value pair in the operation information, taking any key in each key value pair of the type of operation information as a key in the merged key value pair of the type of operation information, and combining values in each key value pair of the type of operation information to be used as values in the merged key value pair of the type of operation information.
Optionally, in one example, the structured data may be JSON formatted structured data.
Optionally, in an example, generating a visual display of the operation behavior path of the at least one operation sequence based on the structured data may include: and for each operation step, clustering the operation information of the operation step as a child node of the operation information cluster of the operation step before the operation step, and clustering the operation information of the operation step as a parent node of the operation information cluster of the operation step after the operation step, so as to generate visual display of the operation behavior path of the at least one operation sequence.
Optionally, in an example, the operation sequence may include a test case for the application program.
According to another aspect of the present disclosure, there is also provided a visualization processing apparatus for application program operation behavior, including: an operation information set acquisition unit configured to acquire an operation information set of each operation step in an operation behavior path for at least one operation sequence of an application, the operation information set including a step number of each operation step in the corresponding operation behavior path and operation information of each operation step; an operation information set clustering unit configured to cluster operation information sets of the operation steps having the same step number to obtain operation information clusters corresponding to the step number, the operation information clusters including sets of operation information of the operation steps of the at least one operation sequence having the corresponding step numbers; a structured storage unit configured to cluster-store the obtained individual pieces of operation information as structured data; and a visualization display processing unit configured to generate a visualization display of the operation behavior path of the at least one operation sequence based on the structured data.
Optionally, in an example, the operation information cluster and the operation information may be represented by using a key value pair, where in a key value pair corresponding to the operation information cluster, a key indicates a step number of an operation step, and a value indicates operation information of the operation step, and in a key value pair corresponding to the operation information, a key indicates a type of the operation information, and a value indicates specific content of the operation information.
Optionally, in an example, the structured storage unit may be configured to: for each operation step in the at least one operation sequence, embedding the key-value pair of the operation information cluster of the operation step in the operation information cluster of the previous operation step as a part of the value of the key-value pair of the operation information cluster of the previous operation step.
Optionally, in an example, the operation information of the operation step includes an operation sequence identifier, a page name of a page where the operation step is located, and an operation content of the operation step, and the structured storage unit may be further configured to: and merging the operation information of each operation sequence with the same page name aiming at each operation information cluster.
Optionally, in one example, the structured storage unit may be configured to: for the operation information of each operation sequence with the same page name in each operation information cluster: taking any page name key value pair in the page name key value pairs in each operation information as a combined page name key value pair; and aiming at key value pairs of other types of operation information except the page name key value pair in the operation information, taking any key in each key value pair of the type of operation information as a key in the merged key value pair of the type of operation information, and combining values in each key value pair of the type of operation information to be used as values in the merged key value pair of the type of operation information.
Optionally, in one example, the visual display processing unit may be configured to: and for each operation step, taking the operation information cluster of the operation step as a child node of the operation information cluster of the operation step before the operation step, taking the operation information cluster of the operation step as a parent node of the operation information cluster of the operation step after the operation step, and generating visual display of the operation behavior path of the at least one operation sequence.
According to another aspect of the present disclosure, there is also provided a computing device comprising: at least one processor, and a memory coupled with the at least one processor, the memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform a method as described above.
According to another aspect of the present disclosure, there is also provided a non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method as described above.
By means of the method and the device, the operation information of each operation step of each obtained operation sequence is clustered and structurally stored, and the operation behavior path aiming at the application program can be visually displayed. The visual display result can intuitively display the operation behavior path and the internal logic structure of the application program, thereby being beneficial to improving the analysis efficiency of the operation behavior path or the application program.
By using the method and the device disclosed by the invention, the data of various operation information is represented by using a key value pair mode, so that the processing efficiency of clustering, merging and other processing of the operation information can be improved, and the data storage efficiency is improved.
By means of the method and the device, the operation information is merged based on the page names, and the structure with the page name as the unique index is generated for each step, so that the operation paths of the operation sequences are related based on the page names, and the generated visualization intuitiveness can be enhanced.
By using the method and the device disclosed by the invention, the operation information set of the next operation step is embedded in the operation information set of the previous operation step as a part of the operation information set of the previous operation step, so that a tree-shaped data structure taking the operation steps as a sequence can be formed, and the finally generated visual display structure can more intuitively display the operation path and the internal logic structure of the application program.
By using the method and the device disclosed by the invention, the operation information set of each operation step is taken as a child node of the operation information set of the previous operation step and is taken as a parent node of the operation information set of the next operation step, so that a tree-shaped visual display structure can be generated. The tree visualization combination can more intuitively display the operation behavior path aiming at the application program and the internal logic structure of the application program.
Drawings
A further understanding of the nature and advantages of the present disclosure may be realized by reference to the following drawings. In the drawings, similar components or features may have the same reference numerals. The accompanying drawings, which are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the detailed description serve to explain the embodiments of the disclosure without limiting the embodiments of the disclosure. In the drawings:
FIG. 1 is a flow diagram of a method for visualization of application operational behavior according to one embodiment of the present disclosure;
fig. 2 is an example of clustering operation information after clustering operation in a visualization processing method for operation behaviors of an application according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method of visualization processing of application operational behavior according to another embodiment of the present disclosure;
FIG. 4 is a flow diagram of a merging process of a visualization processing method of application operating behavior according to one embodiment of the present disclosure;
FIG. 5 is an example of structured data generated in a method for visualization of application operational behavior according to one embodiment of the present disclosure;
FIG. 6 is an example of structured data generated in a method for visualization of application operational behavior according to another embodiment of the present disclosure;
FIG. 7 is an example of a visual display generated using a method of visualization processing of application operating behavior according to one embodiment of the present disclosure;
FIG. 8 is a block diagram of a visualization processing apparatus of application operating behavior according to one embodiment of the present disclosure;
FIG. 9 is a block diagram of a computing device for implementing visualization of application operating behavior according to one embodiment of the present disclosure.
Detailed Description
The subject matter described herein will be discussed with reference to example embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thereby implement the subject matter described herein, and are not intended to limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as needed. In addition, features described with respect to some examples may also be combined in other examples.
As used herein, the term "include" and its variants mean open-ended terms in the sense of "including, but not limited to. The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first," "second," and the like may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. The definition of a term is consistent throughout the specification unless the context clearly dictates otherwise.
The method and apparatus for visualizing the operation behavior of an application according to the present disclosure will now be described with reference to the accompanying drawings.
Fig. 1 is a flowchart of a visualization processing method of an application operation behavior according to one embodiment of the present disclosure.
As shown in fig. 1, at block S110, an operation information set for each operation step in an operation behavior path of at least one operation sequence of an application program is obtained. The operation behavior path in the present disclosure refers to a path formed by information such as operation steps passed by an operation behavior for an application, an order of each operation step, and passed pages. The operation sequence refers to an operation behavior instance for the application program, which is composed of a series of operation steps, and may be, for example, a test case for the application program or an operation sequence of an operation behavior executed by a user for the application program. More specifically, in one example, the application program may be a third party payment application, and the sequence of operations may include a payment operation, a refund operation, a login operation, an account level confirmation operation, and the like. The acquired operation information set may include a step number of each operation step in the corresponding operation behavior path and operation information of each operation step. Here, the operation information of each operation step acquired may be all the operation information related to the operation step or may be part of the operation information.
In an example, the operation information of the operation step may include information such as an operation sequence name corresponding to the operation step, a page name of a page where the operation step is located, and operation content of the operation step, and may further include page information such as a page element of the page where the operation step is located. The operation content of the operation step may be, for example, specific operation content such as click next step, click confirmation, click permission, account input, password input, and the like. The operation content may be operation content that causes a jump from a previous operation step to a current operation step in the corresponding action path. For example, if the operation of jumping from the previous operation step to the current operation step is "click next", the operation content of the current operation step is "click next". In addition, the operation content may also include a specific jump path. For example, for an example of a payment operation, the page where the first operation step is located may be an initial login page, and the page where the second operation step is located may be a permission grant page. And if the operation of clicking next on the initial login page is performed, jumping to the permission granting page where the second operation step is located. Then, for the second operation step, the operation content may be content in the form of "click next step from the first step to the second step", or "click next step from initial login page to permission grant page". In this case, the operation content of the first operation step may be an empty set.
After the operation information sets as described above are acquired, at block S120, the operation information sets of the respective operation steps having the same step number are clustered to obtain respective operation information clusters corresponding to the step numbers. The individual operational steps of each operational sequence are numbered independently. Thus, for each operation step in each operation sequence, there is a respective step number in the corresponding action path.
Fig. 2 is an example of clustering of operational information after a clustering operation according to an embodiment of the present disclosure. As shown in fig. 2, the operation information cluster includes a set of operation information of operation steps having corresponding step numbers of at least one operation sequence. In the operation information clusters after the clustering operation shown in fig. 2, operation information clusters of operation step numbers 1 to operation step number n are shown, respectively. Where n is the maximum value of the step numbers in the respective operation sequences. Taking the operation information cluster of step number 1 as an example, the operation information cluster respectively includes subsets such as operation information corresponding to the test case a, operation information … … corresponding to the test case B, and operation information corresponding to the test case X (a to X are case names of the test cases). The operation information of each operation step of each operation sequence may include operation information of the corresponding test case at the corresponding operation step, such as a case name, a page name, page information, operation content, and the like.
After clustering the operation information sets, at block S130, the obtained operation information clusters are stored as structured data. The structured data corresponds to the structure of a visual display described later.
As shown in fig. 2, the operation information cluster and the operation information may be represented using key-value pairs. In the key value pair corresponding to the operation information, the key indicates the type of the operation information. For example, in the operation information cluster corresponding to the step number 1, the operation information subset corresponding to the test case a includes four key value pairs, and the key of each key value pair is the type of the operation information, that is, the case name, the page information, and the operation content. The value of each key-value pair indicates the specific content of the operation information. For example, the value of the use case name key-value pair is "a" and the value of the page name key-value pair is "XX". The respective operation information clusters may also be represented in the form of key-value pairs. In the key value pair corresponding to the operation information cluster, the key indicates the step number of the operation step, and the value indicates the operation information of the operation step. Taking the operation information cluster of step number 1 in fig. 2 as an example, the key is the specific content "1" of the step number, and the value is the operation information of step number 1, that is, { use case name: a, page name: XX, page information: XX, operation content: XX } and the like correspond to the operation information of step number 1.
After the structured data is stored, at block S140, a visual display of the operational behavior path of the at least one operational sequence is generated based on the structured data. In one example, the visual display may include the connection relationships between the various operational steps and the operational information in the subset of operational information for the various operational steps. As a result, information such as the operation path of each operation sequence, the operation information in the operation path, and the relationship between each operation sequence can be intuitively known in the generated visual display. The operation information displayed in the visual display may be all the operation information related to the corresponding operation step, or may be part of the operation information.
Fig. 3 is a flowchart of a visualization processing method of an application operation behavior according to another embodiment of the present disclosure.
As shown in fig. 3, in one example, after the operation information sets are obtained at block S310 and clustered at block S320, further at block S330, the operation information subsets of the respective operation sequences having the same page name may be merged for the respective operation information clusters corresponding to the step numbers. Therefore, when the step numbers of the operation steps in the operation sequences are the same and the pages are the same, the operation steps are classified together, so that the association among the operation sequences can be visually embodied in the finally generated visual display.
Fig. 4 is a flowchart of a merging process of a visualization processing method of an application operation behavior according to an embodiment of the present disclosure.
As shown in fig. 4, in block S331, any one of the page name key value pairs in each operation information may be used as a merged page name key value pair for operation information of each operation sequence having the same page name in each operation information cluster.
Then, in block S332, for the key value pairs of other types of operation information in the operation information except the page name key value pair, any one of the key value pairs of the type of operation information is used as a key in the merged key value pair of the type of operation information, and the values in the key value pairs of the type of operation information are combined to be used as the value in the merged key value pair of the type of operation information.
Fig. 5 is an example of structured data generated in a visualization processing method of application operation behavior according to an embodiment of the present disclosure. An example of structured data after merging operation information with the same page name is shown in fig. 5. Referring to fig. 5, taking the operation information corresponding to the step number 1 in the structured data shown in fig. 5 as an example, the types of the operation information include a step number, a page name, a use case name, operation contents, and the like. Since the page names of the pages in which the first operation steps of use case name 1 to use case name n are located in the use case names are all a1, the page name key value pairs obtained by combining the operation information subsets with the same page name for the operation steps are as follows: "page name: a1", the result of merging key-value pairs of other types (i.e. name and operation content) in the operation information subset except the page name is: "use case name: [ use case 1, use case 2 … … use case n ] "," operation contents: XX (corresponding to the operation content of each test case at this operation step) ".
In addition, in another example, in block S340, for each operation step in at least one operation sequence, the key value pair of the operation information cluster of the operation step may be embedded in the operation information cluster of the previous operation step as part of the value in the key value pair of the operation information cluster of the operation step previous to the operation step. When the operation information set is represented using key-value pairs, it is possible to add a key-value pair with a key of "content" to the values of the operation information clusters of each operation step, cluster the operation information of the operation step subsequent to the operation step as the values of the key-value pair with the key of "content", and embed the operation information cluster of the subsequent operation step as the content of the operation step immediately preceding the operation step in the operation information cluster of the preceding operation step, as shown in fig. 5.
Fig. 6 is an example of structured data generated in a visualization processing method of application operation behavior according to an embodiment of the present disclosure. FIG. 6 illustrates an example of structured data after undergoing a merge operation and an embed operation. In fig. 6, the page names of the pages where the operation steps corresponding to the step number 2 of all the test cases are located include b1 and b2, and all the operation information of the step number 2 is embedded as the content of the step number 1 into the value of the key value pair keyed with "content". Further, the operation information of step number 3 is embedded as the content of step number 2 into the value of the content key-value pair of step number 2.
The above embodiment has exemplified the example of the process of generating the structured data in the order of performing the merging operation (block S330) first and then performing the embedding operation (block S340), but in another example of the present disclosure, the embedding operation may be performed first and then the merging operation may be performed. In another example, only the merge operation or only the embed operation may be performed. These are all within the scope of the embodiments of the present disclosure.
After the structured data is generated as described above, a visual display of the operation path may be further generated from the generated and stored structured data. One example of generating a visual display is shown in block S350 of fig. 3.
In block S350, for each operation step, the operation information cluster of the operation step may be used as a child node of the operation information cluster of the operation step preceding the operation step, and the operation information cluster of the operation step may be used as a parent node of the operation information cluster of the operation step succeeding the operation step, so as to generate a visual display of the operation behavior path of at least one operation sequence.
FIG. 7 is an example of a visualization display result generated using a visualization processing method of application operating behavior according to one embodiment of the present disclosure. FIG. 7 is an example of a visual display of the JSON format generated for five test cases using the methods of the present disclosure. As can be seen from FIG. 7, all test cases share a root node, which means that the first steps of all test cases are the same, i.e., all start from the initial log-in page. For two test cases close to the upper part of fig. 7, the two test cases respectively jump to different pages after passing through the operation "Click next step" (Click next step) from the respective first operation steps, and thus the second operation steps are respectively shown as different child nodes. For the three test cases near the lower part of fig. 7, the operation contents from the first step to the second step (i.e. the operation contents of the second step) are all "Check open AlipayHK",
the operation contents of the three test cases are shown in a folded manner in fig. 7. It can also be seen from FIG. 7 that the lower three test cases include validation steps (i.e., "Check" corresponding operation steps). In the validation step, the test case validates the page of the application program like a person, so that no page jump occurs from the first operation step to the second operation step, and the page where the two are located is the 'initial login page'. In each operation step of each test case, the next operation step is displayed as a child node of the previous operation step, each operation path is displayed in the operation step sequence, the page name is a unique index of each operation step, and each page name has a unique parent node. A parent node may have multiple children. In the result of the visual display, the operation content of each operation step is also shown. Therefore, the behavior path data of the test cases and the relation among the test cases can be intuitively obtained through visual display.
Fig. 8 is a block diagram of a visualization processing apparatus 800 for application operation behavior according to an embodiment of the present disclosure. As shown in fig. 8, the apparatus 800 includes an operation information set acquisition unit 810, an operation information set clustering unit 820, a structured storage unit 830, and a visual display processing unit 840.
The operation information set acquisition unit 810 is configured to acquire an operation information set of each operation step in an operation behavior path for at least one operation sequence of an application, the operation information set including a step number of each operation step in the corresponding operation behavior path and operation information of each operation step. After acquiring the operation information corresponding to each operation step of each operation sequence, the operation information set clustering unit 820 may cluster the operation information sets of each operation step having the same step number to obtain each operation information cluster corresponding to the step number, where the operation information cluster includes a set of operation information of the operation step having the corresponding step number of the at least one operation sequence. The structured storage unit 830 may store the obtained respective operation information clusters as structured data. The visualization processing unit 840 is configured to generate a visualization of the operation behavior path of the at least one operation sequence based on the structured data. In one example, the visual display includes the connection relationships between the individual operation steps and the operation information of the individual operation steps.
As an example, the operation information cluster and the operation information may be represented using key value pairs, where in a key value pair corresponding to the operation information cluster, a key indicates a step number of an operation step, and a value indicates operation information of the operation step, and in a key value pair corresponding to the operation information, a key indicates a type of the operation information, and a value indicates a specific content of the operation information.
In one example, the structured storage unit 830 may further embed, for each operation step in the at least one operation sequence, the key-value pair of the operation information cluster of the operation step in the operation information cluster of the previous operation step as a part of the value of the key-value pair of the operation information cluster of the previous operation step.
In one example, the operation information of the operation step may include information such as an operation sequence identifier, a page name of a page where the operation step is located, and an operation content of the operation step. Page information of the page where the operation step is located may also be included. The structured storage unit 830 may also merge the operation information of each operation sequence having the same page name for each operation information cluster.
In one example, the structured storage unit 830 may perform the following operations for the operation information of each operation sequence having the same page name in each operation information cluster: taking any page name key value pair in the page name key value pairs in each operation information as a combined page name key value pair; and aiming at key value pairs of other types of operation information except the page name key value pair in the operation information, taking any key in each key value pair of the type of operation information as a key in the merged key value pair of the type of operation information, and combining values in each key value pair of the type of operation information to be used as values in the merged key value pair of the type of operation information.
In one example, the visual display processing unit 840 may generate, for each operation step, a visual display of the operation behavior path of the at least one operation sequence by clustering the operation information of the operation step as a child node of the operation information cluster of an operation step preceding the operation step and clustering the operation information of the operation step as a parent node of the operation information cluster of an operation step succeeding the operation step.
Embodiments of a visualization processing method and apparatus for application operation behavior according to the present disclosure are described above with reference to fig. 1 to 8. The details mentioned in the above description of the method embodiments apply equally to the embodiments of the apparatus of the present disclosure.
The visualization processing device for the operation behavior of the application program can be realized by hardware, software, or a combination of hardware and software. In the present disclosure, the visualization processing apparatus of the application program operation behavior may be implemented by a computing device, for example.
FIG. 9 is a block diagram of a computing device for implementing visualization of application operating behavior according to one embodiment of the present disclosure. According to one embodiment, computing device 900 may include at least one processor 910, the at least one processor 910 executing at least one computer-readable instruction (i.e., an element described above as being implemented in software) stored or encoded in a computer-readable storage medium (i.e., memory 920).
In one embodiment, computer-executable instructions are stored in the memory 920 that, when executed, cause the at least one processor 910 to: acquiring an operation information set of each operation step in an operation behavior path of at least one operation sequence of an application program, wherein the operation information set comprises step numbers of the operation steps in the corresponding operation behavior paths and operation information of the operation steps; clustering the operation information sets of the operation steps with the same step numbers to obtain operation information clusters corresponding to the step numbers, wherein the operation information clusters comprise the operation information sets of the operation steps with the corresponding step numbers of the at least one operation sequence; clustering and storing each obtained operation information into structured data; and generating a visual display of the operational behavior path of the at least one operational sequence based on the structured data.
It should be appreciated that the computer-executable instructions stored in the memory 920, when executed, cause the at least one processor 910 to perform the various operations and functions described above in connection with fig. 1-8 in the various embodiments of the present disclosure.
According to one embodiment, a program product, such as a non-transitory machine-readable medium, is provided. A non-transitory machine-readable medium may have instructions (i.e., elements described above as being implemented in software) that, when executed by a machine, cause the machine to perform various operations and functions described above in connection with fig. 1-8 in various embodiments of the disclosure. Specifically, a system or apparatus may be provided which is provided with a readable storage medium on which software program code implementing the functions of any of the above embodiments is stored, and which causes a computer or processor of the system or apparatus to read out and execute the instructions stored in the readable storage medium.
In this case, the program code itself read from the readable medium can realize the functions of any of the above-described embodiments, and thus the machine-readable code and the readable storage medium storing the machine-readable code form part of the present invention.
Examples of the readable storage medium include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or the cloud by a communication network.
It should be noted that not all steps and units in the above flows and system structure diagrams are necessary, and some steps or units may be omitted according to actual needs. The execution order of the steps is not fixed, and can be determined as required. The apparatus structures described in the above embodiments may be physical structures or logical structures, that is, some units may be implemented by the same physical entity, or some units may be implemented by a plurality of physical entities, or some units may be implemented by some components in a plurality of independent devices.
In the above embodiments, the hardware units or modules may be implemented mechanically or electrically. For example, a hardware unit, module or processor may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements or processors may also comprise programmable logic or circuitry (e.g., a general-purpose processor or other programmable processor) that may be temporarily configured by software to perform corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
The detailed description set forth above in connection with the appended drawings describes exemplary embodiments but does not represent all embodiments that may be practiced or fall within the scope of the claims. The term "exemplary" used throughout this specification means "serving as an example, instance, or illustration," and does not mean "preferred" or "advantageous" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described technology. However, the techniques may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the described embodiments.
Alternative embodiments of the present disclosure are described in detail in the foregoing with reference to the drawings, however, the embodiments of the present disclosure are not limited to the specific details in the above embodiments, and within the technical concept scope of the embodiments of the present disclosure, many simple modifications may be made to the technical solution of the embodiments of the present disclosure, and these simple modifications all belong to the protection scope of the embodiments of the present disclosure.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (16)

1. A visual processing method for operation behaviors of an application program comprises the following steps:
acquiring an operation information set of each operation step in an operation behavior path of at least one operation sequence of an application program, wherein the operation information set comprises a step number of each operation step in the corresponding operation behavior path and operation information of each operation step;
clustering operation information sets of the operation steps with the same step number in each operation behavior path to obtain each operation information cluster corresponding to the step number, wherein the operation information cluster comprises a set of operation information of the operation steps with the corresponding step numbers of the at least one operation sequence;
clustering and storing each obtained operation information into structured data; and
generating a visual display of an operational behavior path of the at least one operational sequence based on the structured data.
2. The method of claim 1, wherein the operation information cluster and the operation information are represented by key value pairs, in a key value pair corresponding to the operation information cluster, a key indicates a step number of an operation step, and a value indicates operation information of the operation step, in a key value pair corresponding to the operation information, a key indicates a type of the operation information, and a value indicates specific content of the operation information.
3. The method of claim 2, wherein storing the resulting clusters of individual operational information as structured data comprises:
for each operation step in the at least one operation sequence, embedding the key value pair of the operation information cluster of the operation step in the operation information cluster of the previous operation step as a part of the value in the key value pair of the operation information cluster of the previous operation step.
4. The method as claimed in claim 3, wherein the operation information of the operation step comprises operation sequence identification, page name of the page where the operation step is located and operation content of the operation step, and
storing the obtained clusters of individual operational information as structured data further comprises:
and merging the operation information of each operation sequence with the same page name aiming at each operation information cluster.
5. The method of claim 4, wherein merging the operation information of each operation sequence having the same page name for the each operation information cluster comprises:
for the operation information of each operation sequence with the same page name in each operation information cluster:
taking any page name key value pair in the page name key value pairs in each operation information as a combined page name key value pair; and
and for the key value pairs of other types of operation information except the page name key value pair in the operation information, taking any key in each key value pair of the type of operation information as a key in the merged key value pair of the type of operation information, and combining the values in each key value pair of the type of operation information to be used as the value in the merged key value pair of the type of operation information.
6. The method of any one of claims 1-5, wherein the structured data is structured data in JSON format.
7. The method of any of claims 3-5, wherein generating a visual display of an operational behavior path of the at least one operational sequence based on the structured data comprises:
and for each operation step, taking the operation information cluster of the operation step as a child node of the operation information cluster of the operation step before the operation step, taking the operation information cluster of the operation step as a parent node of the operation information cluster of the operation step after the operation step, and generating visual display of the operation behavior path of the at least one operation sequence.
8. The method of any of claims 1-5, wherein the sequence of operations includes test cases for the application.
9. A visualization processing apparatus for application program operation behavior, comprising:
an operation information set acquisition unit configured to acquire an operation information set of each operation step in an operation behavior path for at least one operation sequence of an application, the operation information set including a step number of each operation step in the corresponding operation behavior path and operation information of each operation step;
an operation information set clustering unit configured to cluster operation information sets of the operation steps having the same step number in each operation behavior path to obtain each operation information cluster corresponding to the step number, the operation information cluster including a set of operation information of the operation steps having the corresponding step numbers of the at least one operation sequence;
a structured storage unit configured to cluster-store the obtained individual pieces of operation information as structured data; and
a visualization display processing unit configured to generate a visualization display of the operation behavior path of the at least one operation sequence based on the structured data.
10. The apparatus according to claim 9, wherein the operation information cluster and the operation information are represented using a key value pair, in a key value pair corresponding to the operation information cluster, a key indicates a step number of an operation step, and a value indicates operation information of the operation step, in a key value pair corresponding to the operation information, a key indicates a type of the operation information, and a value indicates a specific content of the operation information.
11. The apparatus of claim 10, wherein the structured storage unit is configured to:
for each operation step in the at least one operation sequence, embedding the key-value pair of the operation information cluster of the operation step in the operation information cluster of the previous operation step as a part of the value of the key-value pair of the operation information cluster of the previous operation step.
12. The apparatus according to claim 11, wherein the operation information of the operation step includes an operation sequence identification, a page name of a page where the operation step is located, and an operation content of the operation step, and
the structured storage unit is further configured to:
and merging the operation information of each operation sequence with the same page name aiming at each operation information cluster.
13. The apparatus of claim 12, wherein the structured storage unit is configured to:
for the operation information of each operation sequence with the same page name in each operation information cluster:
taking any page name key value pair in the page name key value pairs in each operation information as a combined page name key value pair; and
and for the key value pairs of other types of operation information except the page name key value pair in the operation information, taking any key in each key value pair of the type of operation information as a key in the merged key value pair of the type of operation information, and combining the values in each key value pair of the type of operation information to be used as the value in the merged key value pair of the type of operation information.
14. The apparatus of any one of claims 11-13, wherein the visual display processing unit is configured to:
and for each operation step, taking the operation information cluster of the operation step as a child node of the operation information cluster of the operation step before the operation step, taking the operation information cluster of the operation step as a parent node of the operation information cluster of the operation step after the operation step, and generating visual display of the operation behavior path of the at least one operation sequence.
15. A computing device, comprising:
at least one processor, and
a memory coupled with the at least one processor, the memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of any of claims 1-8.
16. A non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method of any of claims 1-8.
CN201811457631.0A 2018-11-30 2018-11-30 Visual processing method and device for operation behaviors of application program Active CN110032597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811457631.0A CN110032597B (en) 2018-11-30 2018-11-30 Visual processing method and device for operation behaviors of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457631.0A CN110032597B (en) 2018-11-30 2018-11-30 Visual processing method and device for operation behaviors of application program

Publications (2)

Publication Number Publication Date
CN110032597A CN110032597A (en) 2019-07-19
CN110032597B true CN110032597B (en) 2023-04-11

Family

ID=67235286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457631.0A Active CN110032597B (en) 2018-11-30 2018-11-30 Visual processing method and device for operation behaviors of application program

Country Status (1)

Country Link
CN (1) CN110032597B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674030A (en) * 2019-08-27 2020-01-10 北京金堤科技有限公司 Application testing method and device, computer readable storage medium and electronic equipment
CN111338920B (en) * 2020-02-18 2023-04-07 成都品果科技有限公司 Method for recording user operation steps based on stack during photo editing
CN111324582B (en) * 2020-02-18 2023-05-02 支付宝(中国)网络技术有限公司 Visual backtracking processing method and device for business processing behaviors
CN112199133B (en) * 2020-09-01 2021-10-12 北京达佳互联信息技术有限公司 Information aggregation method and device, electronic equipment and storage medium
CN113742630B (en) * 2021-09-16 2023-12-15 阿里巴巴新加坡控股有限公司 Image processing method, electronic device, and computer storage medium
CN113792247B (en) * 2021-11-12 2022-06-21 中航金网(北京)电子商务有限公司 Method, apparatus, device and medium for generating functional flow chart based on code characteristics
CN116701524B (en) * 2023-08-07 2024-02-27 腾讯科技(深圳)有限公司 Construction method and device of operation path tree, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648397A (en) * 2015-11-02 2017-05-10 网易(杭州)网络有限公司 Game operation recording and processing method and system for mobile terminal
CN108255691A (en) * 2018-01-29 2018-07-06 百度在线网络技术(北京)有限公司 Thermodynamic chart methods of exhibiting and device
CN108388508A (en) * 2018-01-29 2018-08-10 华南理工大学 A kind of test cases selection method based on user conversation and hierarchical clustering algorithm
CN108665513A (en) * 2017-03-27 2018-10-16 腾讯科技(深圳)有限公司 Drawing practice based on user behavior data and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101849227A (en) * 2005-01-25 2010-09-29 透明信息技术有限公司 Graphics processing and display system employing multiple graphics cores on a silicon chip of monolithic construction
JP2016122273A (en) * 2014-12-24 2016-07-07 富士通株式会社 Alert emission method, program and system
CN106156194B (en) * 2015-04-21 2019-12-03 阿里巴巴集团控股有限公司 A kind of method and device forming user's operation path
CN105138357B (en) * 2015-08-11 2018-05-01 中山大学 A kind of implementation method and its device of mobile application operation assistant
CN108647064A (en) * 2018-03-16 2018-10-12 阿里巴巴集团控股有限公司 The method and device of courses of action navigation
CN108647133A (en) * 2018-04-28 2018-10-12 深圳市小牛在线互联网信息咨询有限公司 User's operation track recording method, device, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648397A (en) * 2015-11-02 2017-05-10 网易(杭州)网络有限公司 Game operation recording and processing method and system for mobile terminal
CN108665513A (en) * 2017-03-27 2018-10-16 腾讯科技(深圳)有限公司 Drawing practice based on user behavior data and device
CN108255691A (en) * 2018-01-29 2018-07-06 百度在线网络技术(北京)有限公司 Thermodynamic chart methods of exhibiting and device
CN108388508A (en) * 2018-01-29 2018-08-10 华南理工大学 A kind of test cases selection method based on user conversation and hierarchical clustering algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Rebecca Cathey 等.Behavior Analysis via Execution Path Clusters.《MILCOM 2013 - 2013 IEEE Military Communications Conference》.2014,974-979. *
曾茂希.移动应用崩溃监控和用户行为分析的研究.《中国优秀硕士学位论文全文数据库 信息科技辑》.2017,(第05期),I138-592. *

Also Published As

Publication number Publication date
CN110032597A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN110032597B (en) Visual processing method and device for operation behaviors of application program
CN111177005B (en) Service application testing method, device, server and storage medium
US10467316B2 (en) Systems and methods for web analytics testing and web development
CN103839005B (en) The malware detection method of Mobile operating system and malware detection system
CN108628748B (en) Automatic test management method and automatic test management system
KR20170052672A (en) Conditional validation rules
CN110764980A (en) Log processing method and device
CN114139209B (en) Information anti-theft method and system applied to big data of business user
CN105630656B (en) System robustness analysis method and device based on log model
CN114116496A (en) Automatic testing method, device, equipment and medium
CN114546738A (en) Server general test method, system, terminal and storage medium
CN112148580A (en) Test method and device and electronic equipment
CN111708712A (en) User behavior test case generation method, flow playback method and electronic equipment
CN107430590B (en) System and method for data comparison
CN107368500A (en) Data pick-up method and system
CN112416800A (en) Intelligent contract testing method, device, equipment and storage medium
CN111639023A (en) Test case generation method and device based on user operation sequence diagram
CN113419964B (en) Test case generation method and device, computer equipment and storage medium
CN114979100A (en) Cloud resource checking method and related device
CN111125193B (en) Method, device, equipment and storage medium for identifying abnormal multimedia comments
CN105245380B (en) Message propagation mode identification method and device
CN113704126A (en) Verification method and device, computer storage medium and processor
CN113448985A (en) API (application program interface) interface generation method, calling method and device and electronic equipment
CN112882707A (en) Rendering method, rendering device, storage medium and electronic equipment
CN106469086B (en) Event 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
TA01 Transfer of patent application right

Effective date of registration: 20201012

Address after: English genus

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20201012

Address after: English genus

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: English genus

Applicant before: Advanced innovation technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240229

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: English genus

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: United Kingdom

TR01 Transfer of patent right