CN115729530A - Cross-system logic statement generation method, device, storage medium and equipment - Google Patents

Cross-system logic statement generation method, device, storage medium and equipment Download PDF

Info

Publication number
CN115729530A
CN115729530A CN202211474138.6A CN202211474138A CN115729530A CN 115729530 A CN115729530 A CN 115729530A CN 202211474138 A CN202211474138 A CN 202211474138A CN 115729530 A CN115729530 A CN 115729530A
Authority
CN
China
Prior art keywords
statement
logic
same
logic statement
cross
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.)
Granted
Application number
CN202211474138.6A
Other languages
Chinese (zh)
Other versions
CN115729530B (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.)
Yida Technology Shanghai Co ltd
Original Assignee
Yida Technology Shanghai 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 Yida Technology Shanghai Co ltd filed Critical Yida Technology Shanghai Co ltd
Priority to CN202211474138.6A priority Critical patent/CN115729530B/en
Publication of CN115729530A publication Critical patent/CN115729530A/en
Application granted granted Critical
Publication of CN115729530B publication Critical patent/CN115729530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a method, a device, a storage medium and equipment for generating cross-system logic statements, which comprise the following steps: monitoring a first operation of a first system, and generating a first logic statement according to the first operation; monitoring a second operation of a second system, and generating a second logic statement according to the second operation; fusing the same elements in the first logic statement and the second logic statement to generate a third logic statement; wherein the first operation and the second operation are the same operation on the same control of the same page, and the third logical statement can be recognized by the first system and the second system at the same time. The method constructs a plurality of logic sentences which can be recognized by the system, reduces the time cost of cross-system recording or playback in the automatic processing process and improves the efficiency.

Description

