CN116126426B - Automatic component decoupling method and system based on Web service system - Google Patents

Automatic component decoupling method and system based on Web service system Download PDF

Info

Publication number
CN116126426B
CN116126426B CN202310368933.5A CN202310368933A CN116126426B CN 116126426 B CN116126426 B CN 116126426B CN 202310368933 A CN202310368933 A CN 202310368933A CN 116126426 B CN116126426 B CN 116126426B
Authority
CN
China
Prior art keywords
target
information
node
webpage
web page
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
CN202310368933.5A
Other languages
Chinese (zh)
Other versions
CN116126426A (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.)
Hangzhou Zhongyun Data Technology Co ltd
Huzhou Big Data Operation Co ltd
Hangzhou City Big Data Operation Co ltd
Original Assignee
Hangzhou Zhongyun Data Technology Co ltd
Huzhou Big Data Operation Co ltd
Hangzhou City Big Data Operation 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 Hangzhou Zhongyun Data Technology Co ltd, Huzhou Big Data Operation Co ltd, Hangzhou City Big Data Operation Co ltd filed Critical Hangzhou Zhongyun Data Technology Co ltd
Priority to CN202310368933.5A priority Critical patent/CN116126426B/en
Publication of CN116126426A publication Critical patent/CN116126426A/en
Application granted granted Critical
Publication of CN116126426B publication Critical patent/CN116126426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses an automatic component decoupling method and system based on a Web service system. Analyzing the target webpage to obtain node element information in the target webpage by acquiring and loading the target webpage; acquiring initial prior information of an input target business process, and matching corresponding target node element information in node element information according to the initial prior information of the target business process; analyzing the target webpage step by step in sequence in a recursion mode in a preset webpage depth range by taking all target node element information as an entry so as to obtain process node information required by a target business process and webpage node information conforming to prior information of termination of the target business process; and establishing a mapping relation between a target node corresponding to the initial priori information, a process node and a webpage node corresponding to the termination priori information so as to generate a functional component of the target service. The problems of excessive dependence on service experts, time consumption and the like in the deployment and implementation process of the conventional RPA technology are solved, and the reutilization of the existing system is realized.

Description

