CN116880901B - Application page analysis method, device, electronic equipment and computer readable medium - Google Patents

Application page analysis method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN116880901B
CN116880901B CN202311133555.9A CN202311133555A CN116880901B CN 116880901 B CN116880901 B CN 116880901B CN 202311133555 A CN202311133555 A CN 202311133555A CN 116880901 B CN116880901 B CN 116880901B
Authority
CN
China
Prior art keywords
application page
page
application
identifier
target application
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
CN202311133555.9A
Other languages
Chinese (zh)
Other versions
CN116880901A (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.)
State Grid Siji Network Security Beijing Co ltd
State Grid Information and Telecommunication Co Ltd
Original Assignee
State Grid Siji Network Security Beijing Co ltd
State Grid Information and Telecommunication 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 State Grid Siji Network Security Beijing Co ltd, State Grid Information and Telecommunication Co Ltd filed Critical State Grid Siji Network Security Beijing Co ltd
Priority to CN202311133555.9A priority Critical patent/CN116880901B/en
Publication of CN116880901A publication Critical patent/CN116880901A/en
Application granted granted Critical
Publication of CN116880901B publication Critical patent/CN116880901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/75Structural analysis for program understanding

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses an application page parsing method, an application page parsing device, electronic equipment and a computer readable medium. One embodiment of the method comprises the following steps: constructing a site identifier of a site corresponding to the target application; the method comprises the steps of inputting application page resource positioning identifiers contained in each application page associated with a site into the site; for each application page in each application page, generating an application page identifier according to each application page resource positioning identifier input to the website by the application page, wherein the application page in each application page comprises at least one application page resource positioning identifier; for each application page identifier, generating an application page resource positioning identifier relation table according to the application page identifier and the corresponding application page resource positioning identifier; and generating an application page analysis file according to the relation table of the site identification and the resource positioning identification of each application page. According to the embodiment, the efficiency of buried data acquisition is improved, the calculated amount is reduced, and the page analysis time is shortened.

Description