Cross-system logic statement generation method, device, storage medium and equipment
Technical Field
The invention relates to the technical field of data processing, in particular to a method, a device, a storage medium and equipment for generating cross-system logic statements.
Background
In the prior art, in the Process of using a mobile terminal RPA (robot Process Automation) product, the problem that logic sentences among systems with different logics are not universal exists. In the process of recording or replaying logic sentences by a mobile terminal RPA product, a corresponding mobile device management terminal is required to be selected according to a mobile device system, along with the gradual increase of systems of the mobile device, the logic sentences or data formats of all the systems are different, all the systems are not communicated, a plurality of sets of mobile device management terminals with different logics are required to be used for respectively executing the recording or replaying process, a user cannot control a plurality of mobile devices simultaneously, the time cost is increased in the automatic processing process, and the efficiency is low.
Disclosure of Invention
Based on the method, the device, the storage medium and the equipment for generating the cross-system logic statements, the logic statements which can be identified by a plurality of systems are constructed, the time cost of cross-system recording or playback in the automatic processing process is reduced, and the efficiency is improved.
In a first aspect, the present invention provides a method for cross-system logical statement generation, including:
monitoring a first operation of a first system, and generating a first logic statement according to the first operation;
monitoring a second operation of a second system, and generating a second logic statement according to the second operation;
fusing the same elements in the first logic statement and the second logic statement to generate a third logic statement;
wherein the first operation and the second operation are the same operation on the same control of the same page, and the third logic statement can be recognized by the first system and the second system at the same time.
In a second aspect, the present invention provides an apparatus for cross-system logical statement generation, including:
the first operation module is used for monitoring first operation of a first system and generating a first logic statement according to the first operation;
the second operation module is used for monitoring a second operation of a second system and generating a second logic statement according to the second operation;
the combined statement module is used for carrying out fusion processing on the same elements in the first logic statement and the second logic statement to generate a third logic statement;
wherein the first operation and the second operation are the same operation on the same control of the same page, and the third logical statement can be recognized by the first system and the second system at the same time.
In a third aspect, the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of cross-system logical statement generation of any one of the first aspect.
In a fourth aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the method for generating cross-system logic statements according to any one of the first aspect.
The beneficial effects of adopting the above technical scheme are: the method and the device have the advantages that the same elements of the logic sentences in different systems are extracted, the logic sentences capable of being identified across the systems are generated, the setting of management ends of different logic mobile devices is reduced, a user can control multiple mobile devices simultaneously, time cost is reduced, and efficiency is improved.
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.
FIG. 1 is a schematic diagram of a prior art cross-system recording or playback process in one embodiment of the present application;
FIG. 2 is a diagram illustrating a method for cross-system logical statement generation according to an embodiment of the present application;
fig. 3 is a first logic statement corresponding to a first operation in an Android system in an embodiment of the present application;
FIG. 4 is a second logic statement corresponding to a second operation in the iOS system according to an embodiment of the present application;
FIG. 5 is a third logical statement generated in one embodiment of the present application;
FIG. 6 is a diagram illustrating an apparatus for cross-system logic statement generation according to an embodiment of the present application.
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. In order to explain the present invention in more detail, the following describes a method, an apparatus, a storage medium, and a device for cross-system logic statement generation provided by the present invention in detail with reference to the accompanying drawings.
In the prior art, in the process of using a mobile terminal RPA product, there is a problem that logic statements between systems with different logics are not universal, and in the process of recording or playing back the logic statements by the mobile terminal RPA product, a corresponding mobile device management terminal needs to be selected according to a mobile device system, and a plurality of sets of mobile device managers with different logics need to be used for respectively executing the recording or playing back process. The recording or playback process of the mobile terminal RPA product in the prior art will be described with reference to fig. 1.
When the connected mobile equipment has an Android system and an iOS system, the mobile terminal RPA product is respectively connected with an Android mobile equipment manager and an iOS mobile equipment manager, wherein the Android mobile equipment manager can manage a plurality of pieces of Android system mobile equipment, and the iOS mobile equipment manager can manage a plurality of pieces of iOS system mobile equipment. In the recording process, the operation of the Android system can be recorded firstly, the recorded flow script file is stored, then the operation of the iOS system is recorded, and the recorded flow script file is stored; the recording files of the Android system and the iOS system need to be identified and distinguished correspondingly. And when the mobile terminal RPA product needs to play back the recorded file, selecting different recorded files according to a playback system and generating a corresponding playback result.
The embodiment of the application provides a specific application scenario of the method for generating the cross-system logic statement. The application scenario includes the terminal device provided by the embodiment, the terminal device includes, but is not limited to, a smart phone and a computer device, wherein the computer device may be at least one of a desktop computer, a portable computer, a laptop computer, a tablet computer, and the like. The user operates the terminal device, and the terminal device executes the method for generating the cross-system logic statement of the present invention, referring to the embodiment of the method for generating the cross-system logic statement in the specific process with reference to fig. 2.
Step S101: a first operation of a first system is monitored, and a first logic statement is generated according to the first operation.
Specifically, the first operation is an action performed on a control of a first system page, and the first operation includes: and executing at least one of a mouse-down operation, a mouse-up operation, a mouse-down and moving operation and a keyboard input operation on the control of the first system page.
And generating a corresponding first logic statement according to a specific first operation, wherein the first logic statement comprises a control position and an attribute corresponding to the first operation, a specific action and an execution sequence of the first operation. The generating of the first logic statement according to the first operation is actually a recording process of the first operation in the first system, and the first logic statement is a correspondingly generated flow recording file.
Step S102: a second operation of a second system is monitored, and a second logic statement is generated according to the second operation.
Specifically, the second system and the first system adopt different logics, the logic statement of the first system and the logic statement of the second system are not common, and the common first system and the common second system can be any two of an Android system, an iOS system, a hong meng system, a Windows phone system, a saiban system and a blackberry system.
The first operation and the second operation are the same operation on the same control of the same page, and the second operation is an action performed on the control of the second system page, wherein the second system page is the same as the first system page in appearance, and the control of the second system page is also the same as the control of the first system page in appearance, that is, the second operation and the first operation are actually the same action performed on the same control, and only the system performing the operation is different, so that different logic statements are generated.
And generating a corresponding second logic statement according to the specific second operation, wherein the second logic statement comprises a control position and an attribute corresponding to the second operation, and a specific action and an execution sequence of the second operation. The generating of the second logic statement according to the second operation is actually a recording process of the second operation in the second system, and the second logic statement is a correspondingly generated flow recording file.
Step S103: and carrying out fusion processing on the same elements in the first logic statement and the second logic statement to generate a third logic statement. Wherein the third logical statement is recognizable by both the first system and the second system.
Specifically, the same element includes an element having the same attribute name or the same attribute value.
Because the third logic statement can be recognized by the first system and the second system at the same time, the same elements in the first logic statement and the second logic statement are subjected to fusion processing, specifically:
step S201: and extracting the elements with the same attribute name and the corresponding attribute values in the first logic statement and the second logic statement.
Step S202: and combining the attribute values corresponding to the same attribute name in the first logic statement and the second logic statement.
Further, description attribute information specific or unique to different systems also needs to be retained to assist the logic verification process of the third logic statement in different systems, and therefore, the generating the third logic statement further includes: elements in the first logical statement and the second logical statement that are not the same are retained.
Further, for the generated third logic statement, the method for generating across-system logic statements further includes:
step S104: and playing back the third logic statement in the first system or the second system to generate a third operation.
And the third operation, the first operation and the second operation are the same operation on the same control of the same page. The first, second, or third operations comprise: and executing at least one of mouse pressing operation, mouse lifting operation, mouse pressing and moving operation and keyboard input operation on the control of the page.
In order to better explain the method for generating the cross-system logic statement in the embodiment of the present application, the logic statement in fig. 3-5 is combined, and a control for clicking "food takeout" in certain takeout software is taken as an example for explanation:
in the embodiment of the application, the first system is an Android system, the second system is an iOS system, and the first operation and the second operation are controls for clicking 'food takeout' in certain takeout software. A first logic statement generated by a first operation in an Android system is shown in fig. 3, a second logic statement generated by a second operation in an iOS system is shown in fig. 4, wherein parts of the same element include a type attribute, a name attribute, a text attribute and an index attribute, and the parts of the same element are subjected to fusion processing, specifically, attribute values corresponding to the same attribute name are subjected to merging processing, so as to obtain a third logic statement shown in fig. 5; while parts of the different elements, such as the id attribute and the src attribute, remain in the third logical statement as they are, so as not to affect the third logical statement when the different systems are running, which parts are not shown in fig. 5.
The third logic statement generated by the method can be recognized by an Android system and an iOS system at the same time, the logic statement can be recognized in a cross-system mode, a user does not need to provide cross-system operation equipment, recording files do not need to be further identified, and the recording files of different systems are selected according to different playback execution systems. The logic sentences generated by the method can record the cross-system mobile terminal automation flow in the same environment, and the recorded files can smoothly run on different systems of equipment, so that the cost of the mobile terminal automation flow operation is reduced, and the efficiency is improved.
It should be understood that although the various steps in the flowchart of fig. 2 are shown in order, as indicated by the nominal arrows, the steps are not necessarily performed in order, as indicated by the arrows. The steps are not limited to being performed in the exact order described, and may be performed in other orders, unless otherwise indicated herein. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or sub-stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
The above-mentioned embodiments of the present disclosure describe in detail a device for generating cross-system logic statements, and the above-mentioned method disclosed by the present disclosure may be implemented by devices in various forms, so the present disclosure also discloses a device for generating cross-system logic statements corresponding to the above-mentioned method, and a detailed description is given below with reference to fig. 6.
The first operation module 301 is configured to monitor a first operation of a first system, and generate a first logic statement according to the first operation.
A second operation module 302, configured to monitor a second operation of the second system, and generate a second logic statement according to the second operation.
And a combined statement module 303, configured to perform fusion processing on the same elements in the first logic statement and the second logic statement, and generate a third logic statement.
Wherein the first operation and the second operation are the same operation on the same control of the same page, and the third logical statement can be recognized by the first system and the second system at the same time.
The specific limitations of the apparatus for generating the cross-system logic statement may refer to the limitations of the method above, and are not described herein again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or be independent of a processor of the terminal device, and can also be stored in a memory of the terminal device in a software form, so that the processor calls and executes operations corresponding to the modules.
In one embodiment, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for cross-system logical statement generation of the first aspect described above.
The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM (erasable programmable read only memory), a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has a storage space for program code for performing any of the method steps of the above-described method. These program codes can be read from or written to one or more computer program products, which can be compressed in a suitable form.
In one embodiment, the invention provides a computer device comprising a memory storing a computer program and a processor executing the computer program to perform the above method of cross-system logic statement generation.
The computer device includes a memory, a processor, and one or more computer programs, wherein the one or more computer programs may be stored in the memory and configured to be executed by the one or more processors, the one or more application programs configured to perform the above-described method of cross-system logic statement generation.
A processor may include one or more processing cores. The processor, using the various interfaces and lines to connect the various parts throughout the computer device, performs the various functions of the computer device and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in memory, and calling data stored in memory. Alternatively, the processor may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is to be understood that the modem may be implemented by a communication chip without being integrated into the processor.
The Memory may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the terminal device in use, and the like.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of cross-system logical statement generation, comprising:
monitoring a first operation of a first system, and generating a first logic statement according to the first operation;
monitoring a second operation of a second system, and generating a second logic statement according to the second operation;
fusing the same elements in the first logic statement and the second logic statement to generate a third logic statement;
wherein the first operation and the second operation are the same operation on the same control of the same page, and the third logical statement can be recognized by the first system and the second system at the same time.
2. The method of cross-system logic statement generation of claim 1, further comprising:
playing back the third logic statement in the first system or the second system to generate a third operation;
the third operation is the same operation on the same control of the same page as the first operation and the second operation.
3. The method of cross-system logical statement generation according to claim 1, characterized in that the identical elements include elements whose attribute names are identical or whose attribute values are identical.
4. The method of cross-system logic statement generation of claim 2, wherein the first operation, second operation, or third operation comprises:
and executing at least one of mouse pressing operation, mouse lifting operation, mouse pressing and moving operation and keyboard input operation on the control of the page.
5. The method for generating inter-system logic statements according to claim 3, wherein the fusing the same elements in the first logic statement and the second logic statement comprises:
extracting elements with the same attribute name and corresponding attribute values in the first logic statement and the second logic statement;
and combining the attribute values corresponding to the same attribute name in the first logic statement and the second logic statement.
6. The method of cross-system logic statement generation of claim 1, wherein the generating a third logic statement comprises:
elements in the first logical statement and the second logical statement that are not identical are retained.
7. An apparatus for cross-system logical statement generation, comprising:
the first operation module is used for monitoring first operation of a first system and generating a first logic statement according to the first operation;
the second operation module is used for monitoring second operation of a second system and generating a second logic statement according to the second operation;
the combined statement module is used for carrying out fusion processing on the same elements in the first logic statement and the second logic statement to generate a third logic statement;
wherein the first operation and the second operation are the same operation on the same control of the same page, and the third logical statement can be recognized by the first system and the second system at the same time.
8. The apparatus of cross-system logical statement generation of claim 7, wherein the same element includes an element whose attribute name is the same or whose attribute value is the same.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of cross-system logical statement generation according to any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, performs the method of cross-system logical statement generation of any of claims 1-6.
CN202211474138.6A 2022-11-22 2022-11-22 Cross-system logic statement generation method, device, storage medium and equipment Active CN115729530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211474138.6A CN115729530B (en) 2022-11-22 2022-11-22 Cross-system logic statement generation method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211474138.6A CN115729530B (en) 2022-11-22 2022-11-22 Cross-system logic statement generation method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN115729530A true CN115729530A (en) 2023-03-03
CN115729530B CN115729530B (en) 2023-07-04

Family

ID=85298139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211474138.6A Active CN115729530B (en) 2022-11-22 2022-11-22 Cross-system logic statement generation method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115729530B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190196810A1 (en) * 2016-12-22 2019-06-27 The United States Of America As Represented By The Secretary Of The Navy Systems and methods for automated renumbering, reformatting, and re-referencing of branching statements or go-to instruction line referencing within modified code using a dual-pass approach that includes operations using predicted new line numbers, error detection/correction, and alignment correction processing
CN110955434A (en) * 2019-10-31 2020-04-03 苏宁云计算有限公司 Software development kit processing method and device, computer equipment and storage medium
CN111104315A (en) * 2019-11-29 2020-05-05 京东数字科技控股有限公司 Test script generation method and device and computer readable storage medium
CN111381817A (en) * 2020-03-25 2020-07-07 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for realizing cross-platform multi-language development
CN113010607A (en) * 2021-04-06 2021-06-22 工银科技有限公司 Method, device, computer system and storage medium for data synchronization between systems
CN113703739A (en) * 2021-09-03 2021-11-26 上海森亿医疗科技有限公司 Cross-language fusion computing method, system and terminal based on omiga engine
CN114239601A (en) * 2021-11-16 2022-03-25 海信视像科技股份有限公司 Statement processing method and device and electronic equipment
CN114547024A (en) * 2022-02-08 2022-05-27 支付宝(杭州)信息技术有限公司 SQL statement risk detection method, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190196810A1 (en) * 2016-12-22 2019-06-27 The United States Of America As Represented By The Secretary Of The Navy Systems and methods for automated renumbering, reformatting, and re-referencing of branching statements or go-to instruction line referencing within modified code using a dual-pass approach that includes operations using predicted new line numbers, error detection/correction, and alignment correction processing
CN110955434A (en) * 2019-10-31 2020-04-03 苏宁云计算有限公司 Software development kit processing method and device, computer equipment and storage medium
CN111104315A (en) * 2019-11-29 2020-05-05 京东数字科技控股有限公司 Test script generation method and device and computer readable storage medium
CN111381817A (en) * 2020-03-25 2020-07-07 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for realizing cross-platform multi-language development
CN113010607A (en) * 2021-04-06 2021-06-22 工银科技有限公司 Method, device, computer system and storage medium for data synchronization between systems
CN113703739A (en) * 2021-09-03 2021-11-26 上海森亿医疗科技有限公司 Cross-language fusion computing method, system and terminal based on omiga engine
CN114239601A (en) * 2021-11-16 2022-03-25 海信视像科技股份有限公司 Statement processing method and device and electronic equipment
CN114547024A (en) * 2022-02-08 2022-05-27 支付宝(杭州)信息技术有限公司 SQL statement risk detection method, device, equipment and medium

Also Published As

Publication number Publication date
CN115729530B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
JP6678780B2 (en) Process visualization platform
CN102197362B (en) Surfacing and management of window-specific controls
CN105051722B (en) The method and apparatus of the entity of atom link is kept using the mechanism that is automatically performed
CN102223363B (en) System and method for generating persistent sessions in a graphical interface for managing communication sessions
CN106126397A (en) The processing method of program crashing message and system
CN110825807B (en) Data interactive conversion method, device, equipment and medium based on artificial intelligence
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN105354498A (en) Operation method of registry, related device and equipment
CN104699408A (en) Operation method and device of touch screen and touch device
CN105335435A (en) File management method and information processing equipment
CN109408284A (en) Online document restoration methods and its device, equipment, storage medium
US20110167047A1 (en) Editing apparatus, method, and storage medium
CN112700515A (en) Animation playing method and device, storage medium and electronic equipment
CN105739771A (en) Display interface management method and device as well as terminal
CN107220044B (en) Method and device for driving business object based on meta-model
JP2006277771A (en) Terminal device and operation history recording method for computer network
CN112434494A (en) Text editing method, device, terminal and storage medium
CN112015817A (en) Processing method, device and equipment of block chain data
CN110045952B (en) Code calling method and device
CN115729530A (en) Cross-system logic statement generation method, device, storage medium and equipment
JP2017102872A (en) Development device, development system, and program
CN112286514B (en) Method and device for configuring task flow and electronic equipment
US8495033B2 (en) Data processing
CN110046237B (en) Conversational interactive processing method and device
CN107272989A (en) Using startup method, device and terminal 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