CN114115835B - Automatic coding execution flow construction method and device, storage medium and intelligent terminal - Google Patents

Automatic coding execution flow construction method and device, storage medium and intelligent terminal Download PDF

Info

Publication number
CN114115835B
CN114115835B CN202210095509.3A CN202210095509A CN114115835B CN 114115835 B CN114115835 B CN 114115835B CN 202210095509 A CN202210095509 A CN 202210095509A CN 114115835 B CN114115835 B CN 114115835B
Authority
CN
China
Prior art keywords
action
code
automatic
template
flow
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
CN202210095509.3A
Other languages
Chinese (zh)
Other versions
CN114115835A (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.)
Guangzhou Gengyi Information Technology Co ltd
Original Assignee
Guangzhou Gengyi Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Gengyi Information Technology Co ltd filed Critical Guangzhou Gengyi Information Technology Co ltd
Priority to CN202210095509.3A priority Critical patent/CN114115835B/en
Publication of CN114115835A publication Critical patent/CN114115835A/en
Application granted granted Critical
Publication of CN114115835B publication Critical patent/CN114115835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an automatic coding execution flow construction method and device based on an automatic execution designer, a storage medium and an intelligent terminal, wherein the method comprises the following steps: the user logs in the automatic execution designer based on the login information and obtains user authority corresponding to the login information; displaying an executable action command identifier in the authority to the user on an action panel based on the user authority; adding an executable action command identifier on the action panel into the flow panel according to the target flow sequence, and searching a corresponding action coding template; replacing the corresponding parameters in the searched corresponding action code template to generate an action code; and converting the action code flow formed by the action code into an automatic code which can be compiled and executed to form an automatic code execution flow. In the embodiment of the invention, an execution flow is constructed on the terminal and the repetitive work is executed, and the method has higher compatibility, does not need repetitive operation of a user and improves the user experience.

Description

Automatic coding execution flow construction method and device, storage medium and intelligent terminal
Technical Field
The invention relates to the technical field of computer software, in particular to an automatic coding execution flow construction method and device based on an automatic execution designer, a storage medium and an intelligent terminal.
Background
In the prior art, if simulation automation operation is required to be carried out on software or a system, a professional programmer is required to carry out customized development, and the development is mostly based on window API, MSAA, UIA2.0 and other underlying libraries. The customized development can solve part of problems, but the applicability and the compatibility are difficult to guarantee, and a professional programmer is needed to realize the customized development, so that the user who cannot program can realize the automatic operation.
Most of the prior art is customized and developed aiming at specific software or systems, and the disadvantages of the customized and developed technology are as follows: the development period of the customized development is long, a professional programmer is needed, and the development and maintenance cost is high; the customization development has a great problem on compatibility, and the difference of an operating system can cause that an automatic process cannot be executed; the popularity of automation operation is not strong due to customization and development, and the software automation robot is difficult to popularize to the public; the compatibility of the customized development to the software is poor, and only 40-50% of the software on the market can be compatible, and the customized development cannot be solved by a plurality of common software.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides an automatic coding execution flow construction method, an automatic coding execution flow construction device, a storage medium and an intelligent terminal based on an automatic execution designer.
In order to solve the above technical problem, an embodiment of the present invention provides an automatic encoding execution flow construction method based on an automatic execution designer, where the method includes: a user logs in an automatic execution designer based on login information and obtains user permission corresponding to the login information; displaying an intra-authority executable action command identification to a user on an action panel of the auto-execution designer based on the user authority; adding an executable action command identifier on the action panel into the flow panel according to the target flow sequence, and searching a corresponding action coding template; replacing the corresponding parameters in the searched corresponding action code template to generate an action code; and converting the action code flow formed by the action code into an automatic code which can be compiled and executed to form an automatic code execution flow.
Optionally, the adding the identifier of the executable action command on the action panel to the flow panel according to the target flow sequence, and performing corresponding action coding template search includes: obtaining a target process sequence; adding the executable action command identification on the action panel into the flow panel in a mode of dragging in or double-clicking through a mouse according to the target flow sequence; and searching and processing the corresponding action coding template according to the executable action command identifier added into the flow panel.
Optionally, the motion coding template is stored in a json file in the form of a json character string; and after the executable action command identifier is obtained, the corresponding action coding template is searched by searching the key value corresponding to the opId in the json file.
Optionally, the replacing the found corresponding parameter in the corresponding motion coding template to generate the motion code includes: each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, the corresponding parameter in the corresponding action code template is replaced to generate an action code; wherein the corresponding parameter is stored in the motion coding template in a form of "{ $ paramName }".
Optionally, the replacing the corresponding parameter in the corresponding motion encoding template includes: and when the corresponding motion coding template carries out corresponding parameter replacement, searching a character string conforming to the format according to the regular expression, and carrying out replacement processing based on the value of a program variable 'paramName'.
Optionally, the action code process is a process in which a plurality of action codes are put into a queue according to an execution order, and are executed according to a first-in first-out order during execution.
Optionally, the step of converting the motion coding process formed by the motion coding into an automatic coding capable of being compiled and executed to form an automatic coding execution process includes: and dequeuing the action code flow formed by the action codes in a flow code queue, and converting each dequeued action code into an automatic code which can be compiled and executed to form an automatic code execution flow.
In addition, an embodiment of the present invention further provides an automatic encoding execution flow construction apparatus based on an automatic execution designer, where the apparatus includes: a login module: the designer is used for automatically executing login by a user based on login information and acquiring user permission corresponding to the login information; a display module: displaying an intra-authority executable action command identification to a user on an action panel of the auto-execution designer based on the user authority; adding a searching module: the action panel is used for adding an executable action command identifier on the action panel into the flow panel according to a target flow sequence and searching a corresponding action coding template; and a replacement module: the motion code generation module is used for replacing the corresponding parameters in the searched corresponding motion code template to generate motion codes; a conversion module: and the automatic coding execution flow is formed by converting the action code flow formed by the action code into an automatic code which can be compiled and executed.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the automatic encoding execution flow construction method according to any one of the above.
In addition, an embodiment of the present invention further provides an intelligent terminal device, which includes: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: executing the method of automated code execution flow construction according to any of the above.
In the specific implementation process of the invention, the code conversion technology is adopted to convert the operation of the user into the executable automatic script language, thereby providing a very simple user interaction interface; meanwhile, the differences among different systems are integrated, so that the automatic process can smoothly run among the different systems; the adaptability is stronger, and 90% of software on the market can be automatically operated; an execution flow is established on the terminal, repetitive work is executed, high compatibility is achieved, repeated operation of a user is not needed, and user experience is improved; meanwhile, the learning cost of the automatic process of the development software is reduced, and a low-code or even code-free automatic process development platform is constructed, so that common users can create automatic robots.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an automatic code execution flow construction method based on an automatic execution designer in an embodiment of the present invention.
Fig. 2 is a schematic structural composition diagram of an automatic code execution flow construction device based on an automatic execution designer in the embodiment of the present invention.
Fig. 3 is a schematic structural composition diagram of an intelligent terminal device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment.
Referring to fig. 1, fig. 1 is a schematic flow chart of an automatic encoding execution flow construction method based on an automatic execution designer according to an embodiment of the present invention.
As shown in fig. 1, an automatic encoding execution flow construction method based on an automatic execution designer includes: s11: and the user logs in the automatic execution designer based on the login information and obtains the user authority corresponding to the login information.
In the specific implementation process of the invention, a user needs to log in the automatic execution designer through login information, wherein the login information comprises an account and a password corresponding to the account; after a user logs in the automatic execution designer, distributing corresponding user permission according to an account of the user and obtaining the user permission corresponding to the login information, wherein the user permission comprises common user permission and authorized user permission, and the common user permission can only use limited executable action command identification; the authorized user rights may be identified using all executable action commands.
S12: displaying, to a user on an action panel of the auto-execution designer, an intra-authority executable action command identification based on the user authority.
In the specific implementation process of the invention, the automatic execution designer is provided with a plurality of panels, including an action panel, a control panel, a flow panel, an element information panel, a log panel and a variable panel; after a user logs in an automatic execution designer, displaying an executable action command identifier in authority to the user on an action panel of the automatic execution designer according to the user authority of the user; the subsequent operation of the user is convenient.
S13: adding an executable action command identifier on the action panel into the flow panel according to the target flow sequence, and searching a corresponding action coding template;
in the specific implementation process of the present invention, the adding and identifying the executable action command identifier on the action panel to the flow panel according to the target flow sequence, and performing corresponding action coding template search includes: obtaining a target process sequence; adding the executable action command identification on the action panel into the flow panel in a mode of dragging in or double-clicking through a mouse according to the target flow sequence; and searching and processing the corresponding action coding template according to the executable action command identifier added into the flow panel.
Further, the action coding template is stored in a json file in the form of a json character string; and after the executable action command identifier is obtained, the corresponding action coding template is searched by searching the key value corresponding to the opId in the json file.
Specifically, a target flow sequence needs to be obtained, for example, a certain website needs to be opened to perform query of certain information, a browser needs to be opened first, then the website needs to be opened through the browser, and then query of certain information needs to be performed through the website; at this time, the executable action command identifier on the action panel needs to be added to the flow panel in a mouse-in or double-click manner according to the target flow sequence on the action panel; and performing corresponding action code template searching processing according to the executable action command identification added into the flow panel.
Namely, the user can drag operation actions (such as clicking elements, setting input box texts and the like) into the right flow panel by using a mouse from the action panel on the left side of the software to form an automatic flow. After the operation action is dragged into the flow panel, the program searches a corresponding action code template according to an operation action identifier (such as element. click), all the action code templates are stored in a json file in the form of json character strings, and after the operation action identifier is obtained, the corresponding template code can be found by searching a key value corresponding to 'opId' in the json file.
The json file format is as follows:
"Name": element operation ",
“Item”:
{
“opIndex”:0;
"opName": "acquire focus",
“opId”:“Elenent.setFocus”,
“Tag”:{\elePicker\:true},
“variableValue:null”,
“ExportResult”:fase
}
{
“opIndex”:0;
"opName": "get input box text",
“opId”:“Elenent.value”,
“Tag”:{\elePicker\:true},
“variableValue:null”,
“ExportResult”: true
}。
s14: and replacing the corresponding parameters in the searched corresponding action code template to generate the action code.
In the specific implementation process of the present invention, the replacing the found corresponding parameters in the corresponding motion coding template to generate the motion coding includes: each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, corresponding parameters in the corresponding action code template are replaced to generate an action code; wherein the corresponding parameter is stored in the motion coding template in a form of "{ $ paramName }".
Specifically, the replacing the corresponding parameter in the corresponding motion encoding template includes: and when the corresponding motion coding template carries out corresponding parameter replacement, searching a character string conforming to the format according to the regular expression, and carrying out replacement processing based on the value of a program variable 'paramName'.
Specifically, each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, the corresponding parameter in the corresponding action code template is replaced to generate an action code; wherein, the corresponding parameters are stored in the form of { $ paramName } "in the action coding template; namely, each action identifier corresponds to one action coding template one by one, after the templates are matched, a program replaces corresponding parameters in the templates to generate action codes (action-codes), the parameters are stored in the coding templates in a { $ paramName } "form, when the template parameters are replaced, a character string conforming to the format is searched according to the regular expression, and then the value of a program variable paramName is used for replacement.
S15: and converting the action code flow formed by the action code into an automatic code which can be compiled and executed to form an automatic code execution flow.
In the implementation process of the present invention, the action code process is a process in which a plurality of action codes are put into a queue according to an execution sequence and executed according to a first-in first-out sequence during execution.
Further, the converting the motion coding process formed by the motion coding into an automation coding capable of being compiled and executed to form an automatic coding execution process includes: and dequeuing the action code flow formed by the action codes in a flow code queue, and converting each dequeued action code into an automatic code which can be compiled and executed to form an automatic code execution flow.
Specifically, each action code is completely independent, and data interaction is transmitted through input parameters and output parameters. The action code is similar to a function code in a programming language, each action code has input parameters, the commonly used input parameters comprise element position information, mouse cursor information and the like, the calculation type action code (such as calculation types of summing, multiplying, absolute value solving and the like which need to input one value and then obtain another value) generally has output parameters, and the operation type action code (such as mouse clicking) generally has no output parameters. The flow-code is formed by combining a plurality of action-codes, and the flow-code is formed by putting the action-codes into a queue according to the action execution sequence and executing the action-codes according to the sequence of first-in first-out when the action-codes are executed. After the flow is executed, the program background automatically converts the flow code (flow-code) into an automatic code (auto-code) which can be compiled and executed for execution, and the principle of converting the flow code (flow-code) into the automatic code (auto-code) is as follows: and circularly performing dequeue operation on the inner action-codes (action-codes) of the flow-code queue, and then converting each action-code into an auto-code in a corresponding mode. The user can not only build a simple linear flow, but also build a complex logic flow. Actions in the flow panel can be sorted by dragging with a mouse, and action parameters can be modified. Output parameters generated by executing the action codes are output in a variable panel, and a user can use the variables for input parameters of the following action codes. After the flow is written, the user can debug and run the flow, and the execution information of the flow can be output on the log panel. After the process debugging is completed, the user can save the process to a specified position, the saved process file can be shared by other users, and the user can execute the process by importing the process.
The corresponding mode is converted into the auto-code conversion technical principle: and (3) packaging the automation code at the bottom layer of the system, cutting parameters and mapping the automation code into a simple template code. And then, through the assistance of the UI interface, the user can also carry out automatic operation through the template codes, the template codes are completely transparent to the user in the whole process, the user only needs to carry out operations such as simply moving a mouse, clicking the mouse, filling an input box and the like according to the guidance of the UI interface, the input parameters of the user can be obtained according to the operation systems, and then the subsequent operations such as parameter replacement and the like are carried out, so that the automatic operation can be realized. Template codes of all user operations (such as mouse click operation, text input operation and the like) are generated in the bottom layer code of the software, the corresponding relation between the template codes and the real automation codes is made, the operation parameters of a user on a UI layer are only stored in the template codes, and the template codes are converted into the corresponding automation codes to be executed when the operation is executed. Transcoding is illustrated by a "mouse click" operation. When a user clicks a certain position with a mouse according to the UI prompt of the automatic execution designer, the automatic execution designer automatically records the coordinates of the mouse click position and stores the coordinates in the click template code. When the automatic execution designer executes the clicking operation, the corresponding real execution code is found according to the clicking template code and executed. Many parameters needed in the real code are cut in the template code, and only commonly used parameters are reserved, for example, 5 parameters are needed in the real code, but only two of the commonly used parameters (such as the x coordinate and the y coordinate of the above figure) are reserved in the template code. In the transcoding stage, parameters are replaced and trimming parameters are supplemented, and differences between different software and systems are compatible.
In the specific implementation process of the invention, the code conversion technology is adopted to convert the operation of the user into the executable automatic script language, thereby providing a very simple user interaction interface; meanwhile, the differences among different systems are integrated, so that the automatic process can smoothly run among the different systems; the adaptability is stronger, and 90% of software on the market can be automatically operated; an execution flow is established on the terminal, repetitive work is executed, high compatibility is achieved, repeated operation of a user is not needed, and user experience is improved; meanwhile, the learning cost of the automatic process of the development software is reduced, and a low-code or even code-free automatic process development platform is constructed, so that common users can create automatic robots.
Example two.
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of an automatic code execution flow construction device based on an automatic execution designer according to an embodiment of the present invention.
As shown in fig. 2, an automatic code execution flow construction apparatus based on an automatic execution designer, the apparatus comprising:
the login module 21: the designer is used for automatically executing login of the user based on the login information, and user authority corresponding to the login information is obtained.
In the specific implementation process of the invention, a user needs to log in the automatic execution designer through login information, wherein the login information comprises an account and a password corresponding to the account; after a user logs in the automatic execution designer, distributing corresponding user permission according to an account of the user and obtaining the user permission corresponding to the login information, wherein the user permission comprises common user permission and authorized user permission, and the common user permission can only use limited executable action command identification; the authorized user rights may be identified using all executable action commands.
The display module 22: for displaying an intra-authority executable action command identification to a user on an action panel of the auto-execution designer based on the user authority.
In the specific implementation process of the invention, the automatic execution designer is provided with a plurality of panels, including an action panel, a control panel, a flow panel, an element information panel, a log panel and a variable panel; after a user logs in an automatic execution designer, displaying an executable action command identifier in authority to the user on an action panel of the automatic execution designer according to the user authority of the user; the subsequent operation of the user is convenient.
The add lookup module 23: and the action code template is used for adding the executable action command identifier on the action panel into the flow panel according to the target flow sequence and searching the corresponding action code template.
In the specific implementation process of the present invention, the adding and identifying the executable action command identifier on the action panel to the flow panel according to the target flow sequence, and performing corresponding action coding template search includes: obtaining a target process sequence; adding the executable action command identification on the action panel into the flow panel in a mode of dragging in or double-clicking through a mouse according to the target flow sequence; and searching and processing the corresponding action coding template according to the executable action command identifier added into the flow panel.
Further, the action coding template is stored in a json file in the form of a json character string; and after the executable action command identifier is obtained, the corresponding action coding template is searched by searching the key value corresponding to the opId in the json file.
Specifically, a target flow sequence needs to be obtained, for example, a certain website needs to be opened to perform query of certain information, a browser needs to be opened first, then the website needs to be opened through the browser, and then query of certain information needs to be performed through the website; at this time, the executable action command identifier on the action panel needs to be added to the flow panel in a mouse-in or double-click manner according to the target flow sequence on the action panel; and performing corresponding action code template searching processing according to the executable action command identification added into the flow panel.
Namely, the user can drag operation actions (such as clicking elements, setting input box texts and the like) into the right flow panel by using a mouse from the action panel on the left side of the software to form an automatic flow. After the operation action is dragged into the flow panel, the program searches a corresponding action code template according to an operation action identifier (such as element. click), all the action code templates are stored in a json file in the form of json character strings, and after the operation action identifier is obtained, the corresponding template code can be found by searching a key value corresponding to 'opId' in the json file.
The json file format is as follows:
"Name": element operation ",
“Item”:
{
“opIndex”:0;
"opName": "acquire a focus point",
“opId”:“Elenent.setFocus”,
“Tag”:{\elePicker\:true},
“variableValue:null”,
“ExportResult”:fase
}
{
“opIndex”:0;
"opName": "get input box text",
“opId”:“Elenent.value”,
“Tag”:{\elePicker\:true},
“variableValue:null”,
“ExportResult”: true
}。
the replacement module 24: and the motion code is used for replacing the corresponding parameters in the searched corresponding motion code template to generate the motion code.
In the specific implementation process of the present invention, the replacing the found corresponding parameters in the corresponding motion coding template to generate the motion coding includes: each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, the corresponding parameter in the corresponding action code template is replaced to generate an action code; wherein the corresponding parameter is stored in the motion coding template in a form of "{ $ paramName }".
Specifically, the replacing the corresponding parameter in the corresponding motion encoding template includes: and when the corresponding motion coding template carries out corresponding parameter replacement, searching a character string conforming to the format according to the regular expression, and carrying out replacement processing based on the value of a program variable 'paramName'.
Specifically, each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, the corresponding parameter in the corresponding action code template is replaced to generate an action code; wherein, the corresponding parameters are stored in the form of { $ paramName } "in the action coding template; namely, each action identifier corresponds to one action coding template one by one, after the templates are matched, a program replaces corresponding parameters in the templates to generate action codes (action-codes), the parameters are stored in the coding templates in a { $ paramName } "form, when the template parameters are replaced, a character string conforming to the format is searched according to the regular expression, and then the value of a program variable paramName is used for replacement.
The conversion module 25: and the automatic coding execution flow is formed by converting the action coding flow formed by the action codes into an automatic code which can be compiled and executed.
In the implementation process of the present invention, the action code process is a process in which a plurality of action codes are put into a queue according to an execution sequence and executed according to a first-in first-out sequence during execution.
Further, the converting the motion coding process formed by the motion coding into an automation coding capable of being compiled and executed to form an automatic coding execution process includes: and dequeuing the action code flow formed by the action codes in a flow code queue, and converting each dequeued action code into an automatic code which can be compiled and executed to form an automatic code execution flow.
Specifically, each action code is completely independent, and data interaction is transmitted through input parameters and output parameters. The action code is similar to a function code in a programming language, each action code has input parameters, the commonly used input parameters comprise element position information, mouse cursor information and the like, the calculation type action code (such as calculation types of summing, multiplying, absolute value solving and the like which need to input one value and then obtain another value) generally has output parameters, and the operation type action code (such as mouse clicking) generally has no output parameters. The flow-code is formed by combining a plurality of action-codes, and the flow-code is formed by putting the action-codes into a queue according to the action execution sequence and executing the action-codes according to the sequence of first-in first-out when the action-codes are executed. After the flow is executed, the program background automatically converts the flow code (flow-code) into an automatic code (auto-code) which can be compiled and executed for execution, and the principle of converting the flow code (flow-code) into the automatic code (auto-code) is as follows: and circularly performing dequeue operation on the inner action-codes (action-codes) of the flow-code queue, and then converting each action-code into an auto-code in a corresponding mode. The user can not only build a simple linear flow, but also build a complex logic flow. Actions in the flow panel can be sorted by dragging with a mouse, and action parameters can be modified. Output parameters generated by executing the action codes are output in a variable panel, and a user can use the variables for input parameters of the following action codes. After the flow is written, the user can debug and run the flow, and the execution information of the flow can be output on the log panel. After the process debugging is completed, the user can save the process to a specified position, the saved process file can be shared by other users, and the user can execute the process by importing the process.
The corresponding mode is converted into the auto-code conversion technical principle: and (3) packaging the automation code at the bottom layer of the system, cutting parameters and mapping the automation code into a simple template code. And then, through the assistance of the UI interface, the user can also carry out automatic operation through the template codes, the template codes are completely transparent to the user in the whole process, the user only needs to carry out operations such as simply moving a mouse, clicking the mouse, filling an input box and the like according to the guidance of the UI interface, the input parameters of the user can be obtained according to the operation systems, and then the subsequent operations such as parameter replacement and the like are carried out, so that the automatic operation can be realized. Template codes of all user operations (such as mouse click operation, text input operation and the like) are generated in the bottom layer code of the software, the corresponding relation between the template codes and the real automation codes is made, the operation parameters of a user on a UI layer are only stored in the template codes, and the template codes are converted into the corresponding automation codes to be executed when the operation is executed. Transcoding is illustrated by a "mouse click" operation. When a user clicks a certain position with a mouse according to the UI prompt of the automatic execution designer, the automatic execution designer automatically records the coordinates of the mouse click position and stores the coordinates in the click template code. When the automatic execution designer executes the clicking operation, the corresponding real execution code is found according to the clicking template code and executed. Many parameters needed in the real code are cut in the template code, and only commonly used parameters are reserved, for example, 5 parameters are needed in the real code, but only two of the commonly used parameters (such as the x coordinate and the y coordinate of the above figure) are reserved in the template code. In the transcoding stage, parameters are replaced and trimming parameters are supplemented, and differences between different software and systems are compatible.
In the specific implementation process of the invention, the code conversion technology is adopted to convert the operation of the user into the executable automatic script language, thereby providing a very simple user interaction interface; meanwhile, the differences among different systems are integrated, so that the automatic process can smoothly run among the different systems; the adaptability is stronger, and 90% of software on the market can be automatically operated; an execution flow is established on the terminal, repetitive work is executed, high compatibility is achieved, repeated operation of a user is not needed, and user experience is improved; meanwhile, the learning cost of the automatic process of the development software is reduced, and a low-code or even code-free automatic process development platform is constructed, so that common users can create automatic robots.
The computer-readable storage medium provided by the embodiments of the present invention stores a computer program thereon, and when the computer program is executed by a processor, the computer program implements the automatic encoding execution flow construction method according to any one of the embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the automatic coding execution flow construction method of any one of the embodiments.
In addition, fig. 3 is a schematic structural composition diagram of the intelligent terminal device in the embodiment of the present invention.
The embodiment of the invention also provides the intelligent terminal device, which is shown in figure 3. The intelligent terminal device includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by running or executing software programs and/or modules stored in the memory 303 and calling data stored in the memory.
As an embodiment, the intelligent terminal device includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and wherein the one or more applications 301 are configured to perform the method of automated code execution flow construction of any of the above embodiments.
In the specific implementation process of the invention, the code conversion technology is adopted to convert the operation of the user into the executable automatic script language, thereby providing a very simple user interaction interface; meanwhile, the differences among different systems are integrated, so that the automatic process can smoothly run among the different systems; the adaptability is stronger, and 90% of software on the market can be automatically operated; an execution flow is established on the terminal, repetitive work is executed, high compatibility is achieved, repeated operation of a user is not needed, and user experience is improved; meanwhile, the learning cost of the automatic process of the development software is reduced, and a low-code or even code-free automatic process development platform is constructed, so that common users can create automatic robots.
In addition, the method, the apparatus, the storage medium, and the intelligent terminal for constructing an automatic coding execution flow based on an automatic execution designer according to the embodiments of the present invention are described in detail above, a specific example should be used herein to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. An automatic coding execution flow construction method based on an automatic execution designer is characterized by comprising the following steps:
a user logs in an automatic execution designer based on login information and obtains user permission corresponding to the login information;
displaying an intra-authority executable action command identification to a user on an action panel of the auto-execution designer based on the user authority;
adding an executable action command identifier on the action panel into the flow panel according to the target flow sequence, and searching a corresponding action coding template;
replacing the corresponding parameters in the searched corresponding action code template to generate an action code;
converting the action code flow formed by the action code into an automatic code which can be compiled and executed to form an automatic code execution flow;
the action coding process is a process of putting a plurality of action codes into a queue according to an execution sequence and executing the action codes according to a first-in first-out sequence during execution;
the step of converting the motion coding process formed by the motion codes into an automatic code which can be compiled and executed to form an automatic code execution process includes:
dequeuing the action code flow formed by the action codes in a flow code queue, and converting each dequeued action code into an automatic code which can be compiled and executed to form an automatic code execution flow;
each action code is completely independent, and data interaction is transmitted through input parameters and output parameters; each action code has input parameters, the input parameters have element position information and mouse cursor information, the calculation type action codes have output parameters, and the operation type action codes have no output parameters; the method comprises the following steps that a plurality of action codes are combined to form a flow code, and the flow code is formed according to the principle that the action codes are put into a queue according to an action execution sequence and executed according to a first-in first-out sequence during execution; after the process is operated, the program background can automatically convert the process code into the automatic code which can be compiled and executed for execution, and the principle of converting the process code into the automatic code is as follows: circularly carrying out queue-out operation on the inner action codes of the flow coding queue, and then converting each action code into an automatic code according to a corresponding mode;
the corresponding mode is converted into the code conversion technical principle of automatic coding: packaging and parameter cutting are carried out on the automatic codes at the bottom layer of the system, and then the automatic codes are mapped into simple template codes; then, the user can carry out automatic operation through the template code by the aid of the UI interface, the template code is completely transparent to the user in the whole process, the user only needs to simply move a mouse, click the mouse and fill in an input box according to the guidance of the UI interface, the operating system obtains input parameters of the user and then carries out subsequent parameter replacement operation;
the replacing the found corresponding parameters in the corresponding motion code template to generate the motion code comprises:
each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, the corresponding parameter in the corresponding action code template is replaced to generate an action code;
wherein, the corresponding parameters are stored in the form of { $ paramName } "in the action coding template;
the replacing the corresponding parameter in the corresponding motion encoding template comprises:
and when the corresponding motion coding template carries out corresponding parameter replacement, searching a character string conforming to the format according to the regular expression, and carrying out replacement processing based on the value of a program variable 'paramName'.
2. The method of claim 1, wherein the adding the executable action command identifier on the action panel to the flow panel according to the target flow sequence and performing the corresponding action code template search comprises:
obtaining a target process sequence;
adding the executable action command identification on the action panel into the flow panel in a mode of dragging in or double-clicking through a mouse according to the target flow sequence;
and searching and processing the corresponding action coding template according to the executable action command identifier added into the flow panel.
3. The automatic coding execution flow construction method according to claim 1 or 2, wherein the action coding template is stored in a json file in the form of a json character string; and after the executable action command identification is obtained, the corresponding action coding template is searched by searching a key value corresponding to the 'opId' in the json file.
4. An automatic code execution flow construction device based on an automatic execution designer, the device comprising:
a login module: the designer is used for automatically executing login by a user based on login information and acquiring user permission corresponding to the login information;
a display module: displaying an intra-authority executable action command identification to a user on an action panel of the auto-execution designer based on the user authority;
adding a searching module: the action panel is used for adding an executable action command identifier on the action panel into the flow panel according to a target flow sequence and searching a corresponding action coding template;
and a replacement module: the motion code generation module is used for replacing the corresponding parameters in the searched corresponding motion code template to generate motion codes;
a conversion module: the automatic coding execution flow is formed by converting the action coding flow formed by the action codes into an automatic code which can be compiled and executed;
the action coding process is a process of putting a plurality of action codes into a queue according to an execution sequence and executing the action codes according to a first-in first-out sequence during execution;
the step of converting the motion coding process formed by the motion codes into an automatic code which can be compiled and executed to form an automatic code execution process includes:
dequeuing the action code flow formed by the action codes in a flow code queue, and converting each dequeued action code into an automatic code which can be compiled and executed to form an automatic code execution flow;
each action code is completely independent, and data interaction is transmitted through input parameters and output parameters; each action code has input parameters, the input parameters have element position information and mouse cursor information, the calculation type action code has output parameters, and the operation type action code has no output parameters; the method comprises the following steps that a plurality of action codes are combined to form a flow code, and the flow code is formed according to the principle that the action codes are put into a queue according to an action execution sequence and executed according to a first-in first-out sequence during execution; after the process is operated, the program background can automatically convert the process code into the automatic code which can be compiled and executed for execution, and the principle of converting the process code into the automatic code is as follows: circularly carrying out queue-out operation on the action codes in the process coding queue, and then converting each action code into an automatic code according to a corresponding mode;
the corresponding mode is converted into the code conversion technical principle of automatic coding: packaging and parameter cutting are carried out on the automatic codes at the bottom layer of the system, and then the automatic codes are mapped into simple template codes; then, the user can carry out automatic operation through the template code by the aid of the UI interface, the template code is completely transparent to the user in the whole process, the user only needs to simply move a mouse, click the mouse and fill in an input box according to the guidance of the UI interface, the operating system obtains input parameters of the user and then carries out subsequent parameter replacement operation;
the replacing the found corresponding parameters in the corresponding motion code template to generate the motion code comprises:
each executable action command identifier corresponds to one action code template one by one, and after the corresponding action code template of the executable action command identifier is found, the corresponding parameter in the corresponding action code template is replaced to generate an action code;
wherein, the corresponding parameters are stored in the form of { $ paramName } "in the action coding template;
the replacing the corresponding parameter in the corresponding motion encoding template comprises:
and when the corresponding motion coding template is subjected to corresponding parameter replacement, searching a character string conforming to the format according to the regular expression, and performing replacement processing based on the value of a program variable 'paramName'.
5. A computer-readable storage medium on which a computer program is stored, the program implementing the automatic code execution flow construction method according to any one of claims 1 to 3 when executed by a processor.
6. An intelligent terminal device, characterized in that, it includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: executing the automated code execution flow construction method according to any one of claims 1 to 3.
CN202210095509.3A 2022-01-27 2022-01-27 Automatic coding execution flow construction method and device, storage medium and intelligent terminal Active CN114115835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210095509.3A CN114115835B (en) 2022-01-27 2022-01-27 Automatic coding execution flow construction method and device, storage medium and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210095509.3A CN114115835B (en) 2022-01-27 2022-01-27 Automatic coding execution flow construction method and device, storage medium and intelligent terminal

