Nothing Special   »   [go: up one dir, main page]

CN108710489A - Automate derivative scenario generation method, device, computer equipment - Google Patents

Automate derivative scenario generation method, device, computer equipment Download PDF

Info

Publication number
CN108710489A
CN108710489A CN201810501781.0A CN201810501781A CN108710489A CN 108710489 A CN108710489 A CN 108710489A CN 201810501781 A CN201810501781 A CN 201810501781A CN 108710489 A CN108710489 A CN 108710489A
Authority
CN
China
Prior art keywords
script
derivative
logical code
automation
argument
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.)
Pending
Application number
CN201810501781.0A
Other languages
Chinese (zh)
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810501781.0A priority Critical patent/CN108710489A/en
Publication of CN108710489A publication Critical patent/CN108710489A/en
Pending legal-status Critical Current

Links

Classifications

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

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 embodiment of the invention discloses a kind of automation derivative scenario generation method, device, computer equipments, wherein the method includes:Obtain the logical code for generating automation derivative script;Script argument is selected according to parameter preset list;Automation derivative script is generated according to the logical code, selected script argument and preset user interface templates.The embodiment of the present invention can reduce the time for writing derivative code, improve the efficiency of derivative evidence.

Description

Automate derivative scenario generation method, device, computer equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of automation derivative scenario generation method, device, calculating Machine equipment.
Background technology
In the prior art, for the mode of derivative evidence, a complete method goes to complete not yet, if needing to make every time With derivative according to when, pass through the corresponding derivative code of manual compiling, it will usually devote a tremendous amount of time, and write derivative code Period is longer, with the continuous innovation of technology, the continuous growth of portfolio, in the way of the code of hand-coding derivative evidence Through business demand and development instantly cannot be met.
Invention content
In view of this, a kind of automation derivative scenario generation method of offer of the embodiment of the present invention, device, computer equipment, The time for writing derivative code can be reduced, the efficiency of derivative evidence is improved.
On the one hand, an embodiment of the present invention provides a kind of automation derivative scenario generation method, this method includes:
Obtain the logical code for generating automation derivative script;
Script argument is selected according to parameter preset list;
Automation derivative foot is generated according to the logical code, selected script argument and preset user interface templates This.
On the other hand, an embodiment of the present invention provides a kind of automation derivative script generation device, described device includes:
First acquisition unit, for obtaining the logical code for generating automation derivative script;
Selecting unit, for selecting script argument according to parameter preset list;
Generation unit, for being generated according to the logical code, selected script argument and preset user interface templates Automate derivative script.
Another aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in On the memory and the computer program that can run on the processor, when the processor executes the computer program Realize automation derivative scenario generation method as described above.
It is described computer-readable to deposit in another aspect, the embodiment of the present invention additionally provides a kind of computer readable storage medium Storage media storage there are one either more than one program the one or more programs can by one or more than one Processor execute, to realize automation derivative scenario generation method as described above.
A kind of automation derivative scenario generation method of offer of the embodiment of the present invention, device, computer equipment, wherein method packet It includes:Obtain the logical code for generating automation derivative script;Script argument is selected according to parameter preset list;According to described Logical code, selected script argument and preset user interface templates generate automation derivative script.The embodiment of the present invention can To reduce the time for writing derivative code, the efficiency of derivative evidence is improved.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of schematic flow diagram of automation derivative scenario generation method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of automation derivative scenario generation method provided in an embodiment of the present invention;
Fig. 3 is a kind of application demonstration graph of automation derivative scenario generation method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow diagram of automation derivative scenario generation method provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic flow diagram of automation derivative scenario generation method provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic block diagram of automation derivative script generation device provided in an embodiment of the present invention;
Fig. 7 is a kind of another schematic block diagram of automation derivative script generation device provided in an embodiment of the present invention;
Fig. 8 is a kind of another schematic block diagram of automation derivative script generation device provided in an embodiment of the present invention;
Fig. 9 is a kind of another schematic block diagram of automation derivative script generation device provided in an embodiment of the present invention;
Figure 10 is a kind of structure composition schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of exemplary flow of automation derivative scenario generation method provided in an embodiment of the present invention Figure.As shown in Figure 1, the method comprising the steps of S101~S105.
S101 obtains the logical code for generating automation derivative script.
In embodiments of the present invention, the logical code refers to the foot of the related operating process using scripting language This code, script can include but is not limited to used by writing automation derivative script:ASP,PHP,JavaScript And the scripts such as VBScript.Optionally, the logical code may include logical variable, the logic side that user is write Method and logical function.
When it is implemented, as shown in Fig. 2, the step S101 includes:
S101a receives logical code input by user by patterned way.
In the present embodiment, by patterned mode, logical variable, logical method and logic input by user are received Function specifically can receive logical variable, logical method and the logical function that user is edited by visualized graphs, As shown in figure 3, user can be in user interface G by creating visualized graphs frame Label1, and inputs and use in Label1 The code segment d that family is edited.
S101b encapsulates the logical code according to specified format, and obtains the logical code after encapsulation.
In the present embodiment, the specified format can be:Extensible markup language (Extensible Markup Language, referred to as XML) format, specifically, the method for encapsulating the logical code can be:Obtain what user was inputted Logical variable, logical method and logical function, the logical variable that user is inputted, logical method and logical function are in PC It is graphically shown on machine, generates logical variable, logical method and the logical function inputted containing user XML templates;The logical code in generated XML templates is obtained by webservice interfaces.
S102 selects script argument according to parameter preset list.
In embodiments of the present invention, the parameter preset list is stored in configuration server, which can Think and generate the required configuration parameter name of derivative script and configuration parameter value, wherein can be in advance by Configuration Management Officer Input wants the title of derived data, the address of derived data and want derived data in configuration server Format or want the sizes of derived data, and want the name of derived data to be referred to as configuration parameter name by input, By the format wanted the address of derived data and want derived data inputted or the size for wanting derived data As configuration parameter value.
S103 generates automation according to the logical code, selected script argument and preset user interface templates and leads Number script.
In embodiments of the present invention, before generating automation derivative script, preset user interface templates, this implementation are needed User interface templates can be abstracted as the content of following four part by example, including automation tools list, execute operating list, Parameter configuration list and operation object list;After getting logical code and script argument, according to acquired logical code And script argument and preset user interface templates, you can generate automation derivative script.In the specific implementation, logical code It is commonly stored in the server with script argument, user interface templates are typically included in mobile client or desktop computer client In.Under the prior art, it for directly instructing write logical code according to the automation that script provides, only grasps What these automations instructed, which specializes in personnel, to debug automatic parameter script.Therefore, under the prior art Derivative technique, the higher problem of and debugging difficulty larger there are workload.Automating derivative script by the use of this motion can To reduce the time for writing derivative code, the efficiency of derivative evidence is improved.
Further, as shown in figure 4, the step S103 includes:
S201 obtains the logical code and script argument by preset control gripping tool.
In embodiments of the present invention, the process of the logical code and script argument is obtained by controlling gripping tool, Can be:The crawl interface (such as Apientry) provided by operating system, crawl are currently configured in server and are stored Logical code and script argument will be operated for example, for the configuration server of logical code and script argument is stored with The crawl interface that system is provided is associated with configuration server, for associated crawl interface, can be moved to mouse Above the crawl interface, by clicking, mouse obtains the logical code stored in current-configuration server and script is joined Number.
Optionally, can be by the method that the crawl interface that operating system is provided is associated with configuration server:To Configuration server sends GET association requests, which includes URL association links, and configuration server receives this After URL association links, the URL association links are opened, and the link is preserved into daily record, just establishes crawl interface in this way and match Set the incidence relation of server.
Acquired logical code and script argument are imported the preset user interface templates by S202, and to described Logical code and script argument are compiled automates derivative script to generate.
In embodiments of the present invention, the preset user interface templates are stored in mobile client or desk-top client In, the logical code and script argument are imported into the preset user interface templates, described in importing logical code Preset user interface templates, for example, UIViewController class method set is imported preset user interface templates, Ke Yixian The methodical code of institute in UIViewController class method set copied, then will be copied The methodical code of institute is pasted onto in user interface templates in UIViewController class method set;For example, UIViewController class method set includes method A, method B, method C, according to method in UIViewController Sequence in class method set successively copies method A, method B, method C, then successively by method A, method B, method C is pasted onto in user interface templates;For script argument is imported the preset user interface templates, for example, can be first by foot Parameter name and parameter value are copied in this parameter, and the parameter name copied and parameter value are then pasted onto user In interface template;The logical code and script argument are compiled and automate derivative script to generate, specifically, to institute It states logical code and script argument is pre-processed, and generate temporary file, which to be generated by script Then corresponding script function executes the script function, derivative script is automated to generate.
In the same embodiment, as shown in figure 5, the step S202 includes:
S202a extracts the major key of the logical code and script argument and generates script text according to the major key extracted Part title.
In embodiments of the present invention, there is major key in the logical code and script argument, major key can be patrolled The first character of code and script argument is collected, which cannot be null character, will be respectively from logical code and script argument Middle extracted being combined to form a new character string, using the character string as the title of script file, wherein if described There are when multiple logical variables, multiple logical methods and multiple logical functions in logical code, each logic is extracted respectively The first character of variable, logical method and logical function, the script argument include parameter name and parameter value, will be distinguished The first character of extracting parameter title and parameter value, by all first characters and script argument of the logical code extracted All first characters be combined, generate a character string, using the character string as script file title.
S202b generates institute according to the compiling sentence in the script file title and the preset user interface templates State automation derivative script.
As seen from the above, the present embodiment is by obtaining the logical code for generating automation derivative script;According to default Parameter list selects script argument;It is generated according to the logical code, selected script argument and preset user interface templates Automate derivative script.The embodiment of the present invention can reduce the time for writing derivative code, improve the efficiency of derivative evidence.
Referring to Fig. 6, a kind of corresponding above-mentioned automation derivative script method, the embodiment of the present invention also propose a kind of automation Derivative script device, the device 100 include:First acquisition unit 101, selecting unit 102, generation unit 103.
Wherein, first acquisition unit 101, for obtaining the logical code for generating automation derivative script.In this hair In bright embodiment, the logical code refers to the scripted code of the related operating process using scripting language, writes certainly Script can include but is not limited to used by dynamicization derivative script:ASP, PHP, JavaScript and VBScript etc. Script.Optionally, the logical code may include logical variable, logical method and the logic letter that user is write Number.
Selecting unit 102, for selecting script argument according to parameter preset list.In embodiments of the present invention, described pre- Setting parameter list is stored in configuration server, which can be to generate the required configuration parameter of derivative script Title and configuration parameter value, wherein can be inputted in configuration server by Configuration Management Officer in advance and want derived data Title, want the address of derived data and want the format of derived data or the size of data derived from wanting, And want the name of derived data to be referred to as configuring parameter name by input, by input want derived from data address and It wants the format of derived data or wants the size of derived data as configuration parameter value.
Generation unit 103, for being given birth to according to the logical code, selected script argument and preset user interface templates At automation derivative script.In embodiments of the present invention, before generating automation derivative script, preset user interface mould is needed User interface templates can be abstracted as the content of following four part, including automation tools list, execution by plate, the present embodiment Operating list, parameter configuration list and operation object list;After getting logical code and script argument, according to acquired Logical code and script argument and preset user interface templates, you can generate automation derivative script.In the specific implementation, Logical code and script argument are commonly stored in the server, and user interface templates are typically included in mobile client or desktop computer In client.Under the prior art, for directly instructing write logical code according to the automation that script provides, only Have and grasps specializing in personnel and being debugged to automatic parameter script for these automation instructions.Therefore, existing skill Derivative technique under art, the higher problem of and debugging difficulty larger there are workload.Derivative is automated by the use of this motion Script can reduce the time for writing derivative code, improve the efficiency of derivative evidence.
As seen from the above, the present embodiment is by obtaining the logical code for generating automation derivative script;According to default Parameter list selects script argument;It is generated according to the logical code, selected script argument and preset user interface templates Automate derivative script.The embodiment of the present invention can reduce the time for writing derivative code, improve the efficiency of derivative evidence.
As shown in fig. 7, the first acquisition unit 101, including:
Receiving unit 101a receives logical code input by user for passing through patterned way.In the present embodiment, lead to Patterned mode is crossed, logical variable, logical method and logical function input by user are received, it specifically, can be by can Receive user logical variable, logical method and the logical function edited depending on changing figure, as shown in figure 3, user can with By creating visualized graphs frame Label1, and the code segment d that input user is edited in Label1 in the G of family interface.
Encapsulation unit 101b for encapsulating the logical code according to specified format, and obtains the logic after encapsulation Code.In the present embodiment, the specified format can be:Extensible markup language (Extensible Markup Language, referred to as XML) format, specifically, the method for encapsulating the logical code can be:Obtain what user was inputted Logical variable, logical method and logical function, logical variable, logical method and logical function with graphical in PC machine Mode show, generate the XML templates of logical variable, logical method and logical function inputted containing user;It is logical Cross the logical code in the generated XML templates of webservice interfaces acquisition.
As shown in figure 8, the generation unit 103, including:
Second acquisition unit 1031, for by preset control gripping tool, obtaining the logical code and script Parameter.In embodiments of the present invention, the process of the logical code and script argument is obtained by controlling gripping tool, it can be with For:The crawl interface (such as Apientry) provided by operating system, crawl be currently configured server in stored patrol Code and script argument are collected, for example, for the configuration server for being stored with logical code and script argument, by operating system Crawl interface and the configuration server provided is associated, and for associated crawl interface, can be moved to mouse described It captures above interface, the logical code and script argument that are currently configured and are stored in server is obtained by clicking mouse.It can Choosing, can be by the method that the crawl interface that operating system is provided is associated with configuration server:To configuration server GET association requests are sent, which includes URL association links, and configuration server receives the URL association links Afterwards, the URL association links are opened, and the link is preserved into daily record, just establish crawl interface and configuration server in this way Incidence relation.
Import unit 1032, for acquired logical code and script argument to be imported the preset user interface mould Plate, and the logical code and script argument are compiled and automate derivative script to generate.In embodiments of the present invention, The preset user interface templates are stored in mobile client or desk-top client, and the logical code and script are joined Number imports the preset user interface templates, for logical code is imported the preset user interface templates, for example, will UIViewController class method set imports the user interface templates developed in advance, can be first by UIViewController The methodical code of institute is copied in class method set, then will be in the UIViewController class method set that copied The methodical code of institute is pasted onto in user interface templates;For example, UIViewController classes method set includes Method A, method B, method C, according to sequence of the method in UIViewController class method set, successively by method A, side Method B, method C are copied, and then method A, method B, method C are pasted onto in user interface templates successively;For by script Parameter imports the preset user interface templates, for example, can first copy parameter name in script argument and parameter value Then the parameter name copied and parameter value are pasted onto in user interface templates by shellfish;To the logical code and foot This parameter is compiled specifically locates the logical code and script argument with generating automation derivative script in advance Reason, and temporary file is generated, which is the script function corresponding to the script to be generated, and then executes the script Function automates derivative script to generate.
In the same embodiment, as shown in figure 9, the import unit 1032, including:
Edit cell 1032a, major key for extracting the logical code and script argument and according to the master extracted Key generates script file title.In embodiments of the present invention, there is major key in the logical code and script argument, it is main Key can be the first character of logical code and script argument, which cannot be null character, will respectively from logical code with And that is extracted in script argument is combined to form a new character string, using the character string as the title of script file, Wherein, it if there are when multiple logical variables, multiple logical methods and multiple logical functions in the logical code, carries respectively It includes parameter name and ginseng to take the first character of each logical variable, logical method and logical function, the script argument Numerical value, by the first character of extracting parameter title and parameter value respectively, by all first characters of the logical code extracted And all first characters of script argument are combined, and a character string are generated, using the character string as script file title.
Subelement 1032b is generated, for generating subelement according to the script file title and preset user circle Compiling sentence in face die plate generates the automation derivative script.
Above-mentioned automation derivative script generation device can be implemented as a kind of form of computer program, and computer program can To be run on computer equipment as shown in Figure 10.
Figure 10 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be terminal, can also be Server, wherein terminal can be smart mobile phone, tablet computer, laptop, desktop computer, personal digital assistant and wear Wearing formula device etc. has the electronic device of communication function.Server can be independent server, can also be multiple servers The server cluster of composition.Referring to Fig.1 0, the computer equipment 500 include the processor 502 connected by system bus 501, Non-volatile memory medium 503, built-in storage 504 and network interface 505.Wherein, the non-volatile of the computer equipment 500 is deposited Storage media 503 can storage program area 5031 and computer program 5032, which is performed, and may make place Reason device 502 executes a kind of automation derivative scenario generation method.The processor 502 of the computer equipment 500 is for providing calculating And control ability, support the operation of entire computer equipment 500.The built-in storage 504 is in non-volatile memory medium 503 The operation of computer program 5032 provides environment, when which is executed by processor, processor 502 may make to execute one Kind automation derivative scenario generation method.The network interface 505 of computer equipment 500 such as sends and divides for carrying out network communication The task dispatching matched.It will be understood by those skilled in the art that structure shown in Figure 10, only with the relevant portion of application scheme The block diagram of separation structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer Equipment may include either combining certain components or with different component cloth than more or fewer components as shown in the figure It sets.
Wherein, following operation is realized when the processor 502 executes the computer program:
Obtain the logical code for generating automation derivative script;
Script argument is selected according to parameter preset list;
Automation derivative foot is generated according to the logical code, selected script argument and preset user interface templates This.
In one embodiment, the logical code obtained for generating automation derivative script, including:
Logical code input by user is received by patterned way;
The logical code is encapsulated according to specified format, and obtains the logical code after encapsulation.
In one embodiment, the script argument includes domain name parameters and agent address parameter, the default ginseng of the basis Ordered series of numbers table selects script argument, including:
Domain name parameters and agent address parameter are selected according to parameter preset list.
In one embodiment, it is given birth to according to the logical code, selected script argument and preset user interface templates At automation derivative script, including:
By preset control gripping tool, the logical code and script argument are obtained;
Acquired logical code and script argument are imported into the preset user interface templates, and to the logic generation Code and script argument are compiled automates derivative script to generate.
In one embodiment, described that acquired logical code and script argument are imported into the preset user interface Template, and the logical code and script argument are compiled and automate derivative script to generate, including:
It extracts the major key of the logical code and script argument and script file name is generated according to the major key extracted Claim;
It is generated according to the compiling sentence in the script file title and the preset user interface templates described automatic Change derivative script.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 10 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different components arrangement.For example, in some embodiments, computer equipment only includes memory And processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 10, herein It repeats no more.
The present invention provides a kind of computer readable storage medium, computer-readable recording medium storage there are one or one A procedure above, the one or more programs can be executed by one or more than one processor, with realize with Lower step:
Obtain the logical code for generating automation derivative script;
Script argument is selected according to parameter preset list;
Automation derivative foot is generated according to the logical code, selected script argument and preset user interface templates This.
In one embodiment, the logical code for being retrieved as derivative script to be generated and being write, including:
Logical code input by user is received by patterned way;
The logical code is encapsulated according to specified format, and obtains the logical code after encapsulation.
In one embodiment, the script argument includes domain name parameters and agent address parameter, the default ginseng of the basis Ordered series of numbers table selects script argument, including:
Domain name parameters and agent address parameter are selected according to parameter preset list.
In one embodiment, it is given birth to according to the logical code, selected script argument and preset user interface templates At automation derivative script, including:
By preset control gripping tool, the logical code and script argument are obtained;
Acquired logical code and script argument are imported into the preset user interface templates, and to the logic generation Code and script argument are compiled automates derivative script to generate.
In one embodiment, described that acquired logical code and script argument are imported into the preset user interface Template, and the logical code and script argument are compiled and automate derivative script to generate, including:
It extracts the major key of the logical code and script argument and script file name is generated according to the major key extracted Claim;
It is generated according to the compiling sentence in the script file title and the preset user interface templates described automatic Change derivative script.
Present invention storage medium above-mentioned includes:Magnetic disc, CD, read-only memory (Read-Only Memory, The various media that can store program code such as ROM).
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application-specific integrated circuit) it realizes.
The embodiment of the present invention automates the step in derivative scenario generation method can carry out sequence tune according to actual needs It is whole, merge and delete.
Unit in automation derivative script generation device of the embodiment of the present invention can be merged, be drawn according to actual needs Divide and deletes.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of automation derivative scenario generation method, which is characterized in that the method includes:
Obtain the logical code for generating automation derivative script;
Script argument is selected according to parameter preset list;
Automation derivative script is generated according to the logical code, selected script argument and preset user interface templates.
2. the method as described in claim 1, which is characterized in that the logic generation obtained for generating automation derivative script Code, including:
Logical code input by user is received by patterned way;
The logical code is encapsulated according to specified format, and obtains the logical code after encapsulation.
3. the method as described in claim 1, which is characterized in that the script argument includes domain name parameters and agent address ginseng Number, it is described that script argument is selected according to parameter preset list, including:
Domain name parameters and agent address parameter are selected according to parameter preset list.
4. the method as described in claim 1, which is characterized in that according to the logical code, selected script argument and pre- It sets user interface templates and generates automation derivative script, including:
By preset control gripping tool, the logical code and script argument are obtained;
Acquired logical code and script argument are imported into the preset user interface templates, and to the logical code with And script argument is compiled and automates derivative script to generate.
5. method as claimed in claim 4, which is characterized in that described to import acquired logical code and script argument The preset user interface templates, and the logical code and script argument are compiled and automate derivative foot to generate This, including:
It extracts the major key of the logical code and script argument and script file title is generated according to the major key extracted;
The automation is generated according to the compiling sentence in the script file title and the preset user interface templates to lead Number script.
6. a kind of automation derivative script generation device, which is characterized in that described device includes:
First acquisition unit, for obtaining the logical code for generating automation derivative script;
Selecting unit, for selecting script argument according to parameter preset list;
Generation unit, it is automatic for being generated according to the logical code, selected script argument and preset user interface templates Change derivative script.
7. device as claimed in claim 6, which is characterized in that the first acquisition unit, including:
Receiving unit receives logical code input by user for passing through patterned way;
Encapsulation unit for encapsulating the logical code according to specified format, and obtains the logical code after encapsulation.
8. device as claimed in claim 6, which is characterized in that the generation unit, including:
Second acquisition unit, for by preset control gripping tool, obtaining the logical code and script argument;
Import unit, for acquired logical code and script argument to be imported the preset user interface templates, and it is right The logical code and script argument are compiled automates derivative script to generate.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes that claim 1-5 such as appoints when executing the computer program Automation derivative scenario generation method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or More than one program, the one or more programs can be executed by one or more than one processor, to realize Automation derivative scenario generation method as described in any one in claim 1-5.
CN201810501781.0A 2018-05-23 2018-05-23 Automate derivative scenario generation method, device, computer equipment Pending CN108710489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810501781.0A CN108710489A (en) 2018-05-23 2018-05-23 Automate derivative scenario generation method, device, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810501781.0A CN108710489A (en) 2018-05-23 2018-05-23 Automate derivative scenario generation method, device, computer equipment

Publications (1)

Publication Number Publication Date
CN108710489A true CN108710489A (en) 2018-10-26

Family

ID=63868542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810501781.0A Pending CN108710489A (en) 2018-05-23 2018-05-23 Automate derivative scenario generation method, device, computer equipment

Country Status (1)

Country Link
CN (1) CN108710489A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783336A (en) * 2018-12-18 2019-05-21 中国平安人寿保险股份有限公司 Data analyze scenario generation method, device, medium and electronic equipment
CN110286901A (en) * 2019-07-04 2019-09-27 广州广燃设计有限公司 A kind of scenario generation method based on CAD, system and storage medium
CN111813396A (en) * 2020-07-14 2020-10-23 北京自如信息科技有限公司 Script editing method and device, computer equipment and readable storage medium
WO2023115397A1 (en) * 2021-12-22 2023-06-29 华为技术有限公司 Method and apparatus for generating automated script

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080109524A1 (en) * 2006-11-07 2008-05-08 International Business Machines Corporation Method and system for dynamically specifying a format for data provided by a web service invocation
US20090260020A1 (en) * 2008-04-10 2009-10-15 Dell Products L.P. Automated Scripting Methods and Media
US7827527B1 (en) * 2004-02-12 2010-11-02 Chiluvuri Raju V System and method of application development
CN102306102A (en) * 2011-08-25 2012-01-04 中兴通讯股份有限公司 Method and device for automatically generating program file
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
US20130339841A1 (en) * 2012-06-14 2013-12-19 Open Text S.A. Systems and methods of a script generation engine
CN104298495A (en) * 2013-07-19 2015-01-21 桥弘数控科技(上海)有限公司 Program development method and system based on scripting language
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN105701251A (en) * 2016-03-04 2016-06-22 浪潮通用软件有限公司 Data export and import method based on object definition
CN106020944A (en) * 2016-05-04 2016-10-12 北京思特奇信息技术股份有限公司 Background database configuration based data downloading method and system
US20170139680A1 (en) * 2015-11-18 2017-05-18 Mastercard International Incorporated Systems, methods, and media for graphical task creation
CN107291438A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 Generation method, device and the electronic equipment of automatized script
CN107958057A (en) * 2017-11-29 2018-04-24 苏宁云商集团股份有限公司 A kind of code generating method and device for being used for Data Migration in heterogeneous database

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7827527B1 (en) * 2004-02-12 2010-11-02 Chiluvuri Raju V System and method of application development
US20080109524A1 (en) * 2006-11-07 2008-05-08 International Business Machines Corporation Method and system for dynamically specifying a format for data provided by a web service invocation
US20090260020A1 (en) * 2008-04-10 2009-10-15 Dell Products L.P. Automated Scripting Methods and Media
CN102306102A (en) * 2011-08-25 2012-01-04 中兴通讯股份有限公司 Method and device for automatically generating program file
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
US20130339841A1 (en) * 2012-06-14 2013-12-19 Open Text S.A. Systems and methods of a script generation engine
CN104298495A (en) * 2013-07-19 2015-01-21 桥弘数控科技(上海)有限公司 Program development method and system based on scripting language
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
US20170139680A1 (en) * 2015-11-18 2017-05-18 Mastercard International Incorporated Systems, methods, and media for graphical task creation
CN105701251A (en) * 2016-03-04 2016-06-22 浪潮通用软件有限公司 Data export and import method based on object definition
CN107291438A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 Generation method, device and the electronic equipment of automatized script
CN106020944A (en) * 2016-05-04 2016-10-12 北京思特奇信息技术股份有限公司 Background database configuration based data downloading method and system
CN107958057A (en) * 2017-11-29 2018-04-24 苏宁云商集团股份有限公司 A kind of code generating method and device for being used for Data Migration in heterogeneous database

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BEAR BIBEAULT等: "《jQuery实战(第三版)》", 华中科技大学出版社, pages: 251 *
杨皓等: "基于XML脚本的代码生成技术及其应用", 《电脑知识与技术》, vol. 5, no. 07, 5 March 2009 (2009-03-05), pages 1712 - 1713 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783336A (en) * 2018-12-18 2019-05-21 中国平安人寿保险股份有限公司 Data analyze scenario generation method, device, medium and electronic equipment
CN110286901A (en) * 2019-07-04 2019-09-27 广州广燃设计有限公司 A kind of scenario generation method based on CAD, system and storage medium
CN111813396A (en) * 2020-07-14 2020-10-23 北京自如信息科技有限公司 Script editing method and device, computer equipment and readable storage medium
CN111813396B (en) * 2020-07-14 2021-04-20 北京自如信息科技有限公司 Script editing method and device, computer equipment and readable storage medium
WO2023115397A1 (en) * 2021-12-22 2023-06-29 华为技术有限公司 Method and apparatus for generating automated script

Similar Documents

Publication Publication Date Title
CN108710489A (en) Automate derivative scenario generation method, device, computer equipment
US11635974B2 (en) Providing a different configuration of added functionality for each of the stages of predeployment, deployment, and post deployment using a layer of abstraction
US10831453B2 (en) Connectors framework
US8180623B2 (en) Integration of a discrete event simulation with a configurable software application
CN113094037A (en) Interaction method, development platform, equipment and storage medium for forms and workflows
CN105653644A (en) Page constructor and page construction method
DE112009000293T5 (en) Automatic connections between application components
CN107766042A (en) A kind of visual data manager and device of the model file based on CSAR
DE112008003965T5 (en) Combining interfaces of shell applications and subapplications
CN112882703B (en) Online design method and device for user-defined chart plug-in
De et al. Task management in the new ATLAS production system
Song et al. Applying MDE tools at runtime: Experiments upon runtime models
WO2021013871A1 (en) Computer implemented method, computer program and physical computing environment
KR102397494B1 (en) Low code web development and operating system, and service method using of it
Medvidovic et al. Stemming Architectural Erosion by Coupling Architectural Discovery and Recovery.
JP4686117B2 (en) Source code conversion apparatus, source code conversion method, and program
Bao et al. A new approach to software tool interoperability
Kukla et al. A general and scalable solution for heterogeneous workflow invocation and nesting
Almeida et al. A component-based adaptation approach for multi-cloud applications
Barzdins et al. Metamodel specialisation based tool extension
CN109446256A (en) The structuring treating method and apparatus of network data
Mizuta et al. Automation of Grid service code generation with AndroMDA for GT3
Weyers et al. Formal modeling and reconfiguration of user interfaces
Schaefer et al. Tax-PLEASE—towards taxonomy-based software product line engineering
El-Ramly et al. Legacy systems interaction reengineering

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181026