Automatic component decoupling method and system based on Web service system
Technical Field
The application belongs to the technical field of computers, and particularly relates to an automatic component decoupling method and system based on a Web service system.
Background
With the rapid development of Service-oriented architecture (Service-Oriented Architecture, SOA) and related technologies, a large number of Web Service systems are created to support the ever-emerging business scenario demands, and Web services often face a large number of mechanically repeated and tedious operations.
In the related art, it is currently popular to replace the above operation by RPA (robot flow automation technology), but this is faced with the following problems:
the deployment of the RPA needs to firstly comb and analyze the existing workflow, find out where the RPA can be used for reconstruction, and realize automation. The Web system is often dependent in different development stages, different developers take hold of different development concepts, develop by means of different development platforms and different development technologies, and related processes are difficult to comb and analyze along with departure of related personnel and loss of data.
Aiming at the technical problems that the existing component decoupling method in the related technology is difficult to realize automation, no effective solution is proposed yet.
Disclosure of Invention
Therefore, an embodiment of the present application is to provide a method and a system for decoupling an automation component based on a Web service system, an electronic device, and a storage medium, which aim to solve at least one problem existing in the prior art.
To achieve the above object, in a first aspect, the present application provides an automation component decoupling method based on a Web service system, including:
step 1: acquiring and loading a target webpage, and analyzing the target webpage to obtain node element information in the target webpage;
step 2: acquiring initial prior information of an input target business process, and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
step 3: analyzing the target webpage step by step in sequence in a recursion mode by taking all the target node element information as an entry within a preset webpage depth range so as to obtain process node information required by a target business process and webpage node information conforming to prior information of termination of the target business process;
step 4: if the web page node information corresponding to the termination priori information is matched, a mapping relation between a target node corresponding to the starting priori information, a process node and a web page node corresponding to the termination priori information is established, and a functional component of the target service is generated according to the mapping relation.
In one embodiment, if the web page node information corresponding to the termination priori information is not matched in the step 4, analyzing the downlink web page of the target web page step by step in sequence by taking all the interactable node element information under the target web page obtained in the step 3 as an entry based on a preset web page analysis depth parameter until all the web page node information conforming to the termination priori information of the target business process is matched, and storing the process node information generated in each step.
In one embodiment, the matching corresponding target node element information in the node element information according to the target business process starting prior information includes: and matching corresponding target node element information in the node element information based on the operation type of the node element according to the target business process starting priori information.
In one embodiment, before the target web page is acquired, the method further comprises: and executing a handle program to acquire the target webpage.
In one embodiment, the node element information in the target web page includes: each node element under different program framework systems is based on the Xpath path information of the target web page, the window handle of the target web page, the URL, the element type, and the content information on which the forward node depends.
In one embodiment, further comprising: and receiving a splicing instruction of the functional components of the target service, and connecting the functional components of each target service in series or in parallel based on preset service logic according to the splicing instruction by utilizing an RPA technology.
In a second aspect, the present application also provides an automation component decoupling system based on a Web service system, including:
the first component element capturing module is used for acquiring and loading a target webpage and analyzing the target webpage to obtain node element information in the target webpage;
the second component element capturing module is used for acquiring initial prior information of an input target business process and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
the first automation component generating module is used for analyzing the target webpage step by step in sequence in a recursion mode in a preset webpage depth range by taking all the target node element information as an entrance so as to obtain process node information required by a target business process and webpage node information conforming to the prior information of termination of the target business process;
and the second automation component generating module is used for establishing a mapping relation among the target node corresponding to the initial prior information, the process node and the webpage node corresponding to the termination prior information if the webpage node information corresponding to the termination prior information is matched, and generating the functional component of the target service according to the mapping relation.
In one embodiment, the second automation component generating module is further configured to, if the web page node information corresponding to the termination priori information is not matched in the step 4, parse the downlink web page of the target web page step by step in order by using all the interactable node element information under the target web page obtained in the step 3 as an entry based on a preset web page parsing depth parameter until all the web page node information conforming to the termination priori information of the target business process is matched, and store the process node information generated in each step.
In a third aspect, the present application also provides an electronic device, including a memory and a processor, where the memory stores a computer program, where the computer program, when executed by the processor, causes the processor to perform the steps of the method for decoupling an automation component of a Web service system.
In a fourth aspect, the present application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, causes the processor to perform the steps of the method for decoupling an automation component of a Web service system.
According to the method and the system for decoupling the automation component based on the Web service system, the electronic equipment and the storage medium, a target webpage, namely a carrier of the Web service system, is firstly obtained and loaded, and the target webpage is analyzed to obtain node element information in the target webpage; secondly, acquiring initial prior information of an input target business process, and matching and screening corresponding target node element information in node element information according to the initial prior information of the business process; then, analyzing the target webpage step by step and in sequence in a preset webpage depth range by taking the screened target node element information as an entry, thereby obtaining the process node information required by the business process and the webpage node information conforming to the prior information of the business process termination; and finally, if the node which accords with the service termination priori information is matched, a flow sequence mapping relation among the service start priori information node, the process node information and the service termination priori information node is retrospectively established, and according to the flow relation, the functional component which meets the target service is rapidly mapped and generated based on an RPA technology. The method provided by the application can rapidly and automatically analyze and comb the Web service with only a small amount of knowledge about the system, thereby rapidly decoupling the original system in batches to form the business function component meeting the requirement of the inter-system docking, solving the problems of excessive dependence on business experts, time consumption and the like in the deployment and implementation process of the prior RPA technology, realizing the reutilization of the existing system, improving the efficiency of software development and forming better software products and services.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, are incorporated in and constitute a part of this specification. The drawings and their description are illustrative of the application and are not to be construed as unduly limiting the application. In the drawings:
fig. 1 is a flow chart of an implementation of an automatic component decoupling method based on a Web service system according to an embodiment of the present application;
fig. 2 is an overall framework diagram of an automation component decoupling method based on a Web service system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a capturing flow of component elements of an automatic component decoupling method based on a Web service system according to an embodiment of the present application;
fig. 4 is a schematic flow diagram of an automation component generation of an automation component decoupling method based on a Web service system according to an embodiment of the present application;
fig. 5 is a schematic diagram of main modules of an automation component decoupling system based on a Web service system according to an embodiment of the present application;
FIG. 6 is a diagram of an exemplary system architecture to which embodiments of the present application may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, and system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. In the present application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate an azimuth or a positional relationship based on that shown in the drawings. These terms are only used to better describe the present application and its embodiments and are not intended to limit the scope of the indicated devices, elements or components to the particular orientations or to configure and operate in the particular orientations.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present application will be understood by those of ordinary skill in the art according to the specific circumstances.
In addition, the term "plurality" shall mean two as well as more than two.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 shows a flow chart of implementing the method for decoupling an automation component based on a Web service system according to the embodiment of the present application, fig. 2 shows an overall frame diagram of the method for decoupling an automation component based on a Web service system according to the embodiment of the present application, fig. 3 shows a schematic diagram of capturing component elements of the method for decoupling an automation component based on a Web service system according to the embodiment of the present application, and fig. 4 shows a schematic diagram of generating an automation component of the method for decoupling an automation component based on a Web service system according to the embodiment of the present application. For convenience of explanation, only the portions related to the embodiments of the present application are shown, and the details are as follows:
an automatic component decoupling method based on a Web service system comprises the following steps:
s101: acquiring and loading a target webpage, and analyzing the target webpage to obtain node element information in the target webpage;
s102: acquiring initial prior information of an input target business process, and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
s103: analyzing the target webpage step by step in sequence in a recursion mode by taking all the target node element information as an entry within a preset webpage depth range so as to obtain process node information required by a target business process and webpage node information conforming to prior information of termination of the target business process;
s104: if the web page node information corresponding to the termination priori information is matched, a mapping relation between a target node corresponding to the starting priori information, a process node and a web page node corresponding to the termination priori information is established, and a functional component of the target service is generated according to the mapping relation.
Therefore, the automatic component decoupling method based on the Web service system firstly obtains and loads the target webpage, namely the carrier of the Web service system, and analyzes the target webpage to obtain node element information in the target webpage; secondly, acquiring initial prior information of an input target business process, and matching and screening corresponding target node element information in node element information according to the initial prior information of the business process; then, analyzing the target webpage step by step and in sequence in a preset webpage depth range by taking the screened target node element information as an entry, thereby obtaining the process node information required by the business process and the webpage node information conforming to the prior information of the business process termination; and finally, if the node which accords with the service termination priori information is matched, a flow sequence mapping relation among the service start priori information node, the process node information and the service termination priori information node is retrospectively established, and according to the flow relation, the functional component which meets the target service is rapidly mapped and generated based on an RPA technology. The method provided by the application can rapidly and automatically analyze and comb the Web service with only a small amount of knowledge about the system, thereby rapidly decoupling the original system in batches to form the business function component meeting the requirement of the inter-system docking, solving the problems of excessive dependence on business experts, time consumption and the like in the deployment and implementation process of the prior RPA technology, realizing the reutilization of the existing system, improving the efficiency of software development and forming better software products and services.
In step S101: and acquiring and loading a target webpage, and analyzing the target webpage to obtain node element information in the target webpage.
In one embodiment, before the target web page is acquired, the method further comprises: and executing a handle program to acquire the target webpage. Thus, the target web page of the target window is acquired by the execution of the handler.
Here, clicking on a link or button while browsing a web page sometimes pops up a new window, the identity of which is also called a handle. The handle is a unique identifier of a browser window, the switching among different browser windows is realized through the handle, when a browser is manually controlled, the browser automatically jumps to the latest handle when generating a new handle, but in the automatic code program execution, the automatic jump to the latest handle is not defaulted, so that a handle program is required to be executed to switch the handle, namely, the target browser window is positioned, namely, the target webpage is positioned.
In one embodiment, the preset node element information group comprises content information that each node element under different program framework systems depends on the Xpath path information of the target webpage, the window handle of the target webpage, the URL, the element type and the forward node. Therefore, when the webpage structure of the target webpage is analyzed, the webpage structure can be analyzed based on the predefined node element information group, and subsequent component decoupling is facilitated. In this embodiment, in order to implement the running function of the component, a node element information group is customized in advance, where the customized node element information group includes not only Xpath path information of the element based on the current web page, but also content information such as a window handle, URL, element type, forward node dependency, and the like of the current web page. Considering that different program frameworks (such as a Selenium and an lxml frame package under a Python system) have differences on analysis results of the webpage, the method provided by the application integrates result information under different webpage analysis frameworks, thereby integrating more complete element information files.
In step S102: acquiring initial prior information of an input target business process, and matching corresponding target node element information in the node element information according to the initial prior information of the target business process. After analyzing the target webpage into node element information, acquiring service starting priori information of the input target service. Here, the target service refers to a complete service closed-loop system flow for completing a task in the system, for example, a reimbursement flow in a reimbursement system is a reimbursement service; the service initiation priori information refers to some summarized and known service words, such as medical insurance, online handling and the like, based on a system operation manual or description materials provided by a system constructor. The service initiation priori information is input through a front-end user interface, and after the service initiation priori information is input, the corresponding target node element information is matched in the node element information according to the service initiation priori information, wherein the target node element information refers to a node element information group corresponding to the service initiation priori information. In one embodiment, the matching corresponding target node element information in the node element information according to the service initiation priori information includes: and matching corresponding target node element information in the node element information based on the operation type of the node element according to the service initiation prior information. On the basis of webpage structure analysis, the node element information is matched by combining the operation types of the elements, such as the types of buttons, input boxes, drop-down boxes and the like.
It should be noted that, the service initiation priori information (a priori knowledge) input in this step is not "overextensive" knowledge, and is the binding system itself, and sources are the explanatory materials provided by the system operation manual or the system construction side, and the range to be decoupled can be rapidly reduced by using the input priori information, so as to accelerate the analysis efficiency.
In step S103: and analyzing the target webpage step by step in sequence in a preset webpage depth range by taking all the target node element information as an entry in a recursion mode so as to obtain the process node information required by the target business process and the webpage node information conforming to the prior information of termination of the target business process.
It should be noted that, the service termination priori information corresponds to service initiation priori information, and is also based on a system operation manual or an explanatory material provided by a system constructor, and some summarized words of the service which are relatively known may be words corresponding to termination flows of the service flows corresponding to initiation priori information such as medical insurance, online transaction, etc., for example, reimbursement settlement.
In step S104: if the web page node information corresponding to the termination priori information is matched, a mapping relation between a target node corresponding to the starting priori information, a process node and a web page node corresponding to the termination priori information is established, and a functional component of the target service is generated according to the mapping relation.
In one embodiment, if the web page node information corresponding to the termination priori information is not matched in the step 4, analyzing the downlink web page of the target web page step by step in sequence by taking all the interactable node element information under the target web page obtained in the step 3 as an entry based on a preset web page analysis depth parameter until all the web page node information conforming to the termination priori information of the target business process is matched, and storing the process node information generated in each step. If the service termination priori information is matched, directly performing the next step; if the service termination priori information is not matched, analyzing the service termination priori information corresponding to the service initiation priori information by adopting a recursion mode by taking all interactable node element information under the target webpage as an entry based on a preset webpage analysis depth parameter until the service termination priori information is matched, and storing the process node element information generated in each step.
In one example, if the service termination priori information is not matched, analyzing the target webpage in a recursive manner by taking all interactable node element information in the target webpage as an entry based on a preset webpage analysis depth parameter, matching the service termination priori information corresponding to the service initiation priori information until the service termination priori information is matched, and storing a webpage element information group generated in each step; and establishing a mapping relation among the service start priori information, the process node element information and the service stop priori information, and generating a functional component of the target service according to the mapping relation.
Thus, by integrating the node information sets, the functional components of the output target service are mapped. In this embodiment, the node information sets including the Xpath path and the browser handle in the decoupling process are integrated and connected in series, and mapped into components for realizing specific functions (target services), where the functional components are some command string information, and can be integrated with other components later.
Further, the method also comprises the following steps: and receiving a splicing instruction of the functional components of the target service, and connecting the functional components of each target service in series or in parallel based on preset service logic according to the splicing instruction by utilizing an RPA technology. The functional module obtained in the previous step and other formed functional modules are connected in series or in parallel through service logic by means of RPA technology to form a module which can provide specific complete service function service, namely a service function module.
Specifically, as shown in fig. 2, the method for decoupling an automation component provided in this embodiment integrally includes two modules, namely, a component element capturing module and an automation component generating module, where the component element capturing module outputs a node information set obtained by decoupling to the component automation generating module, so as to form a component adapted to a downstream, and further, different functional components are integrated into a service functional component according to service logic. As shown in fig. 3 and fig. 4, the component element capturing module takes webpage information as input, combines priori manual 'start' and 'stop' information knowledge, gradually screens to obtain target information matching with the priori knowledge, and generates and stores node information groups including Xpath and the like in the process; and the automatic component generating module utilizes the node information group to locate, operate, check and the like elements to form functional components, and then different functional components are integrated through service logic to form service functional components for self or sharing to other systems.
For example, in a project construction process, more than 10 Web systems need to be docked and integrated, and due to various risk problems in terms of data security, intellectual property rights, system data loss, etc., even with the help of RPA technology, the related process of the carding needs to consume a lot of time and effort. Based on the method for decoupling the automation component of the Web service system provided by the embodiment, the docked system is further recognized, the business operation carried by the Web system is rapidly and batched mapped into the functional component in an automatic mode, then the functional components formed based on the existing Web system group are integrated by relying on business logic among the functional components, and the functional component interface meeting the docking requirement is formed by means of the RPA technology. Therefore, the system can realize the online related project system only by 5 days in a short time on the basis of not providing a deep code of the system and following the interaction mode of the original system, and compared with the conventional interface docking (about 30 days) and RPA combined with manual carding arrangement (20 days), the system has the advantages of accelerating the software implementation effect, reducing the manpower development cost and effectively supporting the digital economy scene construction.
Therefore, according to the automatic component decoupling method based on the Web service system, the target webpage, namely the carrier of the Web service system, is firstly obtained and loaded, and the target webpage is analyzed to obtain node element information in the target webpage; secondly, acquiring initial prior information of an input target business process, and matching and screening corresponding target node element information in node element information according to the initial prior information of the business process; then, analyzing the target webpage step by step and in sequence in a preset webpage depth range by taking the screened target node element information as an entry, thereby obtaining the process node information required by the business process and the webpage node information conforming to the prior information of the business process termination; and finally, if the node which accords with the service termination priori information is matched, a flow sequence mapping relation among the service start priori information node, the process node information and the service termination priori information node is retrospectively established, and according to the flow relation, the functional component which meets the target service is rapidly mapped and generated based on an RPA technology. The method provided by the application can rapidly and automatically analyze and comb the Web service with only a small amount of knowledge about the system, thereby rapidly decoupling the original system in batches to form the business function component meeting the requirement of the inter-system docking, solving the problems of excessive dependence on business experts, time consumption and the like in the deployment and implementation process of the prior RPA technology, realizing the reutilization of the existing system, improving the efficiency of software development and forming better software products and services.
Fig. 5 is a schematic diagram of main modules of an automation component decoupling system based on a Web service system according to an embodiment of the present application, and for convenience of explanation, only a portion relevant to the embodiment of the present application is shown, which is described in detail below:
an automated component decoupling system 200 based on a Web services system, comprising:
the first component element capturing module 201 is configured to acquire and load a target webpage, and parse the target webpage to obtain node element information in the target webpage;
a second component element capturing module 202, configured to obtain initial prior information of an input target service flow, and match corresponding target node element information in the node element information according to the initial prior information of the target service flow;
the first automation component generating module 203 is configured to sequentially analyze the target web page step by step in a recursive manner in a preset web page depth range by taking all the target node element information as an entry, so as to obtain process node information required by the target business process and web page node information according with the target business process termination priori information;
the second automation component generating module 204 is configured to, if the mapping relationship is matched with the web page node information corresponding to the termination priori information, establish a mapping relationship between the target node corresponding to the start priori information, the process node and the web page node corresponding to the termination priori information, and generate a functional component of the target service according to the mapping relationship.
In one embodiment, the second automation component generating module is further configured to, if the web page node information corresponding to the termination priori information is not matched in the step 4, parse the downlink web page of the target web page step by step in order by using all the interactable node element information under the target web page obtained in the step 3 as an entry based on a preset web page parsing depth parameter until all the web page node information conforming to the termination priori information of the target business process is matched, and store the process node information generated in each step.
It should be noted that, the automation component decoupling system based on the Web service system according to the embodiment of the present application configures the automation component decoupling method based on the Web service system according to the embodiment of the present application, and other embodiments of the automation component decoupling system based on the Web service system correspond to all embodiments of the automation component decoupling method based on the Web service system, which is not described herein again.
Therefore, the automatic component decoupling system based on the Web service system provided by the embodiment of the application can rapidly and automatically analyze and comb the Web service with little knowledge about the system, and further rapidly and batchly decouple the original system to form the business function component meeting the requirements of inter-system docking, thereby solving the problems of excessive dependence on business experts, time consumption and the like in the implementation process of the conventional RPA technology deployment, realizing the reutilization of the existing system, improving the efficiency of software development, and forming better software products and services.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the automatic component decoupling method based on the Web service system.
The embodiment of the application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method for decoupling an automation component based on a Web service system according to the embodiment of the application.
Fig. 6 illustrates an exemplary system architecture 300 to which the Web service system-based automation component decoupling method of embodiments of the present application may be applied.
As shown in fig. 6, the system architecture 300 may include terminal devices 301, 302, 303, a network 304, and a server 305. The network 304 is used as a medium to provide communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 305 via the network 304 using the terminal devices 301, 302, 303 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 301, 302, 303.
The terminal devices 301, 302, 303 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 305 may be a server providing various services, such as a background management server providing support for user messages sent to and from the terminal devices 301, 302, 303. The background management server can perform analysis and other processes after receiving the terminal equipment request, and feed back the processing result to the terminal equipment.
It should be noted that, the method for decoupling an automation component based on a Web service system according to the embodiment of the present application is generally executed by the terminal device 301, 302, 303 or the server 305, and accordingly, the automation component decoupling system based on a Web service system is generally disposed in the terminal device 301, 302, 303 or the server 305.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 400 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present application. The computer system shown in fig. 7 is only an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
As shown in fig. 7, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, 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 an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 401.
The computer readable medium shown in the present application 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 the context of this document, 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 the present application, however, the computer-readable signal medium may include 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: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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 application. 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 or flowchart illustration, and combinations of blocks in the block diagrams 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 modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a determination module, an extraction module, a training module, and a screening module. Where the names of the modules do not constitute a limitation on the module itself in some cases, the determination module may also be described as "module for determining a candidate set of users", for example.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An automated component decoupling method based on a Web service system, comprising:
step 1: acquiring and loading a target webpage, and analyzing the target webpage to obtain node element information in the target webpage;
step 2: acquiring initial prior information of an input target business process, and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
step 3: analyzing the target webpage step by step in sequence in a recursion mode by taking all the target node element information as an entry within a preset webpage depth range so as to obtain process node information required by a target business process and webpage node information conforming to prior information of termination of the target business process;
step 4: if the web page node information corresponding to the termination priori information is matched, a mapping relation between a target node corresponding to the starting priori information, a process node and a web page node corresponding to the termination priori information is established, and a functional component of the target service is generated according to the mapping relation.
2. The method for decoupling an automation component based on a Web service system according to claim 1, wherein if the Web page node information corresponding to the termination priori information is not matched in the step 4, analyzing the lower search Web page of the target Web page step by step in sequence by taking all the interactable node element information under the target Web page acquired in the step 3 as an entry based on a preset Web page analysis depth parameter until all the Web page node information conforming to the termination priori information of the target business process is matched, and storing the process node information generated in each step.
3. The method for decoupling an automation component based on a Web service system according to claim 2, wherein the matching the corresponding target node element information in the node element information according to the target business process initiation priori information comprises: and matching corresponding target node element information in the node element information based on the operation type of the node element according to the target business process starting priori information.
4. The Web service system-based automation component decoupling method of claim 1, further comprising, prior to obtaining the target Web page: and executing a handle program to acquire the target webpage.
5. The Web service system-based automation component decoupling method of claim 1, wherein the node element information in the target Web page comprises: each node element under different program framework systems is based on the Xpath path information of the target web page, the window handle of the target web page, the URL, the element type, and the content information on which the forward node depends.
6. The Web service system-based automation component decoupling method of claim 1, further comprising: and receiving a splicing instruction of the functional components of the target service, and connecting the functional components of each target service in series or in parallel based on preset service logic according to the splicing instruction by utilizing an RPA technology.
7. An automated component decoupling system based on a Web service system, comprising:
the first component element capturing module is used for acquiring and loading a target webpage and analyzing the target webpage to obtain node element information in the target webpage;
the second component element capturing module is used for acquiring initial prior information of an input target business process and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
the first automation component generating module is used for analyzing the target webpage step by step in sequence in a recursion mode in a preset webpage depth range by taking all the target node element information as an entrance so as to obtain process node information required by a target business process and webpage node information conforming to the prior information of termination of the target business process;
and the second automation component generating module is used for establishing a mapping relation among the target node corresponding to the initial prior information, the process node and the webpage node corresponding to the termination prior information if the webpage node information corresponding to the termination prior information is matched, and generating the functional component of the target service according to the mapping relation.
8. The system for decoupling an automation component based on a Web service system according to claim 7, wherein the second automation component generating module is further configured to, if the Web page node information corresponding to the termination priori information is not matched in step 4, parse the downlink Web page of the target Web page step by step in sequence with all the interactable node element information under the target Web page obtained in step 3 as an entry based on a preset Web page parsing depth parameter until all the Web page node information conforming to the termination priori information of the target business process is matched, and store the process node information generated in each step.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the Web service system based automation component decoupling method of any one of claims 1 to 6.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the Web service system based automation component decoupling method of any one of claims 1 to 6.
CN202310368933.5A 2023-04-10 2023-04-10 Automatic component decoupling method and system based on Web service system Active CN116126426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310368933.5A CN116126426B (en) 2023-04-10 2023-04-10 Automatic component decoupling method and system based on Web service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310368933.5A CN116126426B (en) 2023-04-10 2023-04-10 Automatic component decoupling method and system based on Web service system

Publications (2)

Publication Number Publication Date
CN116126426A CN116126426A (en) 2023-05-16
CN116126426B true CN116126426B (en) 2023-08-29

Family

ID=86308451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310368933.5A Active CN116126426B (en) 2023-04-10 2023-04-10 Automatic component decoupling method and system based on Web service system

Country Status (1)

Country Link
CN (1) CN116126426B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069435B1 (en) * 2003-08-18 2011-11-29 Oracle America, Inc. System and method for integration of web services
CN103309954A (en) * 2013-05-27 2013-09-18 复旦大学 Html webpage based data extracting system
CN106326314A (en) * 2015-07-07 2017-01-11 腾讯科技(深圳)有限公司 Web page information extraction method and device
CN111079057A (en) * 2019-12-05 2020-04-28 中国科学技术大学智慧城市研究院(芜湖) Data mapping and interoperation system and method based on WEB information
CN113391871A (en) * 2021-08-17 2021-09-14 杭州实在智能科技有限公司 RPA element intelligent fusion picking method and system
CN113553268A (en) * 2021-07-27 2021-10-26 苏州市龙测智能科技有限公司 AI intelligent software testing method
CN114240358A (en) * 2021-12-15 2022-03-25 平安证券股份有限公司 Method, device, equipment and medium for realizing user-defined business process
CN115062206A (en) * 2022-05-30 2022-09-16 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN115903694A (en) * 2022-11-04 2023-04-04 北京镁伽机器人科技有限公司 Test flow analysis method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8645913B2 (en) * 2010-12-21 2014-02-04 Sap Ag Web-service based generation of business objects

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069435B1 (en) * 2003-08-18 2011-11-29 Oracle America, Inc. System and method for integration of web services
CN103309954A (en) * 2013-05-27 2013-09-18 复旦大学 Html webpage based data extracting system
CN106326314A (en) * 2015-07-07 2017-01-11 腾讯科技(深圳)有限公司 Web page information extraction method and device
CN111079057A (en) * 2019-12-05 2020-04-28 中国科学技术大学智慧城市研究院(芜湖) Data mapping and interoperation system and method based on WEB information
CN113553268A (en) * 2021-07-27 2021-10-26 苏州市龙测智能科技有限公司 AI intelligent software testing method
CN113391871A (en) * 2021-08-17 2021-09-14 杭州实在智能科技有限公司 RPA element intelligent fusion picking method and system
CN114240358A (en) * 2021-12-15 2022-03-25 平安证券股份有限公司 Method, device, equipment and medium for realizing user-defined business process
CN115062206A (en) * 2022-05-30 2022-09-16 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN115903694A (en) * 2022-11-04 2023-04-04 北京镁伽机器人科技有限公司 Test flow analysis method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于优化NFA正则匹配的Web信息抽取技术及应用研究;陈志宇;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;全文 *

Also Published As

Publication number Publication date
CN116126426A (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN110543297B (en) Method and apparatus for generating source code
CN109981322B (en) Method and device for cloud resource management based on label
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
CN113076153B (en) Interface calling method and device
CN113760488B (en) Method, apparatus, device and computer readable medium for scheduling tasks
CN110895534A (en) Data splicing method, device, medium and electronic equipment
CN116126426B (en) Automatic component decoupling method and system based on Web service system
CN111131359B (en) Method and apparatus for generating information
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
US11023672B1 (en) Dynamic service injection
CN109871560B (en) Method and device for operating target model
CN115526587A (en) Method and device for generating customs message
CN112783903B (en) Method and device for generating update log
CN111131354B (en) Method and apparatus for generating information
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN110858240A (en) Front-end module loading method and device
CN111401825B (en) Instantiation method and device
CN112783665B (en) Interface compensation method and device
CN113806033B (en) Task execution method, device, server and medium for task system
CN112988528B (en) Log processing method, device and container group
CN113448652A (en) Request processing method and device
CN116955362A (en) Task processing method and device
CN118014505A (en) Multi-cloud arrangement system and multi-cloud arrangement method
CN113407203A (en) Method and device for deploying application
CN113760745A (en) Interface automation test case generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant