CN110162730B - Information processing method, information processing device, computer equipment and storage medium - Google Patents

Information processing method, information processing device, computer equipment and storage medium Download PDF

Info

Publication number
CN110162730B
CN110162730B CN201910359053.5A CN201910359053A CN110162730B CN 110162730 B CN110162730 B CN 110162730B CN 201910359053 A CN201910359053 A CN 201910359053A CN 110162730 B CN110162730 B CN 110162730B
Authority
CN
China
Prior art keywords
page
application program
event information
jump
determining
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
CN201910359053.5A
Other languages
Chinese (zh)
Other versions
CN110162730A (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.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN201910359053.5A priority Critical patent/CN110162730B/en
Publication of CN110162730A publication Critical patent/CN110162730A/en
Application granted granted Critical
Publication of CN110162730B publication Critical patent/CN110162730B/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The embodiment of the invention discloses an information processing method, an information processing device, computer equipment and a computer storage medium, which are applied to the technical field of computers and comprise the following steps: determining page jump information of an application program according to a source code of the application program; determining a jump relation between pages according to the page jump information; and generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content. The method can ensure comprehensive information of the business logic of the page interaction aiming at the application program, and improve the working efficiency.

Description

Information processing method, information processing device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an information processing method and apparatus, a computer device, and a storage medium.
Background
In order to maintain an application or develop new functions for the application, a developer needs to know the business logic of the application first. At present, the business logic relationship of the application program is mainly obtained through modes such as manual experience or reverse engineering tools, and the problems of large workload, low working efficiency, missing business logic and the like exist when the business logic relationship is obtained through the modes.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information processing method, an information processing apparatus, a computer device, and a storage medium.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
an information processing method, the method comprising:
determining page jump event information of an application program according to a source code of the application program;
determining a jump relation between pages according to the page jump event information;
and generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content.
In the above scheme, determining page jump event information of an application program according to a source code of the application program includes:
and according to the source code of the application program, determining first page jump event information generated based on a User Interface (UI) contained in the application program.
In the above solution, the determining, according to the source code of the application program, first type page jump event information generated based on a user interface UI included in the application program includes:
and selecting the first type of page jump event information which can cause page jump from the interaction event information of the UI component or the link text aiming at the UI display according to the source code of the application program.
In the above solution, the determining, according to the source code of the application program, first page jump event information generated based on a user interface UI included in the application program includes:
and according to the source code of the application program, selecting the first type of page jump event information which can cause page jump from the interception events corresponding to the specific UI display.
In the above scheme, the determining, according to the source code of the application program, the page jump event information of the application program includes at least one of:
determining page jump event information of a first type of page contained in a page framework of the application program according to the source code of the application program;
and determining page jump event information of a second type of page outside the page framework in the application program according to the source code of the application program.
In the above scheme, the second type of page is a popup page; the first type page is a page which can be subjected to page jumping with other pages except the popup page.
In the above scheme, the method further comprises:
according to the source code of the application program, determining system event information which is generated by an operating system installed by the application program and causes a page of the application program to jump;
the determining the jump relationship between the pages according to the page jump event information comprises the following steps:
and determining the jump relation between pages according to the page jump event information and the system event information.
An embodiment of the present invention further provides an information processing apparatus, where the apparatus includes:
the first determining module is used for determining page jump event information of the application program according to a source code of the application program;
the second determining module is used for determining the jump relation between the pages according to the page jump event information;
and the generating module is used for generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content.
An embodiment of the present invention further provides a computer device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to implement the information processing method according to any one of the embodiments of the present invention when the computer program is run by the processor.
The embodiment of the invention also provides a computer storage medium which stores an executable program, and when the executable program is executed by a processor, the information processing method of any embodiment of the invention is realized.
According to the information processing method provided by the embodiment of the invention, the page jump event information of the application program is determined according to the source code of the application program; determining a jump relation between pages according to the page jump event information; and generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content. Therefore, the embodiment of the invention can directly determine the service logic of the application program aiming at the page interaction based on the source code analysis, and compared with the prior art that the service logic of the application program aiming at the page interaction is obtained by manually experiencing the application program and the like, the time cost is high for obtaining the service logic by manually experiencing the application program, and the omission of the jump function in the page information is likely to exist in the manual experience process; therefore, the embodiment of the invention can determine the service logic of the application program aiming at the page interaction directly based on the source code analysis, on one hand, the service logic of the application program can be quickly provided for developers who maintain the application program or develop new functions for the application program so as to be referred by the developers, the workload of the developers who obtain the service logic through manual experience or by using a reverse tool is reduced, and the working efficiency of obtaining the service logic of the application program is further improved; on the other hand, the service logic of the page interaction of the application program obtained by the method is more comprehensive, and the invalidity of maintenance or development work caused by the omission of the service logic is avoided; therefore, the working efficiency of maintaining the application program and developing the new function of the application program is improved.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
fig. 2 is a schematic view of a scene of an information processing method according to an embodiment of the present invention;
fig. 3 is a flowchart of page interaction determined by an information processing method according to an embodiment of the present invention;
fig. 4 is a schematic view of a scene of an information processing method according to another embodiment of the present invention;
fig. 5 is a flowchart of page interaction determined by an information processing method according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of an information processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The application scenarios of the embodiment of the present invention may be: when a developer maintains an existing application program or adds new functions to the existing application program, the developer needs to obtain the existing business logic of the application program. And planning and laying out new business logic on the basis of the obtained existing business logic for the application program.
Fig. 1 is a schematic flow chart of an information processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101: determining page jump event information of an application program according to a source code of the application program;
step 102: determining a jump relation between pages according to the page jump event information;
step 103: and generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content.
It will be appreciated that the method may be applied in a computer device capable of reading the code information of the source code. The computer device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like.
It is understood that the page jump event information includes a jump relationship between pages. Here, step 102 may be extracting a jump relationship between pages from the page jump event information.
A page is understood herein to be an information page of an application, typically carrying elements of text, images, tables, links, etc. associated with the application. Page jump is here understood to be the process of jumping from one page to another, page jumps usually being caused by triggers.
Further, the jump relationship between the pages may include at least a UI (User Interface) causing the page jump, and a page to which the UI causes the page jump based on the UI and a target page. In other words, the jump relationship between the pages is determined by at least three of the UI, the page to which the UI belongs and the target page.
Here, the UI may be understood as a medium for interaction and information exchange between the system and the user, and implements conversion between an internal form of information and a human-acceptable form. The UI is software designed to communicate with each other between the user and the hardware, so that the user can conveniently and efficiently operate the hardware to achieve bidirectional interaction and complete the work expected to be completed by the hardware. Here, the UI in the application software may be a virtual control available for operation on a display screen of the terminal device, for example, a virtual key or a link text, or the like.
It is understood that the UI may be represented as a displayed UI and a hidden UI in the application, for example, the displayed UI may be a key, a link displayed on a display screen of the terminal device; the hidden UI may be a control that a particular UI uses to detect a particular operation, e.g., a particular UI used to listen for long presses, or a particular UI used to listen for clicks.
In an alternative embodiment, the step 102 may include: and according to the source code of the application program, determining first page jump event information generated based on the UI contained in the application program.
Wherein, the first page jump event information can be understood as generated based on the UI contained in the application program. That is, the relevant event information generated for the UI included in the application program and capable of causing the page jump can be classified as the first type page jump event; the related event information that can cause a page jump for a portion other than the UI included in the application is not referred to as a first type of page jump event.
Here, the determining, according to the source code of the application program, first type page jump event information generated based on a UI included in the application program includes: and selecting the first type of page jump event information which can cause page jump from the interaction event information of the UI component or the link text aiming at the UI display according to the source code of the application program.
The UI component may be understood as a view object for UI display and may also be understood as a control for a user to perform an input operation, and the UI component may include at least one of the following: buttons, input boxes, radio boxes, multiple selection boxes and lists in the page; here, the input operation may include various operations capable of interacting with the UI, such as a manual operation and/or a voice operation.
Specifically, the selecting, according to source code of an application program, the first type of page jump event information that causes page jump from interaction event information of a UI component for UI display includes: according to the source code of the application program, acquiring interaction event information of a UI component of each page in the source code; judging whether the UI component causes a page to jump or not according to the interactive event information of the UI component; extracting the interaction event information of the corresponding UI component which can cause the page to jump; and determining the first type of page jump event information according to the extracted interaction event information of the UI component. The interaction event information of the UI component includes an ID (IDentity), a name, and operation information of the UI component, a page to which the UI component belongs, and a target page of the UI component.
Here, the determining, according to the interaction event information of the UI component, whether the UI component causes a page jump includes: determining a page to which the UI belongs before the UI component is operated and a target page of the UI component according to the interactive event information of the UI component; comparing the page to which the UI component belongs with page information of a target page of the UI component; if the page to which the UI component belongs is the same as the page information of the target page of the UI component, the UI component does not cause the page to jump, if the page to which the UI component belongs before operation is different from the page information of the target page of the UI component, the UI component causes the page to jump, and at the moment, the interaction event information of the corresponding UI component which can cause the page to jump is extracted.
For example, taking a source code program as java programming language as an example, traversing java codes of all pages, identifying UI components by identifying keywords, such as buttons, input boxes, lists and the like, identifying IDs of the UI components, identifying key fields related to clicking, such as clicking corresponding key fields as onClick, long-pressing related keywords, such as long-pressing corresponding key fields as onLongClick, extracting logic codes in parentheses behind the onClick and the onLongClick, determining whether there are keywords related to starting the interface components and displaying the related keywords, such as starting the code key field corresponding to the interface components as startActivity, and displaying the corresponding key fields as show, thereby determining page information of a jumped target page.
Here, the page information may be related information for distinguishing a page; specifically, the page information may include at least one of: page name, page starting interface, page class name and page alias.
In some embodiments, at least one of a page name, a page launch interface, a page class name, and a page alias for a page is identified by identifying tag information for the page in source code.
Specifically, the identifying the page information by identifying tag information for a page in source code includes at least one of:
determining the page name of the page by identifying the first type of tag information;
determining a page starting interface of the page by identifying second type tag information;
determining the page class name of the page by identifying third class label information;
and determining the page alias of the page by identifying the fourth type of label information.
In this way, it can be determined whether the page to which the UI component belongs is the same as the page information of the target page of the UI component by identifying at least one of a face name, a page launch interface, a page class name, and a page alias in the page information of the page.
For example, taking a source code program as java programming language as an example, the page name of the page may be identified by analyzing a configuration file of an application program and using a name attribute tag, for example, a key field corresponding to the name attribute tag is activity; identifying the page category of the page by using a class name tag, for example, a key field corresponding to the class name tag is a name; identifying a page starting interface of the page for action through a service agent label, for example, a key field corresponding to the service agent label; the page alias of the page is identified for activity-alias by an alias tag, e.g., a key field corresponding to the alias tag.
Here, the determining the first type of page jump event information according to the extracted interaction event information of the UI component includes: and determining the first-class page jump event information according to the page information of the page to which the UI component belongs and the page information of the target page of the UI component, wherein the page information of the page to which the UI component belongs is contained in the interaction event information of the UI component.
Specifically, the selecting the first type of page jump event information that causes page jump from the interaction event information for the link text displayed by the UI according to the source code of the application program includes: acquiring interaction event information of a link text of each page in the source code according to the source code of the application program; judging whether the interactive event information of the link text can cause a page to jump or not according to the interactive event information of the link text; extracting the interactive event information of the corresponding link text which can cause the page to jump; and determining the first type of page jump event information according to the extracted interactive event information of the link text.
It should be noted that the link text refers to parameters and control instructions transmitted between modules of the electronic computer program, refers to a connection relationship from one page to one target, and refers to another page where the target may be pointed, or different positions on the same page, such as a picture, an email address, or even other application programs.
Here, the interactivity event information of the link text includes the link text, a page to which the link text belongs, and a target direction of the link text. Determining that the link text may cause the page to jump if the target of the link text points to another page.
Here, the determining the first-type page jump event information according to the extracted relevant information of the connection text includes: and determining the first type of page jump event information according to the page information of the page to which the link text belongs and the page information of the target pointing page of the link text, wherein the page information is contained in the interactive event information of the link text.
In this embodiment, the first type of page jump event information that may cause page jump is selected from the interaction event information for the UI component or the link text displayed by the UI according to the source code of the application, that is, the first type of page jump event information that includes the UI component and the link text that may cause page jump can be selected from all UI components and link texts displayed by the UI, so that the business logic in the page interaction flow diagrams corresponding to all displayed UIs is analyzed, the comprehensiveness of the page interaction flow diagrams for the real UIs can be ensured, and omission is not generated; furthermore, because the UI components and the link texts which cannot cause page jump can be removed, the finally generated page interaction flow chart is concise and has higher readability.
In another optional embodiment, the determining, according to the source code of the application program, first type page jump event information generated based on a user interface UI included in the application program includes: and according to the source code of the application program, selecting first page jump event information which can cause page jump from the interception events generated when the specific UI is displayed.
Here, selecting the first type page jump event information that causes a page jump from the listening events corresponding to the display of the specific UI according to the source code of the application program includes: acquiring interception event information in a source code according to the source code of the application program; judging whether the intercepted event information can cause a page to jump or not according to the intercepted event information; extracting corresponding interception event information which can cause the page to jump; and determining the first page jump event information according to the extracted interception event information.
The interception event information comprises keyword information of the interception event and interception object information. Here, the interception target information may be understood as displaying a specific UI, for example, the interception target may be a displayed button, and whether a page jump occurs to the button at a click event or a long-press event is determined by intercepting the click event and the long-press event of the button; here, the keyword information of the listening event includes a related statement for listening, for example, in a java programming language, the listening event of the specific UI may be obtained by identifying a key field corresponding to the listening event, for example, the key field corresponding to the listening click event is "setonclicktriener", the click event of the specific UI may be listened by identifying "setonclicktriener", the key field corresponding to the listening long-press event is "setonlongclicktriener", and the long-press event of the specific UI may be listened by identifying "setonlongclicktriener".
Here, the determining the first-class page jump event information according to the extracted interception event information includes: the first type of page jump event information is determined according to interception object information contained in the interception event information and page jump event information generated aiming at an interception event, wherein the page jump event information comprises page information of a page to which an interception object belongs and page information of a target page to jump.
In this embodiment, the first type of page jump event information that causes page jump is selected from the listening events corresponding to displaying a specific UI according to the source code of the application. Therefore, the service logic of the specific UI can be extracted, for example, the service logic of clicking or long-pressing a specific page or long-pressing a specific button can be extracted, the page interaction flow chart representing the service logic can be further optimized, omission of jump relations among hidden pages can be avoided, compared with manual experience, the service flow chart obtained by the embodiment is more comprehensive, the process of manually trying on special events such as long-pressing events can be reduced, the workload can be greatly reduced, and the working efficiency can be improved.
In another alternative embodiment, the step 102 may include at least one of:
determining page jump event information of a first type of page contained in a page framework of the application program according to the source code of the application program;
and determining page jump event information of a second type of page outside the page framework in the application program according to the source code of the application program.
Here, referring to fig. 2, fig. 2 is a schematic view of a scene of an information processing method according to an embodiment of the present invention, as shown in fig. 2, a left side of fig. 2 shows that an application program is currently on a first page 21; FIG. 2 shows on the right the application currently on the second page 22; when the user clicks "UI component for UI display", for example, the user clicks "women's dress" button 211, the second page 22 is entered; while the first page 21 can be returned via the return key 221 in the second page 22. Here, the first page and the second page are pages of a first type, and it is understood that the first page and the second page are two pages in a page architecture of the application program.
In a specific embodiment, the first page may be a top page. The computer device may determine the home page of the application by identifying a fifth type tag in the source code. For example, in the java programming language, whether a page is a top page is identified by identifying a category tag. After the home page is identified, the home page may be used as a starting page of the page flow chart, and the page flow chart is generated. Referring to fig. 3, fig. 3 is a page interaction flowchart determined by an information processing method according to an embodiment of the present invention, as shown in fig. 3, the page interaction flowchart is generated by using a home page of the application as a starting page, the page interaction flowchart includes a jump relationship between pages and page contents, and the jump relationship between the pages includes a jumped original page, a jumped target page, and an event causing a jump. Here, the jump relationship between the pages includes a correlation relationship of jumping from a home page of the application to page 1 through the key 1 and jumping to page 2 through the key 2; the page content includes related content that may cause a page jump, such as keystroke content included in a home page. In this embodiment, the readability of the page flow chart can be increased by determining the top page and using the top page as the starting page in the page flow chart.
With continued reference to fig. 2, in the left diagram of fig. 2, the third page 31 overlaid on the first page 21 is a page of a second type different from the first type represented by the first page and the second page. The second type of page is a page outside the page framework of the application program. In this embodiment, the page jump event information may include page jump event information of a second type of page.
In some embodiments, the second type of page may be a pop-up page; the first page is a page which can be subjected to page jumping with other pages except the popup page.
In this embodiment, the popup page is a page overlaid on the current display page, and can jump from the current display page.
In another optional embodiment, the method further comprises:
according to the source code of the application program, determining system event information which is generated by an operating system installed by the application program and causes a page of the application program to jump;
the determining the jump relationship between the pages according to the page jump event information comprises the following steps:
and determining the jump relation between pages according to the page jump event information and the system event information.
Here, the determining, according to the source code of the application program, system event information generated by an operating system installed in the application program and causing a page of the application program to jump includes: and determining at least one of clock event information, power change information and network change information which are generated by an operating system installed in the application program and cause the application program page to jump according to the source code of the application program.
In this embodiment, the determining, according to the source code of the application program, system event information that is generated by an operating system installed in the application program and causes a page of the application program to jump includes: determining first system event information generated based on an operating system installed by the application program according to the source code of the application program; and selecting second system event information capable of causing page jump according to the first system event information, and using the second system event information as the system event information which is generated by the determined operating system installed by the application program and causes the page jump of the application program.
In this embodiment, the jump relationship between pages is determined according to the selected system event information causing the page of the application program to jump and the page jump event information, so that the page interaction flow chart generated based on the jump relationship not only includes the page jump relationship of page jump caused based on the page jump event information, but also includes the page jump relationship of page jump caused based on the system event.
Referring to fig. 4, fig. 4 is a schematic view of a scenario of an information processing method according to another embodiment of the present invention, as shown in fig. 4, the system event information includes power change information. Here, the power change information includes power change and page jump information caused by power change, when the power is lower than 20%, the system pops up a prompt popup page 41, and the prompt popup page 41 prompts the user whether to set the system to the power saving mode. Here, the system event information includes not only the power change but also page information of a prompt popup page popped up due to the power change. Therefore, according to the page jump event information described in the above embodiment and the system event information described in this embodiment, a more comprehensive page flow chart for an application program can be determined.
Specifically, referring to fig. 5, fig. 5 is a page interaction flowchart determined by an information processing method according to another embodiment of the present invention, as shown in fig. 5, a page jump relationship caused by system event information is included in the page interaction flowchart, for example, when a system event occurs, an application program jumps to the page 5.
The technical solutions of the embodiments of the present invention are further described below by specific examples.
Fig. 6 is a flowchart illustrating an information processing method according to an embodiment of the present invention, and as shown in fig. 6, the following method, taking a java programming language environment as an example, includes:
step 601: and extracting page information (such as page name, action monitoring, starting mode and the like).
Here, the page information of all pages is extracted through the source code of the application program, and the extracted page information includes a page name, a page starting interface, a page class name, a page alias, whether the page is a home page of the application program, and the like, where the page starting interface includes a service agent action, a short link, and a URI (Uniform Resource Identifier).
Specifically, an application configuration file is analyzed, for example, according to a configuration file corresponding to a source code analysis key field android manifest. xml, a tag value label under an activity tag is identified to obtain a page name, and a name tag is identified to determine a page class name; identifying a tag value under an action tag to obtain a page starting interface; identifying a home tag, for example, a home tag with a key field being a category tag, and determining whether the home tag is a home page; identifying the activity-alias tag identifies the name and the target interface targetActivity to identify the page alias.
In another embodiment, all java files are traversed, the session tag is identified, for example, the key field corresponding to the session tag is Dialog, for example, the alert Dialog field corresponding to the prompt session tag is identified, the popup page is identified, and the popup box name is recognized by setting the title key field, for example, the key field corresponding to the title is set to setTitle. Alternatively, in other embodiments, all floating windows may also be identified by identifying the window label, for example, by using the window label corresponding to the key field windowmanager.
Step 602: extracting interaction events (clicking, sliding, long pressing and the like), extracting the jump relation between pages, and establishing page interaction logic.
Here, UI components (buttons, input boxes, single selection, multiple selection, list, and the like) are extracted for each page. The extracted information includes ID, name, operation (click, slide, drag), and page to which it belongs. If the related operation generates a page jump, the jump target page identification (class name, alias, start interface, etc.) is extracted.
Specifically, the java code of all pages is traversed by recognizing the page class name, the view object of the operation is extracted by recognizing the keywords setoncliclclistener, setonlongcliclclistener, setNegativeButton, setpositiovebutton, and the like, the type is determined by its implementation class, such as Button, TextView, ListView, and the like, and the view object id is identified by the assignment statement findViewById of the view object. Identifying key words of onClick and onLongClick, extracting logic codes in parentheses behind the key words, and judging whether startActivity and show fields exist or not, thereby determining a page starting interface, further determining a target page corresponding to an operated view object, and establishing page interaction logic.
It should be noted that the view object of the operation herein may be understood as the UI component described in the above embodiments.
Step 603: extracting special events (such as low power, network change, no network, timing and the like), extracting system event information, and establishing system event processing logic aiming at the page.
Here, system events (clocks, power changes, network changes, etc.) are extracted from the source code and event response logic is extracted. The extracted information comprises event type and name, and if page jump is generated after event response, jump target page identification (page class name, page alias, page starting interface and the like) is extracted.
Specifically, the java code of all pages is traversed by recognizing the page class name, the system event is recognized by recognizing the parameter corresponding to the system event, for example, by recognizing the key field register of the parameter corresponding to the system, the specific action string set by the intent filter is compared with the system event dictionary table to recognize the specific system event name. And meanwhile, identifying startActivity and show fields by a method for responding to a corresponding key field onReceive in system broadcasting so as to determine a page starting interface and further determine a target page corresponding to a system event, thereby establishing a system event processing logic for the page.
Step 604: and generating a page interaction flow chart of the application program according to the page information, the page interaction logic and the system event processing logic aiming at the page.
Specifically, according to the page and the target page extracted by the UI component and the target page of the system event response, the page interaction logic of the entire application program may be constructed, and then the page interaction flowchart of the application program may be generated.
It should be noted that, the above steps 601-604 do not limit the order of the steps, as long as the page interaction logic of the application can be finally obtained.
According to the embodiment of the invention, the page jump event information and the system event information in the source code are extracted, and the jump relationship between pages is determined according to the page jump event information and the system event information; and generating a page interaction flow chart representing the service logic of the application program according to the jump relation and the page content, and based on the page interaction flow chart, replacing manual work and generating the interaction flow chart in an automatic mode, so that the working efficiency is improved, and meanwhile, a more comprehensive text information extraction mode is provided, so that the service logic of the generated page interaction flow chart is more comprehensive.
As shown in fig. 7, an embodiment of the present invention further provides an information processing apparatus, including: a first determining module 71, a second determining module 72, and a generating module 73; wherein the content of the first and second substances,
the first determining module 71 is configured to determine page jump event information of an application according to a source code of the application;
the second determining unit 72 is configured to determine a jump relationship between pages according to the page jump event information;
the generating module 73 is configured to generate a page interaction flowchart representing the service logic of the application program based on the skip relationship between the pages and the page content.
In some embodiments, the first determining module 71 is further configured to determine, according to the source code of the application program, first type page jump event information generated based on a user interface UI included in the application program.
In some embodiments, the first determining module 71 is specifically configured to select the first type of page jump event information that will cause a page jump from interaction event information of a UI component or link text for a UI display according to the source code of the application.
In some embodiments, the first determining module 72 is specifically configured to select, according to the source code of the application program, the first type of page jump event information that may cause a page jump from the listening events corresponding to displaying a specific UI.
In some embodiments, the first determining module 72 is further configured to at least one of:
determining page jump event information of a first type of page contained in a page framework of the application program according to the source code of the application program;
and determining page jump event information of a second type of page outside the page framework in the application program according to the source code of the application program.
In some embodiments, the second type of page is a popup page; the first type page is a page which can be subjected to page jumping with other pages except the popup page.
In some embodiments, the apparatus further comprises a third determining module to:
according to the source code of the application program, determining system event information which is generated by an operating system installed by the application program and causes a page of the application program to jump;
the second determining module 72 is further configured to determine a jump relationship between pages according to the page jump event information and the system event information.
Here, it should be noted that: the above description of the information processing apparatus item is similar to the above description of the information processing method item, and the description of the advantageous effects of the same method is not repeated. For technical details that are not disclosed in the embodiments of the information processing apparatus of the present invention, refer to the description of the embodiments of the information processing method of the present invention.
As shown in fig. 8, an embodiment of the present invention further discloses a computer device, where the computer device includes: a processor 81 and a memory 82 for storing a computer program capable of running on the processor 81, wherein the processor 81 is adapted to implement the information processing method applied to the computer device when running the computer program.
In some embodiments, memory in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
In some embodiments, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Yet another embodiment of the present invention provides a computer storage medium storing an executable program that, when executed by a processor, can implement the steps of an information processing method applied to the vehicle. For example, as one or more of the methods shown in fig. 1-6.
In some embodiments, the computer storage medium may include: 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.
It should be noted that:
the methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. An information processing method, characterized in that the method comprises:
determining page jump event information of an application program according to a source code of the application program; wherein, the determining the page jump event information of the application program according to the source code of the application program comprises at least one of the following: according to the source code of the application program, determining first page jump event information generated based on a User Interface (UI) contained in the application program, wherein the UI comprises a displayed UI and a hidden UI, and the hidden UI comprises: a specific UI for listening to long presses, or a specific UI for listening to clicks; determining page jump event information of a first type of page contained in a page framework of the application program according to the source code of the application program; determining page jump event information of a second type of page outside the page framework in the application program according to the source code of the application program;
determining a jump relation between pages according to the page jump event information;
and generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content.
2. The method according to claim 1, wherein the determining, according to the source code of the application program, the first type of page jump event information generated based on the user interface UI included in the application program comprises:
and selecting the first type of page jump event information which can cause page jump from the interaction event information of the UI component or the link text aiming at the UI display according to the source code of the application program.
3. The method according to claim 1, wherein the determining, according to the source code of the application program, the first type of page jump event information generated based on the user interface UI included in the application program comprises:
and according to the source code of the application program, selecting the first type of page jump event information which can cause page jump from the interception events corresponding to the specific UI display.
4. The method of claim 1, the second type of page being a popup page; the first type page is a page which can be subjected to page jumping with other pages except the popup page.
5. The method of claim 1, further comprising:
according to the source code of the application program, determining system event information which is generated by an operating system installed by the application program and causes a page of the application program to jump;
the determining the jump relationship between the pages according to the page jump event information comprises the following steps:
and determining the jump relation between pages according to the page jump event information and the system event information.
6. An information processing apparatus characterized in that the apparatus comprises:
the first determining module is used for determining page jump event information of the application program according to a source code of the application program; wherein, the determining the page jump event information of the application program according to the source code of the application program comprises at least one of the following: according to the source code of the application program, determining first page jump event information generated based on a User Interface (UI) contained in the application program, wherein the UI comprises a displayed UI and a hidden UI, and the hidden UI comprises: a specific UI for listening to long presses, or a specific UI for listening to clicks; determining page jump event information of a first type of page contained in a page framework of the application program according to the source code of the application program; determining page jump event information of a second type of page outside the page framework in the application program according to the source code of the application program;
the second determining module is used for determining the jump relation between the pages according to the page jump event information;
and the generating module is used for generating a page interaction flow chart representing the service logic of the application program based on the jump relation between the pages and the page content.
7. A computer device, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is configured to implement the information processing method of any one of claims 1 to 5 when the computer program is executed by the processor.
8. A computer storage medium characterized by storing an executable program that, when executed by a processor, implements the information processing method according to any one of claims 1 to 5.
CN201910359053.5A 2019-04-30 2019-04-30 Information processing method, information processing device, computer equipment and storage medium Active CN110162730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910359053.5A CN110162730B (en) 2019-04-30 2019-04-30 Information processing method, information processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910359053.5A CN110162730B (en) 2019-04-30 2019-04-30 Information processing method, information processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110162730A CN110162730A (en) 2019-08-23
CN110162730B true CN110162730B (en) 2021-10-15

Family

ID=67633045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910359053.5A Active CN110162730B (en) 2019-04-30 2019-04-30 Information processing method, information processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110162730B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324340B (en) * 2020-02-20 2021-07-20 腾讯科技(深圳)有限公司 Interaction method and device based on webpage copy, storage medium and computer equipment
CN112860522A (en) * 2021-03-02 2021-05-28 北京梧桐车联科技有限责任公司 Program operation monitoring method, device and equipment
CN115203618B (en) * 2022-09-13 2023-01-20 北京达佳互联信息技术有限公司 Page processing method and device, electronic equipment and storage medium
CN115964114A (en) * 2023-01-17 2023-04-14 前海飞算云智软件科技(深圳)有限公司 Application page display method and device, storage medium and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03201133A (en) * 1989-12-28 1991-09-03 Sanyo Electric Co Ltd Information processor
WO2016105328A1 (en) * 2014-12-22 2016-06-30 Hewlett Packard Enterprise Development Lp Execution of interaction flows
CN108021362B (en) * 2017-12-21 2019-09-20 南京大学 Android application access control code generating method based on XACML access control mechanisms
CN108647133A (en) * 2018-04-28 2018-10-12 深圳市小牛在线互联网信息咨询有限公司 User's operation track recording method, device, storage medium and computer equipment
CN109032568A (en) * 2018-07-13 2018-12-18 孟智平 Generation method, terminal device and the storage medium of programmed logic
CN109344062A (en) * 2018-09-26 2019-02-15 深圳壹账通智能科技有限公司 The cross-domain method for jumping test of the page and terminal device

Also Published As

Publication number Publication date
CN110162730A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110162730B (en) Information processing method, information processing device, computer equipment and storage medium
CN108804299B (en) Application program exception handling method and device
CN108153551B (en) Method and device for displaying business process page
US7917755B1 (en) Identification of localized web page element
US10073766B2 (en) Building signatures of application flows
US20030210266A1 (en) Design environment to facilitate accessible software
CN110955428A (en) Page display method and device, electronic equipment and medium
CN106844181B (en) Method, system and mobile terminal for recording user behavior
EP2839628B1 (en) Providing rule based analysis of content to manage activation of web extension
CN111831542B (en) API application debugging method and device and storage medium
CN112000563A (en) User behavior recording method, device and equipment
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
AU2014302400A1 (en) Execution and display of events in web browsers
CN112015626A (en) User behavior recording method, device and equipment
CN111047434B (en) Operation record generation method and device, computer equipment and storage medium
CN116244138A (en) Method and device for identifying abnormal operation of application, electronic equipment and storage medium
US10282216B2 (en) Automatic import of third party analytics
CN112307386A (en) Information monitoring method, system, electronic device and computer readable storage medium
CN111200639B (en) Information pushing method and device based on user operation behavior and electronic equipment
CN112817817A (en) Buried point information query method and device, computer equipment and storage medium
CN111309428A (en) Information display method, information display device, electronic apparatus, and storage medium
CN110874216B (en) Complete code generation method, device, equipment and storage medium
CN111581518A (en) Information pushing method and device
CN116126697A (en) Test case generation method, device, equipment and computer readable storage medium
US11550990B2 (en) Machine first approach for identifying accessibility, non-compliances, remediation techniques and fixing at run-time

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