Publications (2)

Publication Number Publication Date
CN114115835A CN114115835A (en) 2022-03-01
CN114115835B true CN114115835B (en) 2022-05-17

Family

ID=80361777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210095509.3A Active CN114115835B (en) 2022-01-27 2022-01-27 Automatic coding execution flow construction method and device, storage medium and intelligent terminal

Country Status (1)

Country Link
CN (1) CN114115835B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016146022A (en) * 2015-02-06 2016-08-12 富士通株式会社 Model base development support device, model base development support method, and model base development support program
CN110244944A (en) * 2019-08-12 2019-09-17 中国人民解放军国防科技大学 Network security scanning function implementation method based on graphical programming
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN112001175A (en) * 2020-08-24 2020-11-27 平安科技(深圳)有限公司 Process automation method, device, electronic equipment and storage medium
CN113703749A (en) * 2021-09-06 2021-11-26 河北雄安新区公安局 Information system based on visual programming technology and construction method thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10984016B2 (en) * 2016-12-02 2021-04-20 Persephone GmbH Apparatuses, systems and methods for processing, acknowledging, transferring and custody of assets or rights on a distributed ledger
CN107577458A (en) * 2017-08-18 2018-01-12 深圳怡化电脑股份有限公司 A kind of finance self-help terminal traffic flow development approach and device
CN109766088B (en) * 2019-01-17 2022-04-12 宜创(北京)科技有限公司 Program generation method, program generation device, data processing method and server
CN110221841B (en) * 2019-04-26 2022-06-17 福州慧校通教育信息技术有限公司 Web-based interactive application deployment and delivery method and system
CN111124388A (en) * 2019-11-28 2020-05-08 深圳市世宗自动化设备有限公司 Method and system for editing automation program, computer device and storage medium thereof
CN111427561A (en) * 2020-03-26 2020-07-17 中国建设银行股份有限公司 Service code generation method and device, computer equipment and storage medium
CN112199086A (en) * 2020-09-18 2021-01-08 北京达佳互联信息技术有限公司 Automatic programming control system, method, device, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016146022A (en) * 2015-02-06 2016-08-12 富士通株式会社 Model base development support device, model base development support method, and model base development support program
CN110244944A (en) * 2019-08-12 2019-09-17 中国人民解放军国防科技大学 Network security scanning function implementation method based on graphical programming
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN112001175A (en) * 2020-08-24 2020-11-27 平安科技(深圳)有限公司 Process automation method, device, electronic equipment and storage medium
CN113703749A (en) * 2021-09-06 2021-11-26 河北雄安新区公安局 Information system based on visual programming technology and construction method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Template-based AADL automatic code generation;Kai Hu等;《Frontiers of Computer Science》;20190830;698-714 *
一种通用管理系统代码自动生成器的设计与实现;熊仕勇等;《四川兵工学报》;20140625;121-123 *

