CN107291438A - Generation method, device and the electronic equipment of automatized script - Google Patents

Generation method, device and the electronic equipment of automatized script Download PDF

Info

Publication number
CN107291438A
CN107291438A CN201610228789.5A CN201610228789A CN107291438A CN 107291438 A CN107291438 A CN 107291438A CN 201610228789 A CN201610228789 A CN 201610228789A CN 107291438 A CN107291438 A CN 107291438A
Authority
CN
China
Prior art keywords
control
interface
script
automatized script
user interface
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
CN201610228789.5A
Other languages
Chinese (zh)
Other versions
CN107291438B (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.)
Zhejiang Tmall Technology Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610228789.5A priority Critical patent/CN107291438B/en
Publication of CN107291438A publication Critical patent/CN107291438A/en
Application granted granted Critical
Publication of CN107291438B publication Critical patent/CN107291438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

This application discloses a kind of generation method of automatized script, device and electronic equipment, and a kind of operation method of automatized script, device and electronic equipment.The generation method of wherein described automatized script includes:It is retrieved as the operation logic code that the operation of automatized script to be generated is write;Obtain the interface configurations parameter of generation user interface institute foundation;It is the operation generation automatized script of the automatized script to be generated according to the operation logic code, the interface configurations parameter and the user interface templates developed in advance.The method provided using the application, direct developing user interface can be avoided in itself, the development process of automatized script is simplified, it is necessary to which the code write is greatly reduced, so as to reach the effect for reducing development amount, liberating developer, lifting efficiency of research and development.

Description

Generation method, device and the electronic equipment of automatized script
Technical field
The application is related to automation operation technical field, and in particular to a kind of generation method of automatized script; Corresponding to the above method, the application is related to the generating means and electronic equipment of a kind of automatized script simultaneously, with And a kind of operation method of automatized script, device and electronic equipment.
Background technology
With continuing to develop for computer and Internet technology, some ISPs are proposed one kind Operation platform is automated, this automation operation platform can be realized regular, the repeated behaviour of user Change into the function of automation mechanized operation.For example, in electronic commerce transaction system commodity automation restocking and Undercarriage, the automation push of message, the automation tracking of commodity effect, the automation collection of information, system Automatic management, automation download pictures, automation picture processing of resource etc..It is flat by automating operation Artificial operation is changed into automation mechanized operation by platform, labor workload can greatly be reduced, so as to reach saving Cost of labor, the effect for improving efficiency of operation.
Traditional automatized script development approach is:Developer creates for auto-control script fortune first Capable user interface, then carries out the coding of operation logic again.This development approach needs developer to be every The respective developing user interface of individual automatized script, the encoding amount that a user interface is related to generally thousand rows or so, It is even more many.As can be seen here, the time-consuming longer, workload of conventional method exploitation automatized script is larger, special It is not that repairing changes to be needed to issue automatized script again after user interface.
In summary, prior art exist need for each automatized script each developing user interface the problem of.
The content of the invention
The application provides a kind of generation method of automatized script, with solve to need under prior art for it is each from Dynamicization script each developing user interface the problem of.The application also provides a kind of generating means of automatized script And electronic equipment, and a kind of operation method of automatized script, device and electronic equipment.
The application provides a kind of generation method of automatized script, including:
It is retrieved as the operation logic code that the operation of automatized script to be generated is write;
Obtain the interface configurations parameter of generation user interface institute foundation;
According to the operation logic code, the interface configurations parameter and the user interface templates developed in advance, Automatized script is generated for the operation of the automatized script to be generated.
Optionally,
The operation of the automatized script to be generated includes interface operation;
The operation logic code includes logical code corresponding with the control in interface;
The logical code corresponding with control in interface, is generated using following steps:
Belong to according to for the control mark that the default control of the control is identified and previously generated with control Property between mapping relations collection, obtain the control type attribute of the control;And, according to described Interface type belonging to interface, it is determined that the script function function encapsulated in advance corresponding with the interface;
According to the control type attribute and the script function function determined, the control is retrieved as The default action of part type;
By control mark, the mapping relations collection, obtain it is described it is default action, it is described The interface identification at interface forms the control with interface as the parameter of the script function function The corresponding logical code of part.
Optionally, the parametric form of the script function function includes natural language form.
Optionally, the mapping relations collection is generated using following steps:
By default control gripping tool, control and control property that interface includes are obtained;
For each control setting control mark got;
Identified, formed between the control mark of each control and control property according to the control of setting Mapping relations, the mapping relations of each control are formed into the mapping relations collection.
Optionally, it is described by default control gripping tool, obtain control and control property that interface includes The step of, including:
By the application programming interfaces of operating system, the control handle at current mouse position is obtained;
Control object according to the control handle acquiring at current mouse position;
According to the control object, the control at the current mouse position is obtained;
Read each attribute of the control at the current mouse position.
Optionally, the interface type belonging to the interface includes type of webpage or window type.
Optionally, the operation logic code includes the logic write according to the script function function encapsulated in advance Code.
Optionally, the parametric form of the script function function encapsulated in advance includes natural language form.
Optionally, in addition to:
According to the exception that the script function function encapsulated in advance is dished out when running the automatized script, adjust Try the automatized script.
Accordingly, the application also provides a kind of generating means of automatized script, including:
Operation logic Code obtaining unit, the operation that the operation for being retrieved as automatized script to be generated is write Logical code;
Interface configurations parameter acquiring unit, the interface configurations parameter for obtaining generation user interface institute foundation;
Automatized script generation unit, for according to the operation logic code, the interface configurations parameter and The user interface templates developed in advance, are the operation generation automatized script of the automatized script to be generated.
Optionally, the operation of the automatized script to be generated includes interface operation;The operation logic code Including logical code corresponding with the control in interface;Described device also includes:
Control logical code generation unit, for generating the logical code corresponding with the control in interface;
The control logical code generation unit, including:
Control type attribute obtains subelement, for according to for the default control mark of the control and in advance Mapping relations collection between the control mark and control property of generation, obtains the control type attribute of the control;
Script function function determination subelement, for the interface type according to belonging to the interface, it is determined that and institute State the corresponding script function function encapsulated in advance in interface;
Action obtains subelement, for the script function function according to the control type attribute and determination, It is retrieved as the default action of the control type;
Control logical code generate subelement, for by control mark, the mapping relations collection, acquisition It is described it is default action, the interface interface identification be used as the script function function parameter, formed The logical code corresponding with control in interface.
Optionally, in addition to:
Mapping relations collection generation unit, for generating the mapping relations collection;
The mapping relations collection generation unit, including:
Control and control property obtain subelement, for by default control gripping tool, obtaining interface bag The control and control property included;
Control mark sets subelement, for each control setting control mark to get;
Mapping relations collection generates subelement, for being identified according to the control of setting, forms each control Mapping relations between the control mark and control property, by the mapping relations formation institute of each control State mapping relations collection.
Optionally, the control and control property obtain subelement, including:
Handle acquiring subelement, for the application programming interfaces by operating system, obtains current mouse position The control handle at place;
Object acquisition subelement, for the control according to the control handle acquiring at current mouse position Object;
Control obtains subelement, for obtaining the control at the current mouse position according to the control object;
Attribute obtains subelement, each attribute for reading the control at the current mouse position.
Accordingly, the application also provides a kind of electronic equipment, including:
Display;
Processor;And
Memory, the program for storing the generation method for realizing automatized script, equipment is powered and passed through The processor is run after the program of the generation method of the automatized script, performs following step:It is retrieved as treating The operation logic code that the operation of generation automatized script is write;Obtain the interface of generation user interface institute foundation Configuration parameter;According to the operation logic code, the interface configurations parameter and the user interface developed in advance Template, is the operation generation automatized script of the automatized script to be generated.
Accordingly, the application also provides a kind of operation method of automatized script, including:
Obtain the interface configurations parameter of the user interface of automatized script to be run;And, obtain user interface Template;
According to the interface configurations parameter and the user interface templates, the user interface is generated;
By the component for being used to obtain script operation related data in the user interface registered in advance, from institute State and operational parameter data and object set to be operated are extracted in user interface;
The automatized script is run according to the operational parameter data, the object set to be operated is included Each object to be operated is handled.
Optionally, before the extraction operational parameter data from the user interface and data set to be operated, Also include:
By the component register into the operating system.
Optionally, the operating system includes:Windows or non-Windows.
Optionally, the operating system is Windows;It is described by the component register to the operation In system, in the following way:
By com component mode, by the component register into the Windows.
Optionally, the operating system is non-Windows;It is described by the component register to the behaviour Make in system, in the following way:
By configuration file mode, by the component register into the non-Windows.
Optionally, the interface configurations parameter include operational factor mark, the attribute-name of the object to be operated, Script function is identified.
Accordingly, the application also provides a kind of running gear of automatized script, including:
Interface configurations parameter acquiring unit, matches somebody with somebody for obtaining the interface of user interface of automatized script to be run Put parameter;
User interface templates acquiring unit, for obtaining user interface templates;
User interface generation unit, it is raw for according to the interface configurations parameter and the user interface templates Into the user interface;
Script runs related data acquiring unit, for being used to obtain the user interface by registered in advance Middle script runs the component of related data, operational parameter data is extracted from the user interface and to be operated right As collection;
Automatized script execution unit, for running the automatized script according to the operational parameter data, Each object to be operated that the object set to be operated includes is handled.
Optionally, in addition to:
Component register unit, for by the component register into the operating system.
Accordingly, the application also provides a kind of electronic equipment, including:
Display;
Processor;And
Memory, the program for storing the operation method for realizing automatized script, equipment is powered and passed through The processor is run after the program of the operation method of the automatized script, performs following step:Obtain to be shipped The interface configurations parameter of the user interface of row automatized script;And, obtain user interface templates;According to institute Interface configurations parameter and the user interface templates are stated, the user interface is generated;Pass through use registered in advance In the component for obtaining script operation related data in the user interface, operation is extracted from the user interface Supplemental characteristic and object set to be operated;The automatized script is run according to the operational parameter data, to institute Each object to be operated that stating object set to be operated includes is handled.
Compared with prior art, the generation method for the automatized script that the application is provided, is grasped for repeatability Make compilation operation logical code and set after interface configurations parameter, according to operation logic code, interface configurations Parameter and the user interface templates developed in advance, generate the automatized script of the operation.
The generation method of the automatized script provided using the application, when developing automatized script, using logical User interface templates, it is only necessary to be UI Preferences interface configurations parameter;This processing mode, it is to avoid Direct developing user interface in itself, simplify the development process of automatized script, it is necessary to the code write significantly Degree is reduced;Therefore, the generation method for the automatized script that the application is provided, can effectively reduce development Amount, liberation developer, lifting efficiency of research and development.
, can be by default when the method provided using the application generates automatized script for the operation of interface class Control gripping tool obtain control and control property in interface, and according to the control set for each control Mark, the mapping relations collection between generation control mark and control property, when carrying out operation logic coding, Developer directly can operate to the control in mapping relations;This processing mode, it is to avoid pass through solution Analysis interface source code control is positioned, not only simplified the step of interface control is positioned but do not allow it is error-prone, And user need not learn interface development language;Therefore, the method that the application is provided further can be reduced effectively Development cost and the possibility for reducing program error.
In addition, the similar automation instruction of script, is polymerize by the method that the application is provided in advance, And encapsulate the similar automation command altitude of polymerization, it is reduced to after substantial amounts of automation command altitude encapsulation few Automation command function can be passed through encapsulation by the script function function of amount, developer in logic coding Script function function is brought into the way of natural language parameter;This processing mode, greatly simplify The learning cost of script.
In addition, the method that the application is provided, each script function function after encapsulation carries decision-making function, such as Fruit function performs failure and then alarmed immediately, and the implementation procedure of script is both the process of debugging code;This processing Mode so that script can be debugged without specializing in personnel;Therefore, the method that the application is provided Development cost can further be reduced.
Certainly, the either method or product for implementing the embodiment of the present application it is not absolutely required to while reaching above institute All advantages stated.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the embodiment of the generation method for automatized script that the application is provided;
Fig. 2 is a kind of stream of the user interface of the embodiment of the generation method for automatized script that the application is provided Cheng Tu;
Fig. 3 is a kind of generation interface control of the embodiment of the generation method for automatized script that the application is provided Script logic code flow chart;
Fig. 4 is a kind of generation mapping relations of the embodiment of the generation method for automatized script that the application is provided The flow chart of collection;
Fig. 5 is a kind of schematic diagram of the embodiment of the generating means for automatized script that the application is provided;
Fig. 6 is a kind of specific schematic diagram of the embodiment of the generating means for automatized script that the application is provided;
Fig. 7 is the schematic diagram of the embodiment for a kind of electronic equipment that the application is provided.
Fig. 8 is a kind of flow chart of the embodiment of the operation method for automatized script that the application is provided;
Fig. 9 is a kind of schematic diagram of the embodiment of the running gear for automatized script that the application is provided;
Figure 10 is the schematic diagram of the embodiment for another electronic equipment that the application is provided.
Embodiment
Many details are elaborated in the following description to fully understand the application.But, this Shen It is able to please be implemented with being much different from other manner described here, those skilled in the art can not disobey Similar popularization is done in the case of back of the body the application intension, therefore the application is not limited by following public specific implementation System.
It is a kind of in this application there is provided a kind of generation method of automatized script, device and electronic equipment Operation method, device and the electronic equipment of automatized script.Carry out one by one in the following embodiments specifically It is bright.In order to make it easy to understand, before describing an embodiment, first the technical scheme to the application makees brief description.
In the technical scheme that the application is provided, the generation method of the automatized script is generally in automation fortune The development module for seeking platform is implemented, and this method is related to developer;The operation method of the automatized script Generally implement in the mobile APP modules or client modules of automation operation platform.
Script developer is that specific operation writes the operation logic code of the operation and is UI Preferences After interface configurations parameter, open according to the operation logic code write, the interface configurations parameter of setting and in advance The user interface templates of hair, you can generate automatized script for the operation, the operation of the automatized script is patrolled Collect code and interface configurations parameter is generally stored inside in script server, user interface templates are typically included in shifting In dynamic client (mobile APP) or in desktop computer client.After the automatized script issue of generation, move Dynamic equipment generates the automation pin by the mobile client, desktop computer by the desktop computer client This corresponding user interface, when generating the user interface, client is joined firstly the need of interface configurations are obtained Number, then, generates user interface, when user is in the use further according to interface configurations parameter and user interface templates Script operational factor is set in the interface of family, increased after object to be operated, the client passes through registered in advance The component of related data is run for obtaining script in user interface, operational factor number is extracted from user interface According to object set to be operated, and according to operational parameter data perform automatized script, treat operation object concentration Each object handled.
The technical scheme that the application is provided, when developing automatized script, using general user interface templates, Only need as UI Preferences interface configurations parameter, the exploitation without carrying out user interface.Due to only needing Interface configurations parameter is set, thus, the development process of automatized script is simplified, it is necessary to which the code write is big Amplitude is reduced.
Below, embodiments herein is described in detail.Fig. 1 is refer to, it is the automation of the application The flow chart of the embodiment of the generation method of script.
Before this method is implemented, i.e.,:It is retrieved as the operation logic that the operation of automatized script to be generated is write Code, and the interface configurations parameter of generation user interface institute foundation is obtained, and according to operation logic code, boundary Face configuration parameter and the user interface templates developed in advance, are that the operation generation of automatized script to be generated is automatic , it is necessary to develop generally applicable user interface templates in advance before change script.
By to the analysis of the corresponding user interface of different automatized scripts and abstract, hair under traditional development methods A person of good sense find can by various user interfaces it is abstract be to include:Automation tools list, perform operating list, The user interface templates of this four partial content of parameter configuration list and operation object list.Based on it is this it is abstract can Design and develop general user interface templates, the user interface of different automatized scripts performs operation described The difference of list section, parameter configuration list section and operation object list section, can be according to be each The interface configurations parameter that individual user interface is set respectively embodies, and can be generated not according to different interface configurations parameters Same user interface.
Fig. 2 is refer to, it is showing for the user interface of the embodiment of the generation method of the automatized script of the application It is intended to.From Figure 2 it can be seen that user interface templates include a TreeView (tree view) and three ListView Using script developer as tree node in (List View), TreeView, the script of each developer exploitation is shown Instrument, shows each function mark for having selected wscript.exe to include in " performing operation " this ListView Know corresponding executive button, show can be to have selected script work in " parameter configuration " this ListView Have the script operational factor of configuration, the category of operation object is shown in " data list " this ListView Property and data.The interface configurations parameter of the present embodiment includes:The Function Identification of automatized script, script operation The attribute-name of parameter name, operation object.
Develop in advance after user interface templates, the template can be used for different automatized scripts, to be various When automatized script is write in operation, without developing user interface, so as to simplify script development process.Exploitation User interface templates can be using high level languages such as C#.
Develop in advance after user interface templates, the step S101 described in Fig. 1 can be performed to step S105, To realize the generation method for the automatized script that the present embodiment is provided, each step is described in detail below.
Step S101:It is retrieved as the operation logic code that the operation of automatized script to be generated is write.
The operation refers to repeatable operation, for example, commodity restocking and undercarriage, message are pushed, commodity effect The operations such as fruit tracking, information search, system resource management, download pictures, picture processing.The operation can Think the operation to interface, can also be the operation unrelated with interface, for example, commodity restocking and undercarriage are Operation to interface, download pictures are the operation unrelated with interface.
The operation logic code refers to, using the scripted code of the relevant operating process of scripting language, For example, the operating process of commodity restocking is to add property value by each attribute that default interpolation order is commodity, Then the operation logic code of commodity restocking includes the logical code such as the required attribute added and interpolation order.
The adoptable script of automatized script is write to include but is not limited to:AutoIt、JavaScript、 The scripts such as VBScript.If the operation of the automatized script to be generated is related to Windows interfaces behaviour Make, then can use AutoIt scripts, the language can enter in Windows GUI (user interface) Row is automatically brought into operation, and simulation thump, mouse movement and window/control operation etc. can be applied in combination automatic to realize Change task, this is that other scripts can not be accomplished or there is no reliable method to realize (such as VBScript And SendKeys).
, it is necessary to first be compiled by script developer for the operation of automatized script to be generated before this step is implemented Write operation logical code.Script developer is write after completion operation logic code, and operation logic code is carried The executor for the generation method for performing the automatized script of the application is given, the executor can be script generation Device.The executor is got after the operation logic code, you can is performed next step and is obtained generation user circle The interface configurations parameter of face institute foundation.
It should be noted that this step and next step have no the front and rear execution sequence of determination, in specific implementation When, the interface configurations parameter also first can be submitted to the executor by script developer, then by the behaviour Make logical code and submit the executor, this execution sequence is not produced to the automatized script ultimately generated Dependence is had no between influence, the two steps.
At present, script developer in compilation operation logical code, it is necessary to be provided using script Automation instruction (function instruction).By the automation instruction that script is provided is very more, with AutoIt Exemplified by script, the language provides thousands of automation instructions, therefore, compilation operation under prior art Logical code, have that learning cost is huge, threshold is higher for exploitation, layman can not left-hand seat the problem of.
In order to solve the problems such as learning cost that compilation operation logical code under prior art is present is big, the application The method of offer, before developer's exploitation automatized script, in advance by the similar automation of script Instruction is polymerize, and the similar automation command altitude of polymerization is encapsulated, substantial amounts of automation command altitude A small amount of script function function is reduced to after encapsulation, the script function function of these height encapsulation is supplied to pin This developer compilation operation logic coding is used.Therefore, script developer only needs to grasp a small amount of height envelope The script function function of dress, a large amount of automations instruction without learning script offer, is patrolled in compilation operation When collecting coding, automation command function can be carried out by way of the script function function of encapsulation is with parameter Bring into, so as to greatly simplify the learning cost of script.In the specific implementation, can also be further The parametric form of the script function function of encapsulation is set to natural language form, for example, Chinese parametric form.
By taking AutoIt scripts as an example, the language provides more than 2000 automation instructions, by will be similar The script function function of 20 basic class is highly encapsulated after instruction polymerization, for example, the pin of graphics process class This power function, the script function function of file operation class, script function function, the IE of Office Excel classes Script function function of class etc..
In the present embodiment, using AutoIt scripting language's shell scripts, the automation of IE classes is instructed The form of the script function function formed after encapsulation can be:(" control identifies the mapping with control property to _ J_IE Set of relations file ", " control mark ", " action type ", " control value ", " page object mark "), wherein, _ J_IE is the function name of the IE class script function functions after encapsulation, the 3rd parameter " the operation class of the function The parameter value of type " is the specific automation instruction that Chinese form is expressed, for example, for the input frame in webpage Element, the parameter value of the parameter includes " input " this parameter value;, should for the button element in webpage The parameter value of parameter includes " click " this parameter value, and developer is in compilation operation logic coding, only Need to be grasped _ various Chinese the parameter values of J_IE functions and " action type ".
When the operation belongs to the operation to interface, the operation logic code include with interface The corresponding logical code of control.At present, script developer patrols for the operation compilation operation to interface , it is necessary to which assay surface source code to the control in interface to position during volume code;This processing mode, Need developer to grasp interface development language, and need artificial progress control positioning;Therefore, prior art Under interface control is positioned, have that learning cost is huge, threshold is higher for exploitation, layman can not The problem of enough left-hand seats and easy alignment error.
In order to solve under prior art to interface control positioning exist learning cost it is huge and it is easy error etc. ask Topic, the method that the application is provided, before developer's compilation operation logical code, is firstly generated in interface Mapping relations between the control mark and control property of each control, i.e., described mapping relations collection.Exploit person Member, can be directly to the control in mapping relations when the control in for interface writes corresponding logic coding Part is operated, it is to avoid control is positioned by resolution interface source code, has both been simplified interface control and has been determined Position the step of do not allow again it is error-prone, and without developer study interface development language.
Fig. 3 is refer to, it is the generation interface control of the embodiment of the generation method of the automatized script of the application Script logic code flow chart.In the specific implementation, the logic generation corresponding with control in interface Code, can be using following steps generation:
Step S201:According to the control mark and control for identifying and previously generating for the default control of the control Mapping relations collection between part attribute, obtains the control type attribute of the control;And, according to the boundary Interface type belonging to face, it is determined that the script function function encapsulated in advance corresponding with the interface.
The control mark of the control is set when generating the mapping relations collection by script developer, After mapping relations collection generation, when developer needs to position control, without checking interface Source code, it is only necessary to specify control mark, you can according between the control mark and control property previously generated Mapping relations collection, obtains the control type attribute of control.
The control type attribute refers to, the attribute of control type is identified, for example, html web page element <input>Element (i.e. control) type be text types.
Mapping relations collection between the control mark previously generated and control property includes:In the interface Mapping relations between the control mark of each control and the control property.
, it is necessary to which the mapping firstly generated between the control mark and control property is closed before this step is implemented Assembly.Fig. 4 is refer to, it is closed for the generation mapping of the embodiment of the generation method of the automatized script of the application The flow chart of assembly.In the present embodiment, the mapping relations collection can be using following steps generation:
Step S301:By default control gripping tool, control and control property that interface includes are obtained.
The control and the process of control property included by control gripping tool acquisition interface, it may include following step Suddenly:1) by the application programming interfaces (such as WINapi) of operating system, the control at current mouse position is obtained Part handle (for example, for each control in the interface, mouse can be moved to the top of the control); 2) control object according to the control handle acquiring at current mouse position;3) according to the control Control described in object acquisition at current mouse position;4) control at the reading current mouse position is each Individual attribute.
Step S303:For each control setting control mark got.
Grab control that interface includes and get after each attribute of control, in addition it is also necessary to set for control Control is identified, and developer directly can be positioned by control mark to interface control, for example, can be by log in page The control of this control (the control name property value of such as control is username) of account name input frame in face Mark is set to developer and holds catchy " trade name ".
Step S305:Identified according to the control of setting, form control mark and the control of each control The mapping relations of each control are formed the mapping relations collection by the mapping relations between part attribute.
The control mark of control, control property are formed between the control mark of control and control property Mapping relations, the mapping relations of each control constitute the mapping relations collection.
In the specific implementation, mapping relations collection can be stored in database, for developer's orient control With.Developer directly can operate to the control in the mapping relations that previously generate, simplify parsing The step of source code.
So far, by step S301 to step S305, the generation mapping relations collection provided the present embodiment Embodiment be described in detail.
This step S201 also needs to the interface type according to belonging to interface, it is determined that corresponding with the interface advance The script function function of encapsulation.For example, the interface type belonging to webpage is IE classes interface, the IE classes interface pair The script function function answered can be _ J_IE.
Get the control type attribute of the control and determine the pin encapsulated in advance corresponding with the interface After this power function, it is possible to enter next step according to the control type attribute and the script determined Power function, is retrieved as the default action of the control type.
Step S203:According to the control type attribute and the script function function determined, institute is retrieved as State the default action of control type.
The action refers to the operation carried out to the control, for example, control type attribute is text types, Script function function is _ J_IE, then action includes the action such as " input ", " deletion ".
In order to simplify the step of writing logical code corresponding with control, the encapsulation person of the script function function Acquiescence corresponding with control type is specified when encapsulating script function function for each script function function to move Make.The control type attribute obtained according to previous step and the script function function determined, you can It is retrieved as the default action of the control type.For example, control type attribute is text types, script function Function is _ J_IE, then deliberate action can be " input " action.
Step S205:By control mark, the mapping relations collection, obtain it is described it is default action, The interface identification at the interface forms the control with interface as the parameter of the script function function Corresponding logical code.
This step identifies the control, the mapping relations collection, obtain it is described it is default action, it is described The interface identification at interface forms described corresponding with the control in interface as the parameter of the script function function Logical code.For example, the logical code of the account name input frame control generation included for login page can be with For:_ J_IE (" control identifies the mapping relations collection file with control property ", " account name ", " input ", " Three ", $ ie).
So far, by step S201 to step S205, what the present embodiment was provided generates for the control in interface The embodiment of corresponding logical code is described in detail.
Below by taking the logon operation of login page as an example, the method generation provided using the embodiment of the present application is provided Operation logic code, the effect that is reached of method provided with explanation application the embodiment of the present application directly perceived.It is raw Into operation logic code it is as follows:
Local $ ie=J_IE_Create (" www.taobao.com/login.html ")
Local $ res1=J_IE (" login ", " logging in input frame ", " input ", " Zhang San ", $ ie)
Local $ res2=J_IE (" login ", " Password Input frame ", " simulation input ", " abbk35kd ", $ ie)
Local $ res3=J_IE (" login ", " login button ", " click ", " ", $ ie)
Above-mentioned code J_IE_Create (" www.taobao.com/login.html "), for a newly-built IE window and beats The www.taobao.com/login.html pages are opened, entitled $ ie local variable is stated, loads this new The object of browser is created, i.e. $ ie are used to represent the page object;Above-mentioned code J_IE (" login ", " logs in Input frame ", " input ", " Zhang San ", $ ie) corresponding account name common input operation, successfully return to 1, unsuccessfully return Return 0;Above-mentioned code J_IE (" login ", " Password Input frame ", " simulation input ", " abbk35kd ", $ ie) simulates mouse Mark keyboard is operated, and is successfully returned to 1, is unsuccessfully returned to 0;Above-mentioned code J_IE (" login ", " login button ", " click ", " ", ie) the common click push-botton operation of correspondence, because button control does not need input data, value Parameter is represented to input with " ", is successfully returned to 1, is unsuccessfully returned to 0.
Step S103:Obtain the interface configurations parameter of generation user interface institute foundation.
The user interface refers to, for users to use, the interface run for auto-control script.By Generated in the user interface of the application according to user interface templates and interface configurations parameter, therefore, in generation certainly Also need to obtain interface configurations parameter during dynamicization script.
The interface configurations parameter includes but is not limited to:For each operational factor mark for controlling script to run The attribute-name of (such as operational factor name) and operation object.
, it is necessary to be first UI Preferences interface configurations parameter by script developer before this step is implemented. Script developer is provided with after interface configurations parameter, and interface configurations parameter is submitted to and performs the application's The executor of the generation method of automatized script.The executor gets the operation logic code and described After interface configurations parameter, you can it is the operation generation automatized script to enter next step.
Step S105:According to the operation logic code, the interface configurations parameter and the user developed in advance Interface template, is the operation generation automatized script of the automatized script to be generated.
Get after operation logic code and interface configurations parameter, joined according to operation logic code and interface configurations Number, and the user interface templates developed in advance, you can for the operation generation automatized script.
In the specific implementation, operation logic code and interface configurations parameter are generally stored inside in script server, User interface templates are typically included in mobile client or desktop computer client.
Under the prior art, patrolled for the write operation of the automation instruction directly provided according to script Volume code, only grasps specializing in personnel and being adjusted to automatized script for these automation instructions Examination.Therefore, automatized script is debugged under prior art, there is that workload is larger and debugging difficulty is higher asks Topic.
In order to reduce the workload and reduction debugging difficulty of script debugging, the method that the application is provided, according to fortune The exception that script function function is dished out during row automatized script, is debugged to automatized script.
In the specific implementation, the script function function of the height encapsulation provided for script developer can be carried Decision-making function, can be alarmed to developer by way of throw exception if function performs failure, dished out Specific abnormal information can as debugging tutorial message, instruct developer to modify automatized script. Using this processing mode, the implementation procedure of script is both the process of debugging code, therefore, it is possible to reach nothing The effect that personnel can be debugged to script need to be specialized in.
It is corresponding in the above-described embodiment there is provided a kind of generation method of automatized script, The application also provides a kind of generating means of automatized script.The device is relative with the embodiment of the above method Should.
Fig. 5 is refer to, it is the schematic diagram of the embodiment of the generating means of the automatized script of the application.Due to Device embodiment is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Device embodiment described below is only schematical.
A kind of generating means of the automatized script of the present embodiment, including:Operation logic Code obtaining unit 101, The operation logic code that operation for being retrieved as automatized script to be generated is write;Interface configurations parameter acquiring Unit 103, the interface configurations parameter for obtaining generation user interface institute foundation;Automatized script generation unit 105, for according to the operation logic code, the interface configurations parameter and the user interface mould developed in advance Plate, is the operation generation automatized script of the automatized script to be generated.
Fig. 6 is refer to, it is the specific schematic diagram of the embodiment of the generating means of the automatized script of the application. Optionally, the operation of the automatized script to be generated includes interface operation;The operation logic code includes Logical code corresponding with the control in interface;Described device also includes:
Control logical code generation unit 201, for generating the logic generation corresponding with the control in interface Code;
The control logical code generation unit 201, including:
Control type attribute obtains subelement, for according to for the default control mark of the control and in advance Mapping relations collection between the control mark and control property of generation, obtains the control type attribute of the control;
Script function function determination subelement, for the interface type according to belonging to the interface, it is determined that and institute State the corresponding script function function encapsulated in advance in interface;
Action obtains subelement, for the script function function according to the control type attribute and determination, It is retrieved as the default action of the control type;
Control logical code generate subelement, for by control mark, the mapping relations collection, acquisition It is described it is default action, the interface interface identification be used as the script function function parameter, formed The logical code corresponding with control in interface.
Optionally, in addition to:
Mapping relations collection generation unit 203, for generating the mapping relations collection;
The mapping relations collection generation unit 203, including:
Control and control property obtain subelement 2031, for by default control gripping tool, obtaining boundary Control and control property that face includes;
Control mark sets subelement 2033, for each control setting control mark to get;
Mapping relations collection generates subelement 2035, for being identified according to the control of setting, forms each control Mapping relations between the control mark and control property of part, by the mapping relations shape of each control Into the mapping relations collection.
Optionally, the control and control property obtain subelement 2031, including:
Handle acquiring subelement, for the application programming interfaces by operating system, obtains current mouse position The control handle at place;
Object acquisition subelement, for the control according to the control handle acquiring at current mouse position Object;
Control obtains subelement, for obtaining the control at the current mouse position according to the control object;
Attribute obtains subelement, each attribute for reading the control at the current mouse position.
Fig. 7 is refer to, it is the schematic diagram of a kind of electronic equipment embodiment of the application.Due to apparatus embodiments Embodiment of the method is substantially similar to, so describing fairly simple, referring to the portion of embodiment of the method in place of correlation Defend oneself bright.Apparatus embodiments described below are only schematical.
The a kind of electronic equipment of the present embodiment, the electronic equipment includes:Display 101;Processor 102;With And memory 103, the program of the generation method of automatized script is realized for storage, the equipment is powered and passed through The processor is run after the program of the generation method of the automatized script, performs following step:It is retrieved as treating The operation logic code that the operation of generation automatized script is write;Obtain the interface of generation user interface institute foundation Configuration parameter;According to the operation logic code, the interface configurations parameter and the user interface developed in advance Template, is the operation generation automatized script of the automatized script to be generated.
The generation method for the automatized script that the application is provided, compilation operation logic generation is being operated for repeatability Code and set after interface configurations parameter, develop according to operation logic code, interface configurations parameter and in advance User interface templates, generate the automatized script of the operation.The life of the automatized script provided using the application Into method, when developing automatized script, it is only necessary to be UI Preferences interface configurations parameter, without exploitation User interface in itself, simplifies the development process of automatized script, it is necessary to which the code write is greatly reduced; Therefore, the generation method for the automatized script that the application is provided, can effectively reduce development amount, liberation Developer, lifting efficiency of research and development.
Generation method with above-mentioned automatized script is corresponding, and the application also provides a kind of automatized script Operation method.Fig. 8 is refer to, a kind of operation method embodiment of its automatized script provided for the application Flow chart, the present embodiment is repeated no more with first embodiment content identical part, is referred in embodiment one Appropriate section.A kind of operation method for automatized script that the application is provided includes:
Step S101:Obtain the interface configurations parameter of the user interface of automatized script to be run;And, obtain Take user interface templates.
The interface configurations parameter includes but is not limited to:For controlling each operational factor that script is run to identify, Attribute-name, the script function mark of the object to be operated.
Usual and automatized script the operation logic code of interface configurations parameter is together stored in script server In, the step of the interface configurations parameter for the user interface for obtaining automatized script to be run, it is specifically as follows: First, the interface configurations parameter request of the correspondence automatized script to be run is sent to script server;Clothes Business device termination is received after interface configurations parameter request, and interface configurations parameter is returned to requesting party;Requesting party receives The interface configurations parameter returned to server.
Implement the operation method of the automatized script of the application offer, in addition it is also necessary to obtain user interface templates. User interface templates are typically included in mobile client or desktop computer client, can be obtained when starting client Get user interface templates.
Step S103:According to the interface configurations parameter and the user interface templates, user circle is generated Face.
Get after the interface configurations parameter and user interface templates, you can joined according to the interface configurations Number and the user interface templates, generation for users to use, for auto-control script operation described in User interface.
In the specific implementation, each interface configurations parameter can be filled into the correspondence position of user interface templates Place." parameter configuration " part display in Fig. 2 in above-described embodiment one, the user interface of generation " prosperous binding information ", " picture path ", " sending delay ", " transmission types " belong to operational factor name; " the prosperous title ", " transmission state " of the display of " data list " part etc. is the attribute-name of operation object;" hold Row operation " part display " binding Wang Wang ", the button such as " transmission picture " have selected wscript.exe to include Executive button corresponding to each Function Identification.
Step S105:By registered in advance for obtaining script operation related data in the user interface Component, extracts operational parameter data and object set to be operated from the user interface.
The component for being used to obtain script operation related data in the user interface registered in advance, is used for Operational parameter data and object set to be operated are extracted from the user interface.
After generation user interface, user can be added object to be operated by the interface, set operational factor The operation such as property value.When user clicks on the executive button of some Function Identification, pass through institute registered in advance State component, you can extract operational parameter data (i.e. from the user interface:The parameter name of operational factor and Parameter value) and object set to be operated.
For example, automatized script to be run is the automatized script that commodity restocking is operated, obtained by the component The object to be operated got includes multiple commodity for treating restocking.
The component is used, it is necessary to first by the component register before the method that the application is provided is performed Into the operating system.
The operating system includes:Windows or non-Windows.If the operating system , then can be by com component mode, by the component register to the window-operating for Windows In system;, can be by configuration file mode if the operating system is non-Windows, will The component register is into the non-Windows.
Step S107:The automatized script is run according to the operational parameter data, to described to be operated right Handled as collecting each object to be operated included.
Got by the establishment after operational parameter data and object set to be operated, according to operational parameter data The executive mode of automatized script can be controlled, and by performing automatized script, wait to grasp to described Each object to be operated included as object set is handled.
It is corresponding in the above-described embodiment there is provided a kind of operation method of automatized script, The application also provides a kind of running gear of automatized script.The device is relative with the embodiment of the above method Should.
Fig. 9 is refer to, it is the schematic diagram of the running gear embodiment of the automatized script of the application.Due to dress Put embodiment and be substantially similar to embodiment of the method, so describing fairly simple, related part is real referring to method Apply the part explanation of example.Device embodiment described below is only schematical.
A kind of running gear of the automatized script of the present embodiment, including:Interface configurations parameter acquiring unit 101, For the interface configurations parameter for the user interface for obtaining automatized script to be run;User interface templates obtain single Member 103, for obtaining user interface templates;User interface generation unit 105, for being matched somebody with somebody according to the interface Parameter and the user interface templates are put, the user interface is generated;Script runs related data acquiring unit 107, for being used to obtain the component that script in the user interface runs related data by registered in advance, Operational parameter data and object set to be operated are extracted from the user interface;Automatized script execution unit 109, for running the automatized script according to the operational parameter data, to the object set bag to be operated Each object to be operated included is handled.
Optionally, in addition to:
Component register unit, for by the component register into the operating system.
Figure 10 is refer to, it is the schematic diagram of the another electronic equipment embodiment of the application.Because equipment is implemented Example is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method Part illustrates.Apparatus embodiments described below are only schematical.
Another electronic equipment of the present embodiment, the electronic equipment includes:Display 101;Processor 102; And memory 103, the program of the operation method of automatized script is realized for storage, the equipment is powered and led to After the program for crossing the operation method that the processor runs the automatized script, following step is performed:Acquisition is treated Run the interface configurations parameter of the user interface of automatized script;And, obtain user interface templates;According to The interface configurations parameter and the user interface templates, generate the user interface;By registered in advance The component of related data is run for obtaining script in the user interface, fortune is extracted from the user interface Row supplemental characteristic and object set to be operated;The automatized script is run according to the operational parameter data, it is right Each object to be operated that the object set to be operated includes is handled.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, Ren Heben Art personnel are not being departed from spirit and scope, can make possible variation and modification, Therefore the scope that the protection domain of the application should be defined by the application claim is defined.
In a typical configuration, computing device includes one or more processors (CPU), input/output Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM). Internal memory is the example of computer-readable medium.
1st, computer-readable medium include permanent and non-permanent, removable and non-removable media can be by Any method or technique come realize information store.Information can be computer-readable instruction, data structure, journey The module of sequence or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable is read-only deposits Reservoir (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be set available for storage by calculating The standby information accessed.Defined according to herein, computer-readable medium does not include non-temporary computer-readable matchmaker The data-signal and carrier wave of body (transitory media), such as modulation.
2nd, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer Program product.Therefore, the application can use complete hardware embodiment, complete software embodiment or combine software With the form of the embodiment of hardware aspect.Moreover, the application can be used wherein includes meter one or more Calculation machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.

Claims (23)

1. a kind of generation method of automatized script, it is characterised in that including:
It is retrieved as the operation logic code that the operation of automatized script to be generated is write;
Obtain the interface configurations parameter of generation user interface institute foundation;
According to the operation logic code, the interface configurations parameter and the user interface templates developed in advance, Automatized script is generated for the operation of the automatized script to be generated.
2. the generation method of automatized script according to claim 1, it is characterised in that
The operation of the automatized script to be generated includes interface operation;
The operation logic code includes logical code corresponding with the control in interface;
The logical code corresponding with control in interface, is generated using following steps:
Belong to according to for the control mark that the default control of the control is identified and previously generated with control Property between mapping relations collection, obtain the control type attribute of the control;And, according to described Interface type belonging to interface, it is determined that the script function function encapsulated in advance corresponding with the interface;
According to the control type attribute and the script function function determined, the control is retrieved as The default action of part type;
By control mark, the mapping relations collection, obtain it is described it is default action, it is described The interface identification at interface forms the control with interface as the parameter of the script function function The corresponding logical code of part.
3. the generation method of automatized script according to claim 2, it is characterised in that the script The parametric form of power function includes natural language form.
4. the generation method of automatized script according to claim 2, it is characterised in that the mapping Set of relations is generated using following steps:
By default control gripping tool, control and control property that interface includes are obtained;
For each control setting control mark got;
Identified, formed between the control mark of each control and control property according to the control of setting Mapping relations, the mapping relations of each control are formed into the mapping relations collection.
5. the generation method of automatized script according to claim 4, it is characterised in that described to pass through Default control gripping tool, the step of obtaining the control and control property that interface includes, including:
By the application programming interfaces of operating system, the control handle at current mouse position is obtained;
Control object according to the control handle acquiring at current mouse position;
According to the control object, the control at the current mouse position is obtained;
Read each attribute of the control at the current mouse position.
6. the generation method of automatized script according to claim 2, it is characterised in that the interface Affiliated interface type includes type of webpage or window type.
7. the generation method of automatized script according to claim 1, it is characterised in that the operation Logical code includes the logical code write according to the script function function encapsulated in advance.
8. the generation method of automatized script according to claim 7, it is characterised in that described advance The parametric form of the script function function of encapsulation includes natural language form.
9. the generation method of automatized script according to claim 7, it is characterised in that also include:
According to the exception that the script function function encapsulated in advance is dished out when running the automatized script, adjust Try the automatized script.
10. a kind of generating means of automatized script, it is characterised in that including:
Operation logic Code obtaining unit, the operation that the operation for being retrieved as automatized script to be generated is write Logical code;
Interface configurations parameter acquiring unit, the interface configurations parameter for obtaining generation user interface institute foundation;
Automatized script generation unit, for according to the operation logic code, the interface configurations parameter and The user interface templates developed in advance, are the operation generation automatized script of the automatized script to be generated.
11. the generating means of automatized script according to claim 10, it is characterised in that described to treat Generating the operation of automatized script includes interface operation;The operation logic code includes and the control in interface Corresponding logical code;Described device also includes:
Control logical code generation unit, for generating the logical code corresponding with the control in interface;
The control logical code generation unit, including:
Control type attribute obtains subelement, for according to for the default control mark of the control and in advance Mapping relations collection between the control mark and control property of generation, obtains the control type attribute of the control;
Script function function determination subelement, for the interface type according to belonging to the interface, it is determined that and institute State the corresponding script function function encapsulated in advance in interface;
Action obtains subelement, for the script function function according to the control type attribute and determination, It is retrieved as the default action of the control type;
Control logical code generate subelement, for by control mark, the mapping relations collection, acquisition It is described it is default action, the interface interface identification be used as the script function function parameter, formed The logical code corresponding with control in interface.
12. the generating means of automatized script according to claim 11, it is characterised in that also include:
Mapping relations collection generation unit, for generating the mapping relations collection;
The mapping relations collection generation unit, including:
Control and control property obtain subelement, for by default control gripping tool, obtaining interface bag The control and control property included;
Control mark sets subelement, for each control setting control mark to get;
Mapping relations collection generates subelement, for being identified according to the control of setting, forms each control Mapping relations between the control mark and control property, by the mapping relations formation institute of each control State mapping relations collection.
13. the generating means of automatized script according to claim 12, it is characterised in that the control Part and control property obtain subelement, including:
Handle acquiring subelement, for the application programming interfaces by operating system, obtains current mouse position The control handle at place;
Object acquisition subelement, for the control according to the control handle acquiring at current mouse position Object;
Control obtains subelement, for obtaining the control at the current mouse position according to the control object;
Attribute obtains subelement, each attribute for reading the control at the current mouse position.
14. a kind of electronic equipment, it is characterised in that including:
Display;
Processor;And
Memory, the program for storing the generation method for realizing automatized script, equipment is powered and passed through The processor is run after the program of the generation method of the automatized script, performs following step:It is retrieved as treating The operation logic code that the operation of generation automatized script is write;Obtain the interface of generation user interface institute foundation Configuration parameter;According to the operation logic code, the interface configurations parameter and the user interface developed in advance Template, is the operation generation automatized script of the automatized script to be generated.
15. a kind of operation method of automatized script, it is characterised in that including:
Obtain the interface configurations parameter of the user interface of automatized script to be run;And, obtain user interface Template;
According to the interface configurations parameter and the user interface templates, the user interface is generated;
By the component for being used to obtain script operation related data in the user interface registered in advance, from institute State and operational parameter data and object set to be operated are extracted in user interface;
The automatized script is run according to the operational parameter data, the object set to be operated is included Each object to be operated is handled.
16. the operation method of automatized script according to claim 15, it is characterised in that described Before extracting operational parameter data and data set to be operated from the user interface, in addition to:
By the component register into the operating system.
17. the operation method of automatized script according to claim 16, it is characterised in that the behaviour Include as system:Windows or non-Windows.
18. the operation method of automatized script according to claim 16, it is characterised in that the behaviour It is Windows as system;It is described by the component register into the operating system, using such as lower section Formula:
By com component mode, by the component register into the Windows.
19. the operation method of automatized script according to claim 16, it is characterised in that the behaviour It is non-Windows as system;It is described by the component register into the operating system, using as follows Mode:
By configuration file mode, by the component register into the non-Windows.
20. the operation method of automatized script according to claim 15, it is characterised in that the boundary Face configuration parameter includes operational factor mark, the attribute-name of the object to be operated, script function and identified.
21. a kind of running gear of automatized script, it is characterised in that including:
Interface configurations parameter acquiring unit, matches somebody with somebody for obtaining the interface of user interface of automatized script to be run Put parameter;
User interface templates acquiring unit, for obtaining user interface templates;
User interface generation unit, it is raw for according to the interface configurations parameter and the user interface templates Into the user interface;
Script runs related data acquiring unit, for being used to obtain the user interface by registered in advance Middle script runs the component of related data, operational parameter data is extracted from the user interface and to be operated right As collection;
Automatized script execution unit, for running the automatized script according to the operational parameter data, Each object to be operated that the object set to be operated includes is handled.
22. the running gear of automatized script according to claim 15, it is characterised in that also include:
Component register unit, for by the component register into the operating system.
23. a kind of electronic equipment, it is characterised in that including:
Display;
Processor;And
Memory, the program for storing the operation method for realizing automatized script, equipment is powered and passed through The processor is run after the program of the operation method of the automatized script, performs following step:Obtain to be shipped The interface configurations parameter of the user interface of row automatized script;And, obtain user interface templates;According to institute Interface configurations parameter and the user interface templates are stated, the user interface is generated;Pass through use registered in advance In the component for obtaining script operation related data in the user interface, operation is extracted from the user interface Supplemental characteristic and object set to be operated;The automatized script is run according to the operational parameter data, to institute Each object to be operated that stating object set to be operated includes is handled.
CN201610228789.5A 2016-04-13 2016-04-13 Automatic script generation method and device and electronic equipment Active CN107291438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610228789.5A CN107291438B (en) 2016-04-13 2016-04-13 Automatic script generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610228789.5A CN107291438B (en) 2016-04-13 2016-04-13 Automatic script generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107291438A true CN107291438A (en) 2017-10-24
CN107291438B CN107291438B (en) 2021-09-24

Family

ID=60093831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610228789.5A Active CN107291438B (en) 2016-04-13 2016-04-13 Automatic script generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107291438B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170809A (en) * 2017-12-28 2018-06-15 平安科技(深圳)有限公司 Build table scenario generation method, device, equipment and computer readable storage medium
CN108170415A (en) * 2017-12-21 2018-06-15 博康智能信息技术有限公司 A kind of light-duty applications program creation method based on configurable control
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108536492A (en) * 2018-04-08 2018-09-14 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room attribute information acquiring method, device, equipment and storage medium
CN108595656A (en) * 2018-04-28 2018-09-28 宁波银行股份有限公司 A kind of processing method and system of data
CN108710489A (en) * 2018-05-23 2018-10-26 中国平安人寿保险股份有限公司 Automate derivative scenario generation method, device, computer equipment
CN109101231A (en) * 2018-08-07 2018-12-28 百度在线网络技术(北京)有限公司 Scripted code generation method, device, computer equipment and storage medium
CN109542539A (en) * 2018-11-22 2019-03-29 郑州云海信息技术有限公司 The method and system of script argument in a kind of configuration Web system
CN109542553A (en) * 2018-10-26 2019-03-29 北京慧流科技有限公司 The information extraction method and device and storage medium of user interface UI element
CN109901828A (en) * 2017-12-09 2019-06-18 英业达科技有限公司 To operate the system and method for the automatized script of snapshot editor other devices
CN109918069A (en) * 2019-01-16 2019-06-21 浙江蓝卓工业互联网信息技术有限公司 Interactive interface generation method and system applied to industry internet
CN110308897A (en) * 2019-06-28 2019-10-08 高斯贝尔数码科技股份有限公司 A kind of script formulation method for infrared remote control
CN110825369A (en) * 2019-11-07 2020-02-21 四川长虹电器股份有限公司 Method for automatically generating codes based on java language
CN111104154A (en) * 2018-10-25 2020-05-05 长沙博为软件技术股份有限公司 Method for realizing script function extension and customization of big data acquisition system based on data processing service
CN111142735A (en) * 2019-12-10 2020-05-12 深圳市优必选科技股份有限公司 Software page creating method and device, terminal equipment and storage medium
CN112947920A (en) * 2019-12-11 2021-06-11 韩国斯诺有限公司 Script generation method and system for camera effect
CN113971059A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Method, device, equipment and storage medium for recovering equipment connection state
CN115617322A (en) * 2022-09-29 2023-01-17 联通智网科技股份有限公司 Customized script running method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876895A (en) * 2009-04-28 2010-11-03 中国科学院计算技术研究所 Package integrated method of application software under grid computing environment
CN102402628A (en) * 2010-09-07 2012-04-04 无锡中星微电子有限公司 Method and system for generating systems-on-a-chip (SoC) verification platform
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN104252413A (en) * 2013-06-27 2014-12-31 阿里巴巴集团控股有限公司 Automatic script generation method, device and system
CN104317590A (en) * 2014-10-22 2015-01-28 中国建设银行股份有限公司 Embedded configuration system and embedded review process configuration method
CN104423948A (en) * 2013-09-02 2015-03-18 阿里巴巴集团控股有限公司 Automatic script operation method and device
US9754303B1 (en) * 2013-10-03 2017-09-05 Ca, Inc. Service offering templates for user interface customization in CITS delivery containers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876895A (en) * 2009-04-28 2010-11-03 中国科学院计算技术研究所 Package integrated method of application software under grid computing environment
CN102402628A (en) * 2010-09-07 2012-04-04 无锡中星微电子有限公司 Method and system for generating systems-on-a-chip (SoC) verification platform
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN104252413A (en) * 2013-06-27 2014-12-31 阿里巴巴集团控股有限公司 Automatic script generation method, device and system
CN104423948A (en) * 2013-09-02 2015-03-18 阿里巴巴集团控股有限公司 Automatic script operation method and device
US9754303B1 (en) * 2013-10-03 2017-09-05 Ca, Inc. Service offering templates for user interface customization in CITS delivery containers
CN104317590A (en) * 2014-10-22 2015-01-28 中国建设银行股份有限公司 Embedded configuration system and embedded review process configuration method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VAHID GAROUSI 等: ""Developing, Verifying, and Maintaining High-Quality Automated Test Scripts"", 《IEEE SOFTWARE》 *
高佳林: ""针对linux服务器交互式自动化脚本实现与研究"", 《电子世界》 *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901828A (en) * 2017-12-09 2019-06-18 英业达科技有限公司 To operate the system and method for the automatized script of snapshot editor other devices
CN108170415A (en) * 2017-12-21 2018-06-15 博康智能信息技术有限公司 A kind of light-duty applications program creation method based on configurable control
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108170809B (en) * 2017-12-28 2020-11-03 平安科技(深圳)有限公司 Table building script generation method, device, equipment and computer readable storage medium
CN108170809A (en) * 2017-12-28 2018-06-15 平安科技(深圳)有限公司 Build table scenario generation method, device, equipment and computer readable storage medium
CN108536492A (en) * 2018-04-08 2018-09-14 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room attribute information acquiring method, device, equipment and storage medium
CN108536492B (en) * 2018-04-08 2021-09-07 武汉斗鱼网络科技有限公司 Method, device, equipment and storage medium for acquiring attribute information of live broadcast room
CN108595656A (en) * 2018-04-28 2018-09-28 宁波银行股份有限公司 A kind of processing method and system of data
CN108595656B (en) * 2018-04-28 2022-02-18 宁波银行股份有限公司 Data processing method and system
CN108710489A (en) * 2018-05-23 2018-10-26 中国平安人寿保险股份有限公司 Automate derivative scenario generation method, device, computer equipment
CN109101231A (en) * 2018-08-07 2018-12-28 百度在线网络技术(北京)有限公司 Scripted code generation method, device, computer equipment and storage medium
CN109101231B (en) * 2018-08-07 2022-09-23 百度在线网络技术(北京)有限公司 Script code generation method and device, computer equipment and storage medium
CN111104154A (en) * 2018-10-25 2020-05-05 长沙博为软件技术股份有限公司 Method for realizing script function extension and customization of big data acquisition system based on data processing service
CN109542553A (en) * 2018-10-26 2019-03-29 北京慧流科技有限公司 The information extraction method and device and storage medium of user interface UI element
CN109542539A (en) * 2018-11-22 2019-03-29 郑州云海信息技术有限公司 The method and system of script argument in a kind of configuration Web system
CN109918069A (en) * 2019-01-16 2019-06-21 浙江蓝卓工业互联网信息技术有限公司 Interactive interface generation method and system applied to industry internet
CN109918069B (en) * 2019-01-16 2022-07-05 浙江蓝卓工业互联网信息技术有限公司 Interactive interface generation method and system applied to industrial Internet
CN110308897A (en) * 2019-06-28 2019-10-08 高斯贝尔数码科技股份有限公司 A kind of script formulation method for infrared remote control
CN110825369A (en) * 2019-11-07 2020-02-21 四川长虹电器股份有限公司 Method for automatically generating codes based on java language
CN111142735A (en) * 2019-12-10 2020-05-12 深圳市优必选科技股份有限公司 Software page creating method and device, terminal equipment and storage medium
CN111142735B (en) * 2019-12-10 2021-06-29 深圳市优必选科技股份有限公司 Software page creating method and device, terminal equipment and storage medium
CN112947920A (en) * 2019-12-11 2021-06-11 韩国斯诺有限公司 Script generation method and system for camera effect
CN113971059A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Method, device, equipment and storage medium for recovering equipment connection state
CN115617322A (en) * 2022-09-29 2023-01-17 联通智网科技股份有限公司 Customized script running method and device

Also Published As

Publication number Publication date
CN107291438B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN107291438A (en) Generation method, device and the electronic equipment of automatized script
US11042472B2 (en) Authoring automated test suites using artificial intelligence
Leotta et al. Approaches and tools for automated end-to-end web testing
US10705892B2 (en) Automatically generating conversational services from a computing application
US11893364B2 (en) Accelerating application modernization
Burns et al. A dataset for interactive vision-language navigation with unknown command feasibility
JP7320033B2 (en) Quantum control pulse generation method, apparatus, electronic device, storage medium, and program
Deng et al. Testing web database applications
Rau et al. Transferring tests across web applications
Qasse et al. iContractBot: a chatbot for smart contracts’ specification and code generation
JP2022019524A (en) Modeling parameter configuration method, apparatus, device, computer storage medium, and computer program
Slavin et al. Managing security requirements patterns using feature diagram hierarchies
US20220100646A1 (en) Test script for application under test having abstracted action group instantiations
Tanida et al. Automated system testing of dynamic web applications
US11874763B2 (en) Unsupervised integration test builder
Hanika et al. The ucomp protégé plugin: Crowdsourcing enabled ontology engineering
Ricca et al. Web testware evolution
CN107404426A (en) The method, apparatus and electronic equipment of batch addition good friend in immediate communication tool
Nabuco et al. Inferring ui patterns with inductive logic programming
JP2023075780A (en) Program, information processing method, and information processing device
CN106815005A (en) The method and device of data processing model and data processing is built based on framework
Qian et al. Towards testing web applications: a PFSM-based approach
KR102655154B1 (en) The conceptnet auto-scaling method using artificial neural network model
Vo Developing a Vision Web Application Service
Kumar et al. Python's Role in Accelerating Web Application Development with Django

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
TR01 Transfer of patent right

Effective date of registration: 20211109

Address after: Room 507, floor 5, building 3, No. 969, Wenyi West Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Patentee after: ZHEJIANG TMALL TECHNOLOGY Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: ALIBABA GROUP HOLDING Ltd.

TR01 Transfer of patent right