Application page analysis method, device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an application page parsing method, an application page parsing device, an electronic device, and a computer readable medium.
Background
In the context of fine-grained operations, efficient page data mining best-practices have very important implications. At present, the way to parse the page and mine the data is generally as follows: and adding buried points on a page-by-page basis based on the unified buried point platform so as to realize buried point data acquisition.
However, the following technical problems generally exist in the above manner:
firstly, more pages are contained in the application, so that more page resource positioning identification URLs are caused, the same page possibly contains different parameters, the URLs of various pages are matched, the calculated amount is increased in multiple, and the page analysis time is long;
secondly, when updating the page in the application, the page can be compiled and packaged only at the server side, so that the page is updated, and the update of the client application is delayed;
thirdly, when testing the page in the application, the page needs to be tested by combining a tool and a debugging code, so that the operation is complicated, and the testing time is long.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose application page parsing methods, apparatuses, electronic devices, and computer-readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide an application page parsing method, including: building a site identifier of a site corresponding to a target application, wherein the site is associated with each application page contained in the target application; inputting application page resource positioning identifiers contained in each application page associated with the website into the website; for each application page in the application pages, generating an application page identifier according to the application page resource positioning identifiers input to the website, wherein the application page in each application page comprises at least one application page resource positioning identifier; for each application page identifier, generating an application page resource positioning identifier relation table according to the application page identifier and the corresponding application page resource positioning identifier; generating an application page analysis file according to the site identification and each application page resource positioning identification relation table; and accessing the application page analysis file into a network server corresponding to the target application.
In a second aspect, some embodiments of the present disclosure provide an application page parsing apparatus, including: the construction unit is configured to construct a site identifier of a site corresponding to a target application, wherein the site is associated with each application page contained in the target application; the input unit is configured to input application page resource positioning identifiers contained in each application page associated with the website into the website; the first generation unit is configured to generate an application page identifier according to the application page resource positioning identifiers of the application pages input to the website for each application page in the application pages, wherein the application page in the application pages comprises at least one application page resource positioning identifier; the second generating unit is configured to generate an application page resource positioning identification relation table according to the application page identifications and the corresponding application page resource positioning identifications for each application page identification; the third generating unit is configured to generate an application page analysis file according to the site identification and each application page resource positioning identification relation table; and the access unit is configured to access the application page analysis file to the network server corresponding to the target application.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by applying the page parsing method of some embodiments of the present disclosure, efficiency of buried data collection is improved, calculation amount is reduced, and page parsing time is shortened. Specifically, the reason why the page resolution time is long is that the calculation amount is doubled is that: the application contains more pages, so that page resource location identification URLs are more, the same page may contain different parameters, and the URLs of various pages are matched, so that the calculated amount is doubled. Based on this, in the application page parsing method of some embodiments of the present disclosure, first, a site identifier of a site corresponding to a target application is constructed. Wherein the site associates each application page contained in the target application. Therefore, each application page corresponding to the target application can be associated to the site in advance before the embedded point is accessed. Therefore, the corresponding relation between the application page resource positioning identification and the application page can be established. Secondly, the application page resource positioning identification contained in each application page associated with the site is input into the site. And then, for each application page in the application pages, generating an application page identifier according to the application page resource positioning identifier of the application page input to the website. Thus, a unique identification of each application page may be generated. And then, for each application page identifier, generating an application page resource positioning identifier relation table according to the application page identifiers and the corresponding application page resource positioning identifiers. Therefore, the association relation between the application page resource positioning identification and the application page identification can be established, and the data of each application page resource positioning identification associated with the application page identification can be collected at one time by utilizing the uniqueness of the application page identification during the buried data collection. Therefore, the acquisition efficiency of the application page buried point data is improved. And then, generating an application page analysis file according to the relation table of the site identification and the resource positioning identification of each application page. And finally, the application page analysis file is accessed into a network server corresponding to the target application. Therefore, the application page resource positioning identification relation table corresponding to each application page can be combined in one file. Therefore, after the application page is accessed to the embedded point, embedded point data corresponding to the application page resource positioning identification can be collected in batches, the efficiency of embedded point data collection is improved, the calculated amount is reduced, and the page analysis time is shortened.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of an application page resolution method according to the present disclosure;
FIG. 2 is a flow chart of some embodiments of an application page resolution apparatus according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow chart of some embodiments of an application page resolution method according to the present disclosure. A flow 100 is shown for applying some embodiments of the page resolution method according to the present disclosure. The application page analysis method comprises the following steps:
Step 101, building site identification of a site corresponding to the target application.
In some embodiments, an executing body (e.g., computing device) of the application page resolution method may construct a site identification of a site corresponding to the target application. Wherein the site associates each application page contained in the target application. The target application may refer to an application program for which the buried data is to be collected. The site may be a pre-established storage area corresponding to the target application. For example, a site may be divided into a main sub-site (site and virtual directory), and a site structure may be designed according to requirements through site management. The site identification may uniquely identify the site. The execution subject of the application page parsing method may be a system for buried data acquisition. That is, sites corresponding to the target applications described above may be created in a buried data collection system, and site identifications generated. For example, the site identification may be generated from an application name of the target application. Thereafter, each application page contained in the target application may be associated under the site. Such as page path information for associated application pages under the site.
And 102, inputting application page resource positioning identifiers contained in each application page associated with the website into the website.
In some embodiments, the executing entity may enter application page resource location identifiers included in each application page associated with the site into the site. The page resource location identification may refer to a resource locator (URL) in the application page. The input application page resource positioning identifier can be part of a plurality of application page resource positioning identifiers contained in the application page; or may be the full application page resource location identifier. Some path and some parameters in the application page resource positioning identification can be set as variable parts, and the valid application page resource positioning identification value (URL value) can be matched.
Step 103, for each application page in the application pages, generating an application page identifier according to the application page resource positioning identifier of each application page input to the website.
In some embodiments, the execution body may generate, for each of the application pages, an application page identifier according to the application page resource location identifier of each application page that is entered into the website. The application pages in the application pages contain at least one application page resource positioning identifier. Each application page resource location identifier can be spliced into an application page identifier.
Step 104, for each application page identifier, generating an application page resource positioning identifier relation table according to the application page identifier and the corresponding application page resource positioning identifier.
In some embodiments, the executing body may generate, for each application page identifier, an application page resource location identifier relationship table according to the application page identifier and a corresponding application page resource location identifier.
In practice, the execution body may generate the application page resource location identifier relationship table by:
and the first step is to determine the resource positioning identifiers of the application pages corresponding to the application page identifiers in the sites. And determining the resource positioning identification of each application page corresponding to the application page identification recorded in the website.
Second, for each application page resource locating identifier in the above-mentioned various application page resource locating identifiers, executing the following processing steps:
and a first sub-step, extracting an application page resource positioning path character string in the application page resource positioning identification. The application page resource locator identification may include a URL and page resource locator path string. For example, the application page resource locator identifier may be "https:// xxx. Xxx/path1/: path2/#/demo/: testpar1 = d". Here, the application page resource locator path string may be "/path1/: path2/#/demo/: testpar1 = d".
And a second sub-step of grouping each character included in the application page resource positioning path character string through a preset segmentation character group so as to generate an application page resource positioning path sub-character string sequence. The preset divided character group may be preset individual divided characters. For example, the segmentation character set may be ". For example, the application page resource locator path string "/path1/: path2/#/demo/: testpar1 = d" may be partitioned into "/path1/", ": path2/", "#/demo/", ": test", ".
And a third sub-step of carrying out hash processing on each application page resource positioning path sub-character string in the application page resource positioning path sub-character string sequence to generate a hash application page resource positioning path sub-character string. And carrying out Hash processing on each application page resource positioning path sub-character string through a Hash algorithm to generate a Hash application page resource positioning path sub-character string.
And a fourth substep, splicing the generated sub-character strings of the resource positioning paths of the hash application pages into the resource positioning identifiers of the hash application pages.
And thirdly, mapping the application page identifier and each hash application page resource positioning identifier to generate an application page resource positioning identifier relation table. An index relationship between the application page identifier and each hash application page resource location identifier can be established to construct an application page resource location identifier relationship table. .
And 105, generating an application page analysis file according to the relation table of the site identification and the resource positioning identification of each application page.
In some embodiments, the executing entity may generate an application page resolution file according to the site identifier and the relationship table of the application page resource location identifiers. The application page resolution null file may be established with the site identification as the file name. And adding the resource positioning identification relation table of each application page into the application page analysis empty file to obtain the application page analysis file. The application page resolution file may be a json format configuration file.
And step 106, the application page analysis file is accessed into a network server corresponding to the target application.
In some embodiments, the executing entity may access the application page resolution file to a web server corresponding to the target application. The network server may be a CDN server. For example, the application page resolution file described above may be accessed into the CDN server using the lua scripting language in combination with ng inx.
Optionally, in response to detecting an access operation corresponding to a target application page, a corresponding application page parsing file is read from the network server according to a site identifier corresponding to the target application page.
In some embodiments, the executing body may read the corresponding application page resolution file from the web server according to the site identifier corresponding to the target application page in response to detecting the access operation of the corresponding target application page. The target application page is accessed to the embedded point plug-in. The embedded point plug-in may be referred to as a JavaScript SDK plug-in. The access operation may refer to a selection operation by which the user accesses the target application page. For example, access may be made by clicking on a target application page in the target application. The site identifier corresponding to the target application page may be a site identifier set when the embedded point plug-in is accessed, or may be a site identifier set in advance. That is, the application page resolution file corresponding to the site identifier may be read from the web server.
Optionally, determining the access application page resource positioning identifier corresponding to the access operation.
In some embodiments, the executing entity may determine an access application page resource location identifier corresponding to the access operation. The application page resource positioning identifier triggered by the access operation is the access application page resource positioning identifier.
Optionally, determining whether an application page resource positioning identifier relationship table corresponding to the access application page resource positioning identifier exists in each application page resource positioning identifier relationship table included in the application page analysis file.
In some embodiments, the executing entity may determine whether an application page resource location identifier relationship table corresponding to the access application page resource location identifier exists in each application page resource location identifier relationship table included in the application page resolution file. First, the access application page resource locator identifier may be hashed to generate a hashed access application page resource locator identifier. And then determining whether the application page resource positioning identification relationship table containing the hash application page resource positioning identification identical to the hash access application page resource positioning identification exists in each application page resource positioning identification relationship table contained in the application page analysis file.
Optionally, in response to determining that there is an application page resource positioning identifier relationship table corresponding to the access application page resource positioning identifier, uploading an application page identifier contained in the application page resource positioning identifier relationship table to an application page data monitoring terminal.
In some embodiments, the executing body may upload the application page identifier included in the application page resource location identifier relationship table to the application page data monitoring terminal in response to determining that there is the application page resource location identifier relationship table corresponding to the access application page resource location identifier. Here, the application page data listening terminal may refer to a listening server communicatively connected to the above-described execution subject.
Optionally, in response to detecting an update operation of a corresponding target application page, application page coding information of the target application page is acquired.
In some embodiments, the executing body may obtain the application page coding information of the target application page in response to detecting the update operation of the corresponding target application page. The target application page may be an application page to be updated in the target application. The application page may include a plurality of components. The above application page coding information may be an information file describing each UI component to be updated or created in the target application page. For example, the UI components described above may include: button assembly, picture assembly. The information file may be a file written using a preset format. The preset format may be XML format or JSON format.
Optionally, node analysis is performed on the application page coding information to obtain a component node tree.
In some embodiments, the execution body may perform node resolution on the application page coding information to obtain a component node tree. Wherein, the component nodes in the component node tree comprise a node attribute information group. The component nodes in the component node tree may characterize a UI component. The node attribute information set may characterize respective attributes of the corresponding UI component. For example, the various attributes described above may include, but are not limited to, at least one of: font, color, width, height, etc. The node attribute information in the node attribute information group may be a value of one attribute corresponding to the UI component. Each component node in the above-described component node tree may further include: component node identification, component type identification, component child node identification, and adjacent component node identification. Wherein, the component node identifier may uniquely represent a component node. The component type identifier may be an identifier of a type to which the UI component corresponding to the component node belongs. Such as text type, button type. The text types described above may represent text components. The button types described above may represent a button assembly. The execution main body can analyze the node of the application page coding information according to the format of the application page coding information by a preset analysis method (JDOM analysis method and DOM analysis method) to obtain a component node tree. The component node tree may be a tree structure composed of component nodes. The above-described component node tree may characterize structural relationships between individual component nodes. The above structural relationship may include: a master child node relationship, a sibling node relationship. The above-described master-child node relationship may characterize a parent node where one node is another. The sibling relationship may characterize that two nodes correspond to the same parent node and are siblings of each other.
Optionally, determining a node meeting a preset node condition in the component node tree as a target component node.
In some embodiments, the execution body may determine a node satisfying a preset node condition in the component node tree as a target component node. The preset node condition may be: the component node is a component node which is at the top of the component node tree and is not connected with the main node. The master node may be a parent node of the target component node.
Optionally, based on the target component node, the following creation steps are performed:
in the first step, in response to determining that the cache data identifier corresponding to the target component node does not exist in the preset cache data identifier set, the target component node is subjected to identifier detection, and a node type identifier is obtained. The cache data identifier in the preset cache data identifier set may be an identifier corresponding to one UI component, which is stored in the cache area in advance. The cache data identifier of the corresponding target component node may be the same as the component node identifier included in the target component node. The node type identifier may be an identifier of a node type. The node type may characterize whether a node is connected with a component child node and whether there is a neighboring sibling node to the right of the node. First, the first preset type identifier may be determined as a node type identifier in response to determining that a component child node identifier and a neighboring node identifier exist in the target component node. The first preset type identifier may indicate that the target component node is connected with the component child node, and that adjacent sibling nodes exist on the right side. Then, in response to determining that the component child node identity exists in the target component node and the adjacent component node identity does not exist, determining the second preset type identity as the node type identity. The second preset type identifier may indicate that the target component node is connected with the component child node, and that no adjacent sibling node exists on the right side. And finally, in response to determining that the adjacent component node identifier exists in the target component node and the component sub-node identifier does not exist, determining the third preset type identifier as the node type identifier. The third preset type identifier may indicate that the target component node is not connected to the component child node, and that there is a neighboring sibling node on the right side.
And secondly, in response to determining that the node type identification meets the preset container type node condition, creating a component tree. The preset container type node condition may be: the node type identifier is the same as the first preset type identifier, or the node type identifier is the same as the second preset type identifier.
In practice, the second step may comprise the following sub-steps:
and a first sub-step of dynamically updating the target application page based on the node attribute information group included in the target component node in response to determining that the cache data identifier corresponding to the target component node exists in the cache data identifier set. First, according to the component node identifier included in the target component node, one UI parser matching the component type identifier may be selected from a preset UI parser set. And traversing the target application page according to the selected UI parser to determine the UI component corresponding to the target component node. And finally, assigning values to the traversed attributes of the UI component according to the node attribute information group included by the target component node so as to update the target application page.
And a second sub-step of selecting an interface component corresponding to the target component node from the interface components corresponding to the target application page as a target interface component. The cached data identifier corresponding to the interface component corresponding to the target component node is the same as the component node identifier included by the target component node.
And a third sub-step of adding the target interface component corresponding to the target component node into the main node interface component corresponding to the target component node.
And a fourth sub-step, performing node detection on the target component node to obtain a node type identifier. First, the execution body may determine the first preset type identifier as a node type identifier in response to determining that there is a component child node identifier and a neighboring component node identifier in the target component node. Then, in response to determining that the component child node identifier exists in the target component node and the adjacent component node identifier does not exist, the second preset type identifier is determined to be the node type identifier. And finally, in response to determining that the adjacent component node identifier exists in the target component node and the child node identifier does not exist, determining the third preset type identifier as the node type identifier.
And a fifth sub-step of creating a component tree corresponding to the target component node based on the target component node and the node type identification. The component node tree having the target component node as a root node may be traversed by a traversal algorithm to generate a corresponding component tree. It should be noted that, in the traversal process, each time a component node is traversed, a corresponding UI component is created. As an example, the above-described traversal algorithm may include: hierarchical traversal, medium-order traversal.
Optionally, in response to determining that the node type identifier does not satisfy the preset container type node condition, creating a sub-interface component.
In some embodiments, the execution body may create a sub-interface component in response to determining that the node type identifier does not satisfy the preset container type node condition. The sub-interface component may be an interface component that is different from the main container interface component and in which other UI components cannot be placed. First, one UI parser matching the component type identifier may be selected from the UI parser set according to the component type identifier included in the target component node. And then, analyzing the target component node through the selected UI analyzer to obtain the sub-interface component. And finally, assigning each attribute of the sub-interface component according to the node attribute information group included by the target component node.
Optionally, the sub-interface component is added to a main container interface component corresponding to a main node identifier included in the target component node.
In some embodiments, the execution body may add the sub-interface component to a main container interface component corresponding to a main node identifier included in the target component node. The sub-interface components can be added into the main container interface components corresponding to the main node identifications included in the target component nodes through UI resolvers corresponding to the sub-interface components.
Optionally, adding the component tree to a preset layout container component to obtain an added layout container component.
In some embodiments, the execution body may add the component tree to a preset layout container component to obtain an added layout container component. The preset layout container assembly may be a preset container assembly for interface layout. The layout container assembly may include: row component, column component, flex component.
Optionally, the adding layout container component is added to the target application page to update the target application page.
In some embodiments, the execution body may add the add layout container component to the target application page to update the target application page. The added layout container component can be added into the target application page through a preset JavaScript script so as to update the target application page.
Optionally, in response to determining that the node type identifier meets a preset association node condition, updating the target component node, and taking the updated target component node as a new target component node, performing the creating step again.
In some embodiments, the executing body may update the target component node in response to determining that the node type identifier satisfies a preset association node condition, and execute the creating step again with the updated target component node as a new target component node. The preset association node condition may be that the node type identifier is the same as the third preset type identifier. The component node corresponding to the adjacent component node identification included in the target component node may be determined as the target component node, and the creating step may be performed again.
The above related matters serve as an invention point of the present disclosure, and solve the second technical problem mentioned in the background art, which causes a delay in updating the client application. ". Factors that cause delays in updating of client applications tend to be as follows: when updating a page in an application, the page can only be compiled and packaged at a server side. If the above factors are solved, the effect of reducing update delay of the client application can be achieved. To achieve this effect, first, in response to detection of an update operation of a corresponding target application page, application page code information of the target application page is acquired. Thus, the page-coded file parsed at the terminal can be obtained. And secondly, carrying out node analysis on the application page coding information to obtain a component node tree. Wherein, the component nodes in the component node tree comprise a node attribute information group. Thus, the page structure and the related attribute information can be obtained. And then, determining the component node meeting the preset node condition in the component node tree as a target component node. Thereafter, based on the target component node, the following creation steps are performed: in response to determining that the cache data identifier corresponding to the target component node does not exist in the preset cache data identifier set, performing identifier detection on the target component node to obtain a node type identifier; in response to determining that the node type identifier satisfies a preset container type node condition, a component tree is created. And then, in response to determining that the node type identifier does not meet the preset container type node condition, creating a sub-interface component. Then, adding the sub-interface component into a main container interface component corresponding to a main node identifier included in the target component node; and adding the component tree to a preset layout container component to obtain an added layout container component. And finally, adding the added layout container component into the target application page to update the target application page. Therefore, the corresponding component tree can be determined according to the component node tree, and then the component tree is added to the corresponding position on the target application page through the layout container component, so that the quick dynamic updating of the target application page is completed. Therefore, the updating speed of the target application page can be improved, and the updating delay of the client application is reduced.
Optionally, loading the target application according to page configuration information corresponding to the target application.
In some embodiments, the execution body may load the target application according to page configuration information corresponding to the target application. The page configuration information comprises page links of the target application page. The target application page may be a page displayed in the target application. The page configuration information may be configuration related information of a target application page of a target application configured in advance. The page configuration information may include a page link of the target application page. The page links may be URL uniform resource locators. The page configuration information may include: triggering user information and executing terminal type. The trigger user information may be information about a user who triggers an offline loading test of a target application page of the target application. The trigger user information may include a user identification. The type of terminal executing may be the type of terminal executing the offline loading test (e.g., android or iOS). In practice, it may be determined whether the type of the execution terminal included in the above page configuration information is the same as the type of the current execution subject. Then, in response to determining that the type of the execution terminal is the same as the type of the current execution subject, and that the target application is not installed locally, the version of the target application corresponding to the type of the current execution subject may be installed locally.
Optionally, acquiring terminal page configuration information corresponding to the target application page.
In some embodiments, the executing body may acquire terminal page configuration information corresponding to the target application page. The terminal page configuration information may be configuration related information of a target application page configured in advance when the terminal is loaded. The terminal page configuration information may include: check information, login state information and download information. The verification information may be information related to a real-time update mechanism of the resource to be loaded. The resources to be loaded may include, but are not limited to: html, css. The verification information may include: and the identification of each resource to be loaded. The login state information may be information of a login state to be synchronized. The login state information may include various login states to be synchronized. The download information may be time information that the resource to be loaded needs to be downloaded. For example, the download timing information may be: the download is performed after entering the application, and the first time the page is entered. In practice, the execution body may read the terminal page configuration information issued by the interface through the page link.
Optionally, the target application page is loaded on line in the installed target application through the page link and the terminal page configuration information, so as to collect an on-line loading log of the target application page.
In some embodiments, the executing body may load the target application page online in the installed target application through the page link and the terminal page configuration information, so as to collect an online loading log of the target application page. Firstly, the page link can be accessed in the target application to load the target application page on line in the target application, and meanwhile, the target application page on-line loading log when the target application page is loaded can be acquired. And the method can also respond to the fact that the current time is determined to be the time corresponding to the downloading information, and the resources to be loaded corresponding to the target application page are downloaded locally. The updated login state may also be determined as the login state of the target application page in response to determining that the login state of the target application is updated and that the login state information includes the updated login state. The updated resource to be loaded may also be stored locally in response to determining that the resource to be loaded of the target application is updated, and the verification information includes an identification of the updated resource to be loaded. The target application page online load log may include a load duration.
Optionally, according to the terminal page configuration information, the target application page is loaded offline in the installed target application, so as to acquire a target application page offline loading log.
In some embodiments, the executing body may load the target application page offline in the installed target application according to the terminal page configuration information, so as to collect an offline loading log of the target application page. In practice, the target application page can be loaded offline in the installed target application according to the locally stored static resource corresponding to the target application page in response to the current time being greater than the time corresponding to the download information, and the offline loading log of the target application page can be acquired.
Optionally, merging the online loading log of the target application page and the offline loading log of the target application page to obtain a loading test log of the target application page.
In some embodiments, the execution body may perform a merging process on the online loading log of the target application page and the offline loading log of the target application page to obtain a loading test log of the target application page.
Optionally, generating a page test report according to the loading test log.
In some embodiments, the execution body may generate a page test report according to the load test log. The loading test log can be filled into a preset report template to obtain a page test report.
The related content is taken as an invention point of the present disclosure, solves the technical problem three mentioned in the background art, and has the disadvantages of complicated operation and long test time. ". The operation is more complicated, and the factors with longer testing time are often as follows: when testing the page in the application, the page needs to be tested by combining a tool and a debugging code, and the operation is complicated. If the above factors are solved, the effect of shortening the test time can be achieved. To achieve this, first, the target application is loaded according to page configuration information corresponding to the target application. The page configuration information comprises page links of the target application page. Therefore, the application can be installed locally according to the configuration related information of the target application page of the pre-configured test application so as to construct the basic software environment of the offline test. And secondly, acquiring terminal page configuration information corresponding to the target application page. Thus, the configuration related information of the target application page during loading can be obtained through the application. And then, loading the target application page on line in the installed target application by the page link and the terminal page configuration information so as to acquire an on-line loading log of the target application page. Thus, the target application page can be loaded on line in the application in advance, so that the log of the target application page loaded on line can be collected. And then, according to the terminal page configuration information, loading the target application page offline in the installed target application to acquire a target application page offline loading log. And then, merging the online loading log of the target application page and the offline loading log of the target application page to obtain a loading test log of the target application page. And finally, generating a page test report according to the loading test log. Therefore, the test problem of the offline loading target application page can be positioned through the summarized loading test logs. And when the offline loading of the target application page is tested, the method is realized through the pre-configured page configuration information and the terminal page configuration information, and a mode of capturing a network request by a tool is not adopted, so that the loading test operation is simplified, and the test time is shortened.
With further reference to fig. 2, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of an application page parsing apparatus, which correspond to those method embodiments shown in fig. 1, and which are particularly applicable to various electronic devices.
As shown in fig. 2, the application page parsing apparatus 200 of some embodiments includes: a construction unit 201, an entry unit 202, a first generation unit 203, a second generation unit 204, a third generation unit 205 and an access unit 206. The construction unit 201 is configured to construct a site identifier of a site corresponding to a target application, where the site is associated with each application page included in the target application; an input unit 202 configured to input application page resource location identifiers included in each application page associated with the website into the website; a first generating unit 203, configured to generate, for each application page of the application pages, an application page identifier according to the application page resource location identifier of each application page entered into the website, where the application page of each application page includes at least one application page resource location identifier; a second generating unit 204 configured to generate, for each application page identifier, an application page resource location identifier relationship table according to the application page identifier and the corresponding application page resource location identifier; a third generating unit 205 configured to generate an application page resolution file according to the site identifier and each application page resource location identifier relationship table; and an access unit 206 configured to access the application page resolution file to a web server corresponding to the target application.
It will be appreciated that the elements described in the application page resolution apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and beneficial effects described above for the method are equally applicable to the application page parsing apparatus 200 and the units contained therein, and are not described herein again.
Referring now to FIG. 3, a schematic diagram of an electronic device (e.g., computing device) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: building a site identifier of a site corresponding to a target application, wherein the site is associated with each application page contained in the target application; inputting application page resource positioning identifiers contained in each application page associated with the website into the website; for each application page in the application pages, generating an application page identifier according to the application page resource positioning identifiers input to the website, wherein the application page in each application page comprises at least one application page resource positioning identifier; for each application page identifier, generating an application page resource positioning identifier relation table according to the application page identifier and the corresponding application page resource positioning identifier; generating an application page analysis file according to the site identification and each application page resource positioning identification relation table; and accessing the application page analysis file into a network server corresponding to the target application.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor comprising: the system comprises a construction unit, an input unit, a first generation unit, a second generation unit, a third generation unit and an access unit. The names of these units do not limit the unit itself in some cases, and for example, the access unit may also be described as "a unit that accesses the application page resolution file to the web server corresponding to the target application".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (5)

1. An application page parsing method, comprising:
building a site identifier of a site corresponding to a target application, wherein the site is associated with each application page contained in the target application;
the application page resource positioning identifiers contained in all application pages associated with the site are input into the site;
for each application page in the application pages, generating an application page identifier according to the application page resource positioning identifiers input to the website by the application page, wherein the application page in the application pages comprises at least one application page resource positioning identifier;
for each application page identifier, generating an application page resource positioning identifier relation table according to the application page identifier and the corresponding application page resource positioning identifier;
generating an application page analysis file according to the site identification and each application page resource positioning identification relation table;
accessing the application page analysis file to a network server corresponding to the target application;
loading the target application according to page configuration information corresponding to the target application, wherein the page configuration information comprises page links of a target application page;
Acquiring terminal page configuration information corresponding to the target application page;
loading the target application page on line in the installed target application through the page link and the terminal page configuration information so as to acquire an on-line loading log of the target application page;
according to the terminal page configuration information, the target application page is loaded offline in the installed target application to acquire a target application page offline loading log;
combining the online loading log of the target application page and the offline loading log of the target application page to obtain a loading test log of the target application page;
and generating a page test report according to the loading test log.
2. The method of claim 1, wherein the method further comprises:
responding to the detection of access operation of a corresponding target application page, and reading a corresponding application page analysis file from the network server according to a site identifier corresponding to the target application page, wherein the target application page is accessed to a buried point plug-in;
determining an access application page resource positioning identifier corresponding to the access operation;
determining whether an application page resource positioning identification relation table corresponding to the access application page resource positioning identification exists in each application page resource positioning identification relation table included in the application page analysis file;
And in response to determining that an application page resource positioning identification relation table corresponding to the access application page resource positioning identification exists, uploading an application page identification contained in the application page resource positioning identification relation table to an application page data monitoring terminal.
3. An application page parsing apparatus comprising:
the construction unit is configured to construct a site identifier of a site corresponding to a target application, wherein the site is associated with each application page contained in the target application;
the input unit is configured to input application page resource positioning identifiers contained in each application page associated with the site into the site;
the first generation unit is configured to generate an application page identifier according to each application page resource positioning identifier input to the website by the application page for each application page in each application page, wherein the application page in each application page comprises at least one application page resource positioning identifier;
the second generation unit is configured to generate an application page resource positioning identification relation table according to the application page identifications and the corresponding application page resource positioning identifications for each application page identification;
The third generating unit is configured to generate an application page analysis file according to the site identification and each application page resource positioning identification relation table;
the access unit is configured to access the application page analysis file to a network server corresponding to the target application;
the first loading unit is configured to load the target application according to page configuration information corresponding to the target application, wherein the page configuration information comprises page links of a target application page;
the acquisition unit is configured to acquire terminal page configuration information corresponding to the target application page;
the second loading unit is configured to load the target application page on line in the installed target application through the page link and the terminal page configuration information so as to acquire an on-line loading log of the target application page;
the third loading unit is configured to load the target application page offline in the installed target application according to the terminal page configuration information so as to acquire a target application page offline loading log;
the merging unit is configured to merge the target application page online loading log and the target application page offline loading log to obtain a loading test log of the target application page;
And the fourth generation unit is configured to generate a page test report according to the loading test log.
4. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-2.
5. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-2.
CN202311133555.9A 2023-09-05 2023-09-05 Application page analysis method, device, electronic equipment and computer readable medium Active CN116880901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311133555.9A CN116880901B (en) 2023-09-05 2023-09-05 Application page analysis method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311133555.9A CN116880901B (en) 2023-09-05 2023-09-05 Application page analysis method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN116880901A CN116880901A (en) 2023-10-13
CN116880901B true CN116880901B (en) 2023-11-24

Family

ID=88262402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311133555.9A Active CN116880901B (en) 2023-09-05 2023-09-05 Application page analysis method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN116880901B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017036309A1 (en) * 2015-08-31 2017-03-09 阿里巴巴集团控股有限公司 Page rendering method, device and apparatus
CN112100550A (en) * 2019-06-17 2020-12-18 北京京东尚科信息技术有限公司 Page construction method and device
CN113590985A (en) * 2021-09-29 2021-11-02 北京每日优鲜电子商务有限公司 Page jump configuration method and device, electronic equipment and computer readable medium
CN113590986A (en) * 2021-09-29 2021-11-02 北京每日优鲜电子商务有限公司 Page link configuration method and device, electronic equipment and computer readable medium
CN113961181A (en) * 2021-10-12 2022-01-21 北京小米移动软件有限公司 Code online editing method, device, client, server and storage medium
CN113961835A (en) * 2021-11-12 2022-01-21 挂号网(杭州)科技有限公司 Data processing method and device, electronic equipment and storage medium
CN114519037A (en) * 2022-02-21 2022-05-20 中国农业银行股份有限公司 Table online previewing method, device and system
CN116150513A (en) * 2022-12-23 2023-05-23 北京淘友天下技术有限公司 Data processing method, device, electronic equipment and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AT10182U3 (en) * 2008-05-26 2009-05-15 Avl List Gmbh METHOD FOR MONITORING PERFORMANCE TEST STANDS, AND PERFORMANCE TEST BENCH
CN109714406B (en) * 2018-12-18 2021-04-02 网宿科技股份有限公司 Method and equipment for processing resource description file and acquiring page resource

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017036309A1 (en) * 2015-08-31 2017-03-09 阿里巴巴集团控股有限公司 Page rendering method, device and apparatus
CN112100550A (en) * 2019-06-17 2020-12-18 北京京东尚科信息技术有限公司 Page construction method and device
CN113590985A (en) * 2021-09-29 2021-11-02 北京每日优鲜电子商务有限公司 Page jump configuration method and device, electronic equipment and computer readable medium
CN113590986A (en) * 2021-09-29 2021-11-02 北京每日优鲜电子商务有限公司 Page link configuration method and device, electronic equipment and computer readable medium
CN113961181A (en) * 2021-10-12 2022-01-21 北京小米移动软件有限公司 Code online editing method, device, client, server and storage medium
CN113961835A (en) * 2021-11-12 2022-01-21 挂号网(杭州)科技有限公司 Data processing method and device, electronic equipment and storage medium
CN114519037A (en) * 2022-02-21 2022-05-20 中国农业银行股份有限公司 Table online previewing method, device and system
CN116150513A (en) * 2022-12-23 2023-05-23 北京淘友天下技术有限公司 Data processing method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN116880901A (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN111274760B (en) Rich text data processing method and device, electronic equipment and computer storage medium
US10102306B2 (en) Patching base document object model (DOM) with DOM-differentials to generate high fidelity replay of webpage user interactions
TW201915850A (en) Method for generating application program, apparatus, system, device, and medium
US20210064453A1 (en) Automated application programming interface (api) specification construction
CN113590974B (en) Recommendation page configuration method and device, electronic equipment and computer readable medium
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN112084179B (en) Data processing method, device, equipment and storage medium
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN114491560A (en) Vulnerability detection method and device, storage medium and electronic equipment
CN112379965B (en) Sandbox file mapping system, client device, mapping end device, sandbox file mapping method and electronic equipment
CN112988569A (en) Method and system for viewing micro-service request response based on nginx
CN113721910A (en) Interface code generation method and device, electronic equipment and computer readable medium
CN112749351B (en) Link address determination method, device, computer readable storage medium and equipment
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN116880901B (en) Application page analysis method, device, electronic equipment and computer readable medium
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN113590986B (en) Page link configuration method and device, electronic equipment and computer readable medium
CN111338928A (en) Chrome-based browser testing method and device
CN117675238A (en) Data access method, device, electronic equipment and storage medium
CN115576805A (en) Log display method and device, readable medium and electronic equipment
CN113704659A (en) Equipment terminal access marking method and system
CN112817874A (en) User interface test method, device, equipment and medium
CN112256585B (en) Page display method, page display device, electronic equipment and computer readable medium
CN113515437B (en) Method and device for debugging interface
CN112084440B (en) Data verification method, device, electronic equipment and computer readable medium

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