Also Published As

Publication number Publication date
CN114115835A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
JP7017613B2 (en) Naming Robotic Process Automation activities based on auto-discovered target labels
US10339481B2 (en) Systems and methods for generating user interface-based service workflows utilizing voice data
US10255265B2 (en) Process flow diagramming based on natural language processing
US10515001B2 (en) System and method for automating testing of software applications
CN111126781A (en) RPA service flow establishing method and system
Hamon et al. Formal description of multi-touch interactions
KR101966518B1 (en) Method to control version of excel-based architecture design file
US11886895B2 (en) Enhanced target selection for robotic process automation
JP2022551933A (en) System and method of activity target selection for robotic process automation
WO2017065991A1 (en) Generation of application behaviors
US11941419B2 (en) Systems and methods for robotic process automation of mobile platforms
CN109032936B (en) Desktop automation test development method and system
CN104484163A (en) Heterogeneous model transformation method based on unified modeling environment
US20230236910A1 (en) Systems and Methods for Executing Robotic Process Automation (RPA) Within a Web Browser
WO2022271345A1 (en) Triggering dynamic robotic process automation
CN114115835B (en) Automatic coding execution flow construction method and device, storage medium and intelligent terminal
CN114063868A (en) AI (Artificial intelligence) dragging modeling system and method, computer equipment and application
CN112230904A (en) Code generation method and device based on interface document, storage medium and server
Baka Getting Started with Qt 5: Introduction to programming Qt 5 for cross-platform application development
CN117591438B (en) Automatic testing method and related device for UI component atomization
Lepreux et al. Composition of user interfaces
Jain et al. SmartFlow: Robotic Process Automation using LLMs
CN117437413A (en) Element pickup method, element pickup device, integrated machine and storage medium
CN115951888A (en) Method for positioning program source code position and computing equipment
CN115587036A (en) Test system and test case generation method

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Automatic encoding execution process construction method, device, storage medium, and intelligent terminal

Effective date of registration: 20230731

Granted publication date: 20220517

Pledgee: Bank of China Limited by Share Ltd. Guangzhou Panyu branch

Pledgor: Guangzhou Gengyi Information Technology Co.,Ltd.

Registration number: Y2023980050366