CN115729530B - 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
CN115729530B
CN115729530B CN202211474138.6A CN202211474138A CN115729530B CN 115729530 B CN115729530 B CN 115729530B CN 202211474138 A CN202211474138 A CN 202211474138A CN 115729530 B CN115729530 B CN 115729530B
Authority
CN
China
Prior art keywords
logic statement
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.)
Active
Application number
CN202211474138.6A
Other languages
Chinese (zh)
Other versions
CN115729530A (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 sentences, comprising 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; performing 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 logic statement is recognizable by the first system and the second system at the same time. By the method, the logic sentences which can be identified by a plurality of systems are constructed, so that the time cost of cross-system recording or playback in the automatic processing process is reduced, and the efficiency is improved.

Description

Cross-system logic statement generation method, device, storage medium and equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a storage medium, and a device for generating a cross-system logic statement.
Background
In the prior art, in the process of using a mobile terminal RPA (Robotic Process Automation, robot flow automation) product, there is a problem that logic sentences among systems of different logics are not universal. In the process of recording or playing back the logic sentences by the RPA product of the mobile terminal, the corresponding mobile equipment management terminal is required to be selected according to the mobile equipment systems, as the systems of the mobile equipment are gradually increased, the logic sentences or data formats of all the systems are different and are not communicated, the recording or playing back process is required to be respectively executed by using a plurality of sets of mobile equipment management terminals with different logics, a user cannot control a plurality of mobile equipment at the same time, the time cost is increased in the process of automatic processing, and the efficiency is lower.
Disclosure of Invention
Based on the method, the device, the storage medium and the equipment for generating the cross-system logic statement, the method, the device, the storage medium and the equipment for generating the cross-system logic statement are used for constructing the logic statement which can be identified by a plurality of systems, so that 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 generating a cross-system logic statement, 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;
performing 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 logic statement is recognizable 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 logic statement generation, including:
the first operation module is used for monitoring a 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 merging 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 logic statement is recognizable by the first system and the second system at the same time.
In a third aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the first aspects of cross-system logic statement generation.
In a fourth aspect, the invention provides a computer device comprising a memory storing a computer program and a processor which, when executing the computer program, performs the method of any one of the cross-system logic statement generation of the first aspect.
The beneficial effects of adopting above-mentioned technical scheme are: according to the method and the device, the same elements of the logic sentences in different systems are extracted, so that the logic sentences which can be recognized across the systems are generated, the settings of management ends of different logic mobile devices are reduced, a user can control a plurality of mobile devices at the same time, the time cost is reduced, and the 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 schematic diagram of a method of cross-system logic statement generation in one embodiment of the present application;
fig. 3 is a first logic statement corresponding to a first operation in the Android system according to an embodiment of the present application;
FIG. 4 is a second logical statement corresponding to a second operation in the iOS system in one embodiment of the application;
FIG. 5 is a third logical statement generated in one embodiment of the present application;
FIG. 6 is a schematic diagram of an apparatus for cross-system logic statement generation in one embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention. For a more detailed description of the present invention, the method, apparatus, storage medium and device for generating cross-system logic statements provided in the present invention are specifically described below with reference to the accompanying drawings.
In the prior art, in the process of using the mobile terminal RPA product, the problem that logic sentences among systems with different logics are not universal exists, and in the process of recording or playing back the logic sentences by the mobile terminal RPA product, a corresponding mobile device management terminal needs to be selected according to the 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 RPA product at the mobile end in the prior art will be described with reference to fig. 1.
When the connected mobile device has an Android system and an iOS system at the same time, the mobile terminal RPA product is respectively connected with an Android mobile device manager and an iOS mobile device manager, wherein the Android mobile device manager can manage a plurality of Android system mobile devices, and the iOS mobile device manager can manage a plurality of iOS system mobile devices. In the recording process, firstly, the operation of the Android system can be recorded, and after the recorded flow script file is saved, the operation of the iOS system is recorded, and the recorded flow script file is saved; corresponding identification distinction needs to be made on recorded files of the Android system and the iOS system. When the RPA product at the mobile terminal needs to play back the recorded files, different recorded files are selected according to a play back system, and a corresponding play back result is generated.
The embodiment of the application provides a specific application scene of a method for generating cross-system logic sentences. The application scene comprises the terminal equipment provided by the embodiment, wherein the terminal equipment comprises, but is not limited to, a smart phone and computer equipment, and the computer equipment can 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, and referring to fig. 2, for a specific process, please refer to an embodiment of the method for generating the cross-system logic statement.
Step S101: and monitoring a first operation of a first system, and generating a first logic statement 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: at least one of a mouse-down operation, a mouse-up operation, a mouse-down and move operation, and a keyboard input operation is performed 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 of the first operation and an execution sequence. The first logic statement generation is actually a recording process of the first operation in the first system according to the first operation, and the first logic statement is a corresponding generated flow recording file.
Step S102: and monitoring a second operation of a second system, and generating a second logic statement 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 universal, and the common first system and the second system can be any two of an Android system, an iOS system, a hong Mongolian system, a Windows phone system, a Seban system and a blackberry system.
The first operation and the second operation are the same operation on the same control of the same page, the second operation is an action performed on the control of the second system page, wherein the second system page is identical to the first system page in terms of performance, and the control of the second system page is identical to the control of the first system page in terms of performance, that is, the second operation and the first operation actually perform the same action on the same control, but the system performing the operation is different, so that different logic sentences 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 specific actions and execution sequences of the second operation. The generation 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 corresponding 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 identifiable by both the first system and the second system.
Specifically, the same elements include elements having the same attribute names or the same attribute values.
Because the third logic statement can be identified 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 names in the first logic statement and the second logic statement and the corresponding attribute values.
Step S202: and merging the attribute values corresponding to the same attribute names in the first logic statement and the second logic statement.
Further, description attribute information having specificity or uniqueness for different systems also needs to be maintained for assisting the logic verification process of the third logic statement in different systems, so the generating the third logic statement further includes: and reserving different elements in the first logic statement and the second logic statement.
Further, for the generated third logic statement, the method for generating the cross-system logic statement further includes:
step S104: and playing back the third logic statement in the first system or the second system to generate a third operation.
The third operation and the first operation and the second operation are the same operation of the same control on the same page. The first, second, or third operations include: at least one of a mouse-down operation, a mouse-up operation, a mouse-down and move operation, and a keyboard input operation is performed on the controls of the page.
In order to better illustrate the method for generating the cross-system logic statement in the embodiment of the present application, in combination with the logic statement in fig. 3-5, a control for clicking "good takeaway" in certain takeaway software is illustrated as an example:
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 clicking a control of 'good takeaway' in certain takeaway software. The first logic statement generated by the first operation in the Android system is shown in fig. 3, the second logic statement generated by the second operation in the iOS system is shown in fig. 4, wherein the parts of the same elements comprise type attributes, name attributes, text attributes and index attributes, fusion processing is carried out on the parts of the same elements, specifically, the attribute values corresponding to the same attribute names are combined, and a third logic statement shown in fig. 5 is obtained; while portions of the non-identical elements, such as the id attribute and the src attribute, remain in the third logical statement as they are, so as to avoid the third logical statement from being affected when the different systems are running, which portions are not shown in fig. 5.
The third logic statement generated by the method can be identified by the Android system and the iOS system at the same time, the logic statement can be identified across systems, a user does not need to provide operation equipment across systems, the recorded files do not need to be further identified for distinguishing, and the recorded files of different systems are selected according to different playback execution systems. The logic statement generated by the method can record the cross-system mobile terminal automatic process in the same environment, and the recorded file can smoothly run on equipment of different systems, so that the running cost of the mobile terminal automatic process is reduced, and the efficiency is improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrow, the steps are not necessarily performed in sequence as indicated by the arrow. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include a plurality of sub-steps or sub-stages, which are not necessarily performed at the same time, but may be performed at different times, and the order in which the sub-steps or stages are performed is not necessarily sequential, but may be performed in turn or alternately with at least some of the other steps or sub-steps of other steps.
The embodiment of the invention discloses a device for generating a cross-system logic sentence in detail, and the method disclosed by the invention can be implemented by adopting various types of equipment, so that the invention also discloses a device for generating a cross-system logic sentence corresponding to the method, and a specific embodiment is given below with reference to fig. 6.
The first operation module 301 is configured to monitor a first operation of the first system, and generate a first logic statement according to the first operation.
And 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 the merging statement module 303 is configured to perform fusion processing on the same element in the first logical statement and the second logical statement, and generate a third logical 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 is recognizable by the first system and the second system at the same time.
Specific limitations regarding the means of cross-system logic statement generation may be found in the limitations of the method above and will not be described in detail herein. Each of the modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be stored in a processor of the terminal device, or may be stored in software in a memory of the terminal device, so that the processor invokes and executes operations corresponding to the above 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 of cross-system logic 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. Optionally, the computer readable storage medium comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium has storage space for program code to perform any of the method steps described above. These program code 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 present invention provides a computer device comprising a memory storing a computer program and a processor that when executing the computer program performs the method of cross-system logic statement generation described above.
The computer device includes a memory, a processor, and one or more computer programs, wherein the one or more computer programs are storable in the memory and configured to be executed by the one or more processors and the one or more application programs are configured to perform the method of cross-system logic statement generation described above.
The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various portions of the overall computer device, perform various functions of the computer device, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in memory, and invoking data stored in memory. Alternatively, the processor may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a report validator of buried point data (Graphics Processing Unit, GPU), and a modem. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented solely by a single communication chip.
The Memory may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (rom). The memory may be used to store instructions, programs, code sets, or instruction sets. 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, etc.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method of cross-system logic 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;
performing 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 logic statement is recognized by the first system and the second system at the same time;
the fusing processing of the same elements in the first logic statement and the second logic statement comprises the following steps:
extracting elements with the same attribute names in the first logic statement and the second logic statement and corresponding attribute values;
and merging the attribute values corresponding to the same attribute names in the first logic statement and the second logic statement.
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 and the first operation and the second operation are the same operation of the same control on the same page.
3. The method of cross-system logic statement generation of claim 2, wherein the first operation, second operation, or third operation comprises:
at least one of a mouse-down operation, a mouse-up operation, a mouse-down and move operation, and a keyboard input operation is performed on the controls of the page.
4. The method of cross-system logic statement generation of claim 1, wherein the generating a third logic statement comprises:
and reserving different elements in the first logic statement and the second logic statement.
5. An apparatus for cross-system logic statement generation, comprising:
the first operation module is used for monitoring a 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 merging 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 logic statement is recognized by the first system and the second system at the same time;
the same elements include elements with the same attribute names or the same attribute values, and the merge statement module is specifically configured to:
extracting elements with the same attribute names in the first logic statement and the second logic statement and corresponding attribute values;
and merging the attribute values corresponding to the same attribute names in the first logic statement and the second logic statement.
6. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of the method of cross-system logic statement generation of any of claims 1-4.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, performs the method of cross-system logic statement generation of any of claims 1-4.
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 CN115729530A (en) 2023-03-03
CN115729530B true 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10613854B2 (en) * 2016-12-22 2020-04-07 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
CN110955434B (en) * 2019-10-31 2023-01-17 苏宁云计算有限公司 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
CN113703739B (en) * 2021-09-03 2023-05-09 上海森亿医疗科技有限公司 Cross-language fusion calculation method, system and terminal based on omiga engine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115729530A (en) 2023-03-03

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN102197362B (en) Surfacing and management of window-specific controls
CN102609403B (en) Formatting data by example
US20130117738A1 (en) Server Upgrades with Safety Checking and Preview
CN105051722A (en) Auto-complete with persisted atomically linked entities
CN110825807B (en) Data interactive conversion method, device, equipment and medium based on artificial intelligence
CN105335435A (en) File management method and information processing equipment
CN109408284B (en) Online document recovery method and device, equipment and storage medium thereof
US20110167047A1 (en) Editing apparatus, method, and storage medium
CN115729530B (en) Cross-system logic statement generation method, device, storage medium and equipment
CN112015817A (en) Processing method, device and equipment of block chain data
CN107220044B (en) Method and device for driving business object based on meta-model
CN113094125A (en) Business process processing method, device, server and storage medium
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN106681852A (en) Method and device for adjusting browser compatibility
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
JP2017102872A (en) Development device, development system, and program
CN113724115A (en) Data processing method and server based on online education
CN104536892A (en) Software online debugging method and system
US8495033B2 (en) Data processing
CN107272989A (en) Using startup method, device and terminal device
CN114356290A (en) Data processing method and device and computer readable storage medium
CN110674224A (en) Entity data processing method, device, equipment and computer readable storage medium
CN112764828B (en) Business logic management method and device, computer equipment and medium

Legal Events

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