CN101604286A - A kind of method for generating keyword-driving table - Google Patents

A kind of method for generating keyword-driving table Download PDF

Info

Publication number
CN101604286A
CN101604286A CNA2008100997880A CN200810099788A CN101604286A CN 101604286 A CN101604286 A CN 101604286A CN A2008100997880 A CNA2008100997880 A CN A2008100997880A CN 200810099788 A CN200810099788 A CN 200810099788A CN 101604286 A CN101604286 A CN 101604286A
Authority
CN
China
Prior art keywords
key word
keyword
driving table
script
parameter
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
CNA2008100997880A
Other languages
Chinese (zh)
Other versions
CN101604286B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100997880A priority Critical patent/CN101604286B/en
Publication of CN101604286A publication Critical patent/CN101604286A/en
Application granted granted Critical
Publication of CN101604286B publication Critical patent/CN101604286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of method for generating keyword-driving table, comprising: according to recording operation process automatic generating run process script and dynamic data; From described operating process script, extract key word, key word sign and parameter automatically according to the predefine rule; Make up described dynamic data and key word, key word sign and parameter and export keyword-driving table automatically; Further can also patterned mode being shown to the maintainer makes amendment.This method is recorded with script by operating process and is generated automatically, realization need not manual input can generate keyword-driving table automatically, improved design efficiency greatly, while realizes need not the automatic maintain keyword driving of manual input form in conjunction be shown to the maintainer in patterned mode, has also improved maintenance efficiency greatly, has made things convenient for the maintenance of maintainer to script.

Description

A kind of method for generating keyword-driving table
Technical field
The present invention relates to software design, be specifically related to a kind of method for generating keyword-driving table.
Background technology
A kind of key word driving method that is applied to GUI (Graphical User Interface graphical user interface) of industry employing at present, the core of solution is to use key word to drive thought, by maintainer's manual input key word in keyword-driving table, key word sign and parameter, the advantage of this method is, steering logic is separated with script, but the problem that exists is that keyword-driving table need be by the manual key word of importing item by item of maintainer in the prior art, key word sign and parameter, since existing key word driving method normally with an operational motion as minimum particle size record in form, when operating process loaded down with trivial details, when logic is complicated, each operating process of the artificial input of manual creation keyword-driving table, work efficiency is low, wastes time and energy; Keyword-driving table is safeguarded, when needs use different data to move, needed the frequent manual keyword-driving table of revising, cause maintenance process efficient low, keyword-driving table is easy care not.
Chinese invention patent application " a kind of construction method that is used for the central database of key word driving ", with the invention belongs to same technical field, it needn't revise navigation script by improving the navigation scheme of AW (key word), making when increasing AW newly, generates but do not relate to keyword-driving table.In addition, at software design stage, the recording and playback mode is generating run process script fast, but only simple use recording and playback is not enough.At first, also be most important reason, just be to use the recording and playback mode, often need to expend time in and resource debug, attended operation process script.These workloads will increase to the stage that may effectively safeguard script more hardly along with the increase of script quantity; Secondly, use the recording and playback mode that the operating process script that generates is safeguarded, require each script maintainer all can use the script programming, increased maintenance difficulties.
Summary of the invention
The technical issues that need to address of the present invention are how a kind of method for generating keyword-driving table is provided, and can generate keyword-driving table automatically.
Above-mentioned technical matters of the present invention solves like this, and a kind of method for generating keyword-driving table is provided, and may further comprise the steps:
1.1) according to recording operation process automatic generating run process script and dynamic data;
1.2) from described operating process script, extract key word, key word sign and parameter automatically according to the predefine rule;
1.3) combination described dynamic data and key word, key word sign and parameter export keyword-driving table automatically.
According to generation method provided by the invention, described step 1.1) in to record be to adopt to record the operational motion of windows messaging principle recording user to software; Described operating process script is the graphical interfaces script.
According to generation method provided by the invention, described step 1.1) in record and adopt third party's instrument with generating run process script or from developing instrument.
According to generation method provided by the invention, described step 1.2) in the predefine rule be in advance will key word to be extracted and key word identify and write described key word configuration file and in described automatic extraction, use; Described key word to be extracted and key word sign are predefined key word relevant with graphical interfaces interface GUI and key word sign.
According to generation method provided by the invention, the described key word relevant with graphical interfaces interface GUI comprises window title, control title, control actions and control index name, and it can be respectively Window/Browser, JavaTree/JavaPopupMenu, Click/MakeSelection/Expand/Right_Click and Index/Name that corresponding key word indicates.
According to generation method provided by the invention, described step 1.3) in automatically the output keyword-driving table comprise calling that errorlevel is created keyword-driving table automatically and keyword-driving table being carried out and write entry keyword, key word sign, parameter and dynamic data operation.
According to generation method provided by the invention, described errorlevel is arranged in the autoexec that sets in advance.
According to generation method provided by the invention, this method also comprises according to described keyword-driving table utilizes graphic user interface to generate the dynamic structure example.
According to generation method provided by the invention, described graphic user interface and operating system platform are irrelevant.
According to generation method provided by the invention, this method comprises that also the maintainer operates modification and changes described keyword-driving table automatically dynamic structure example described in the described graphic user interface.
A kind of method for generating keyword-driving table provided by the invention, the user only need be by recording operating process, with the robotization generation script, keyword-driving table need not manual input according to script and can generate automatically, improved design efficiency greatly, further, by being shown to the user, improved the script maintenance efficiency simultaneously, made things convenient for the maintenance of maintainer script in patterned mode because the dynamic structure example that maintenance work is based on graphic user interface is carried out.
Description of drawings
Fig. 1 is the realization block diagram of the method for designing and the system of a kind of keyword-driving table of the present invention;
Fig. 2 is the schematic flow sheet of method and system correspondence shown in Figure 1;
Fig. 3 is that the technology of method and system correspondence shown in Figure 1 realizes block diagram.
Embodiment
At first, inventive concept is described:
Record by script generation script is recorded in operation, by script rule definition and script, system will generate keyword-driving table automatically, again according to the key word in the keyword-driving table, key word sign and parameter, automatically generate the dynamic structure example at graphic user interface, show in patterned mode and be convenient to user's operation.
In second step, brief description committed step of the present invention comprises:
(1) script is recorded module according to the recording operation process, automatically generating run process script;
(2) the rule definition module extracts key word, key word sign and parameter according to predefined rule from the operating process script;
(3) control module is created keyword-driving table automatically, writes keyword-driving table after according to combined strategy key word, key word sign, parameter and dynamic data being made up;
(4) graphic user interface generates the dynamic structure example according to the key word in the keyword-driving table, key word sign, parameter and dynamic data.
Wherein: in the step (), described script is recorded module and is realized that operating process is recorded, the generation script function, preferably can use third party's instrument, and the Rational Robot automation tools of IBM Corporation realizes recording the generation script function; The further implication of predefined rule is meant in advance key word to be extracted, key word sign is write configuration file in the step (two); In the step (three), described automatic establishment keyword-driving table preferably can call autoexec and be implemented in the path of appointment and create keyword-driving table in program; The further implication of combined strategy is meant according to rule request key word, key word sign and parameter and dynamic data is made up; Keyword-driving table preferably can use the Office Excel form of Microsoft company.
At last, further describe in conjunction with the accompanying drawings and embodiments:
As shown in Figure 1, be used to realize that a kind of method for designing of keyword-driving table and the realization block diagram of system comprise: script is recorded module 103, comprising: record module and script generation module; Rule definition module 102; Control module 101 wherein comprises: key word, parameter and dynamic data, combined strategy, keyword-driving table; Graphic user interface 100.Wherein:
Script is recorded module 103, and it is to adopt to record the windows messaging principle and come operational motion (mouse, the keyboard) windows messaging of recording user to software that script is recorded module; Record script generation module in the module 103 by script, generating the graphical interfaces script is GUI (Graphical User Interface graphical user interface) script.Preferably, can use third party's instrument, the Rational Robot automation tools of IBM Corporation realizes recording the generation script function.
Rule definition module 102 extracts key word, key word sign and parameter according to predefined rule from the operating process script;
Control module 101, control module are created keyword-driving table automatically, write keyword-driving table according to combined strategy after with the combination of key word, key word sign and parameter and dynamic data;
Graphic user interface 100 generates the dynamic structure example according to the key word in the keyword-driving table, key word sign, parameter and dynamic data.
As shown in Figure 2, this method specifically comprises step:
200) script is recorded module according to the recording operation process, automatically generating run process script;
210) the rule definition module extracts key word, key word sign and parameter according to predefined rule from the operating process script;
220) control module is created keyword-driving table automatically, writes keyword-driving table after according to combined strategy key word, key word sign, parameter and dynamic data being made up;
230) graphic user interface generates the dynamic structure example according to the key word in the keyword-driving table, key word sign, parameter and dynamic data.Wherein:
In step 200) may further include following processing: it is to adopt to record the windows messaging principle and come operational motion (mouse, the keyboard) windows messaging of recording user to software that script is wherein recorded module; Record the generation script module of mould in determining by script, generating the graphical interfaces script is GUI (Graphical User Interface graphical user interface) script.Preferably, use third party's instrument, the Rational Robot automation tools of IBM Corporation is realized recording, the generation script function; Or develop corresponding instrument and realize the operating process recording function, generate type: the script of key word, key word sign and parameter.
In step 210) comprise following processing: the rule definition module extracts key word, key word sign and parameter according to predefined rule from the operating process script.Preferably, in advance the entry keyword configuration file write in key word and key word sign, compare with the key word and the key word sign of operating process script, according to the script file extracting rule, extract the key word consistent, key word sign and the pairing parameter of key word with the script comparative result.In addition, in the present invention, the key word configuration file content comprises: predefined key word relevant with GUI and key word sign; Preferably, key word comprises: window title, control title, control actions and control index name; The key word sign of corresponding above key word, the window title comprises: Window/Browser, control title comprise: JavaTree/JavaPopupMenu, control actions comprise: Click/MakeSelection/Expand/Right_Click, control index name comprise: Index/Name.
In step 220) comprise following processing: control module, create keyword-driving table automatically, write keyword-driving table according to combined strategy after with key word, key word sign, parameter and dynamic data combination; Preferably, control module is created keyword-driving table by carry out autoexec in the operating process script to be implemented under the specified path; Control module provides combined strategy, writes keyword-driving table line by line after according to rule request key word, key word sign and parameter and dynamic data being made up; The data that dynamically produce when wherein, dynamic data refers to record module recording operation process; In addition, in the present invention, preferably keyword-driving table can use the Office Excel form of Microsoft company.
In step 230) comprise following processing: graphic user interface generates the dynamic structure example according to the key word in the keyword-driving table, key word sign, parameter and dynamic data.Preferably, graphic user interface uses Java language to write, and utilizes the independence of Java language characteristics and platform, and graphic user interface can run on Microsoft windows operating system, also can move on (SuSE) Linux OS; Graphic user interface is set up corresponding dynamic structure example according to tactic key word, key word sign, parameter and dynamic data in the keyword-driving table, and the dynamic structure example is unit with the page; When needs use different data to move same keyword-driving table, revise the pairing parameter of keyword name of dynamic structure example graph demonstration, also corresponding modify of the parameter of this key word has made things convenient for the maintenance of maintainer to keyword-driving table in the corresponding keyword-driving table; Wherein, the dynamic structure example is dynamically to generate with graphical data presented according to keyword-driving table.
As shown in Figure 3, a kind of method for designing of keyword-driving table and system example comprise that specifically script records module 103, rule definition module 102, control module 101 and graphic user interface 100, wherein:
Script is recorded module 103 by recording operation process, generating run process script;
Rule definition module 102, compare according to the key word and the key word sign of predefined keyword rule key word configuration file and operating process script, according to the script file extracting rule, extract the key word consistent, key word sign and the pairing parameter of key word again with the script comparative result;
Control module 101 provides automatic establishment keyword-driving table function and combined strategy, writes keyword-driving table line by line after according to rule request key word, key word sign and parameter and dynamic data being made up; Wherein, key data comprises key word and the parameter extracted from the operating process script; Wherein, generate keyword-driving table, comprise calling that errorlevel is created keyword-driving table automatically and keyword-driving table being carried out and write entry keyword, key word sign, parameter and dynamic data operation;
Graphic user interface 100 is set up corresponding dynamic structure example according to tactic key word, key word sign, parameter and dynamic data in the keyword-driving table.
Method for designing and system by a kind of keyword-driving table provided by the invention, automatically create keyword-driving table after the recording operation process, graphic user interface generates the dynamic structure example according to the key word in the key table, key word sign and parameter, do not need to safeguard any script for the maintainer, saved the workload of script debugging, maintenance; And utilize the generation keyword-driving table that key word drive system provided by the invention can robotization, and because being based on the dynamic structure example of graphic user interface, maintenance work carries out, reduced the maintenance workload of script; Adopt unified interface operation mode to help user's operation, so the also indirect development teams of impelling is paid attention to the standardization at interface more in design, performance history.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of method for generating keyword-driving table is characterized in that, may further comprise the steps:
1.1) according to recording operation process automatic generating run process script and dynamic data;
1.2) from described operating process script, extract key word, key word sign and parameter automatically according to the predefine rule;
1.3) combination described dynamic data and key word, key word sign and parameter export keyword-driving table automatically.
2, according to the described generation method of claim 1, it is characterized in that described step 1.1) in to record be to adopt to record the operational motion of windows messaging principle recording user to software; Described operating process script is the graphical interfaces script.
3, according to claim 1 or 2 described generation methods, it is characterized in that described step 1.1) in record and adopt third party's instrument with generating run process script or from developing instrument.
4, according to the described generation method of claim 1, it is characterized in that described step 1.2) in the predefine rule be in advance will key word to be extracted and key word identify and write described key word configuration file and in described automatic extraction, use; Described key word to be extracted and key word sign are predefined and interface related key word of graphical interfaces and key word sign.
According to the described generation method of claim 4, it is characterized in that 5, the described and interface related key word of graphical interfaces comprises window title, control title, control actions and control index name.
6, according to the described generation method of claim 1, it is characterized in that described step 1.3) in automatically the output keyword-driving table comprise calling that errorlevel is created keyword-driving table automatically and keyword-driving table being carried out and write entry keyword, key word sign, parameter and dynamic data operation.
7, according to the described generation method of claim 6, it is characterized in that described errorlevel is arranged in the autoexec that sets in advance.
According to the described generation method of claim 1, it is characterized in that 8, this method also comprises according to described keyword-driving table utilizes graphic user interface to generate the dynamic structure example.
9, described according to Claim 8 generation method is characterized in that, described graphic user interface and operating system platform are irrelevant.
10, described according to Claim 8 generation method is characterized in that, this method comprises that also the maintainer operates modification and changes described keyword-driving table automatically dynamic structure example described in the described graphic user interface.
CN2008100997880A 2008-06-11 2008-06-11 Method for generating keyword-driving table Active CN101604286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100997880A CN101604286B (en) 2008-06-11 2008-06-11 Method for generating keyword-driving table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100997880A CN101604286B (en) 2008-06-11 2008-06-11 Method for generating keyword-driving table

Publications (2)

Publication Number Publication Date
CN101604286A true CN101604286A (en) 2009-12-16
CN101604286B CN101604286B (en) 2011-04-20

Family

ID=41470024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100997880A Active CN101604286B (en) 2008-06-11 2008-06-11 Method for generating keyword-driving table

Country Status (1)

Country Link
CN (1) CN101604286B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193782A (en) * 2010-03-01 2011-09-21 北京中企开源信息技术有限公司 Method for operating table model
CN103019721A (en) * 2012-12-14 2013-04-03 上海华勤通讯技术有限公司 Realization method for automated operation and mobile terminal
CN103853938A (en) * 2013-11-27 2014-06-11 上海丰核信息科技有限公司 High-throughput sequencing data processing and analysis flow control method
CN105512044A (en) * 2015-12-25 2016-04-20 北京奇虎科技有限公司 Method and system for updating object base used for keyword drive test
CN106815180A (en) * 2016-12-06 2017-06-09 武汉开目信息技术股份有限公司 A kind of method for being automatically obtained Altium software conversion of drawings
WO2018036530A1 (en) * 2016-08-26 2018-03-01 上海合福信息科技有限公司 Method for generating test design book
CN108459848A (en) * 2017-02-20 2018-08-28 深圳市北斗智研科技有限公司 A kind of script acquisition methods and system applied to Excel softwares

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004046310A (en) * 2002-07-09 2004-02-12 Hitachi Ltd Fault repair program application method, execution device of the same, and processing program of the same
CN100595756C (en) * 2005-10-24 2010-03-24 华为技术有限公司 Navigation method for keyword driving
CN100561444C (en) * 2006-11-15 2009-11-18 中兴通讯股份有限公司 A kind of automatic test approach and test macro thereof that drives based on key word

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193782A (en) * 2010-03-01 2011-09-21 北京中企开源信息技术有限公司 Method for operating table model
CN102193782B (en) * 2010-03-01 2014-04-09 北京中企开源信息技术有限公司 Method for operating table model
CN103019721A (en) * 2012-12-14 2013-04-03 上海华勤通讯技术有限公司 Realization method for automated operation and mobile terminal
CN103019721B (en) * 2012-12-14 2016-03-30 上海华勤通讯技术有限公司 The implementation method of automation mechanized operation and mobile terminal
CN103853938A (en) * 2013-11-27 2014-06-11 上海丰核信息科技有限公司 High-throughput sequencing data processing and analysis flow control method
CN103853938B (en) * 2013-11-27 2017-09-15 上海尔云信息科技有限公司 A kind of high-flux sequence data processing and inversion flow control method
CN105512044A (en) * 2015-12-25 2016-04-20 北京奇虎科技有限公司 Method and system for updating object base used for keyword drive test
CN105512044B (en) * 2015-12-25 2018-01-09 北京奇虎科技有限公司 Update method and system for the library of object of keyword driving test
WO2018036530A1 (en) * 2016-08-26 2018-03-01 上海合福信息科技有限公司 Method for generating test design book
CN106815180A (en) * 2016-12-06 2017-06-09 武汉开目信息技术股份有限公司 A kind of method for being automatically obtained Altium software conversion of drawings
CN108459848A (en) * 2017-02-20 2018-08-28 深圳市北斗智研科技有限公司 A kind of script acquisition methods and system applied to Excel softwares
CN108459848B (en) * 2017-02-20 2021-12-14 深圳市北斗智研科技有限公司 Script obtaining method and system applied to Excel software

Also Published As

Publication number Publication date
CN101604286B (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN101604286B (en) Method for generating keyword-driving table
CN102375731B (en) Coding-free integrated application platform system
CN102810057B (en) A kind of method of log
CN101477462A (en) Model-driven software development method used for dynamically changing system behavior
CN103383645A (en) Code generation method and system
CN102508669A (en) Automatic program code generating method
CN107357593A (en) Source code file construction method, device, electric terminal and readable storage medium storing program for executing
US20120158742A1 (en) Managing documents using weighted prevalence data for statements
CN102289513A (en) Method and system for obtaining internal files of virtual machine
CN103593456A (en) Form user-defined design method and device
CN102662651A (en) Generation method and generation modules for visual component
CN102446090B (en) Method and device for automatically generating test script
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
JP2022019524A (en) Modeling parameter configuration method, apparatus, device, computer storage medium, and computer program
Wenzel System description: Isabelle/jEdit in 2014
CN101706823B (en) Inquiry system and method of customized database
CN116048610A (en) Flow-driven conversation system implementation method and workflow engine-based conversation robot
CN104123155A (en) Business system page layer development platform and method based on WEB
CN113094039B (en) Automatic code generation system based on database table
CN100485687C (en) Method and device for set-up disconnection data programmed model and its application
EP3910877B1 (en) Evm-based transaction processing method and apparatus, device, program and medium
CN104598226A (en) Chart interaction design method based on Flex
KR20150060174A (en) Method of Automatic generation of source for business process automation
CN113204540A (en) Rule engine configuration method, device, equipment and storage medium
US8495033B2 (en) Data processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant