CN105700899A - Update method and device of man-machine command script - Google Patents

Update method and device of man-machine command script Download PDF

Info

Publication number
CN105700899A
CN105700899A CN201410691018.0A CN201410691018A CN105700899A CN 105700899 A CN105700899 A CN 105700899A CN 201410691018 A CN201410691018 A CN 201410691018A CN 105700899 A CN105700899 A CN 105700899A
Authority
CN
China
Prior art keywords
man
machine language
order
command
command history
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410691018.0A
Other languages
Chinese (zh)
Inventor
吕俊廷
谭晓松
刘晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201410691018.0A priority Critical patent/CN105700899A/en
Priority to PCT/CN2015/078701 priority patent/WO2016082474A1/en
Publication of CN105700899A publication Critical patent/CN105700899A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

The invention discloses an update method of a man-machine command script. The update method comprises the following steps: obtaining a first data dictionary through a first man-machine language command; comparing the first data dictionary with a second data dictionary corresponding to a second man-machine language command to obtain a difference man-machine language command set; according to the difference man-machine language command set, obtaining a man-machine language command update rule; and according to the man-machine language command update rule, updating the man-machine command script based on the second man-machine language. The invention also simultaneously discloses an update device of the man-machine command script.

Description

A kind of man-computer command script update method and device
Technical field
The present invention relates to man-computer command script technical field, particularly relate to a kind of man-computer command script update method and device。
Background technology
Realizing human computer conversation by man-machine language (Man-MachineLanguage, MML) order between people and smart machine, meanwhile, MML order is also the important foundation constituting Internet resources。
When the system of Internet resources or smart machine needs to update, MML order also can correspondingly be updated。Consider the factors such as the stability after updating, before MML order is thoroughly updated, it is necessary to the man-computer command script of Internet resources or system is tested。The MML order number comprised due to man-computer command script is huge, causes renewal work process length consuming time and the complexity of man-computer command script。
At present, adopt the method that man-computer command script is tested by the mode of batch MML order automatized script comparatively general, although the mode of batch MML order automatized script accelerates renewal and the maintenance of man-computer command script, but owing to the version of Internet resources often changes, and the quantity of MML order that man-computer command script comprises is too big, man-computer command script safeguard or the mode to batch MML order automatized script brings very big challenge。
Present stage common issue is that when the business of tested Internet resources or system there occurs variation, owing to Internet resources or MML order number corresponding to system are huge, the test script amendment of MML order or the process of renewal are excessively complicated, cause that the test script updating a large amount of MML order at short notice becomes cannot completing of task。Ensure when variation occurs in the business of tested Internet resources or system, revise the test script of the manmachine command of last time timely and accurately, being updated to the state meeting current test, existing method is mainly through improving the structure of automatic test script to solve the maintenance issues of MML order automatic test script。Existing large automatic test frame produces for solving problems, its development experience following several stages:
1. non-structured automated test frame: the script of data and MML order blends into one, article one, script is exactly a test case, this kind of script development rate is very fast, but maintenance cost is significantly high, and any change of tested Internet resources or system is required for by safeguarding that script solves。
2. the automated test frame of data-driven: read input data from data file, by the parametrization of variable, will test the incoming test script of data, the test case that different data files is corresponding different。Data separate with script in such a mode, and the utilization rate of script, maintainability are greatly improved, and the coverage rate of data is also higher, but are subject to the impact that interface changes still very greatly。
3. the automated test frame that keyword drives: keyword drives test to be that the one that data-driven is tested improves type, and test logic is decomposed by it according to keyword, forms data file, the service logic of keyword correspondence encapsulation。Primary key includes three classes: by operation object, operation and value。The main thought that keyword drives is: script separates with testing inner object name with data separating, interface element name, test description separates with implementing details。The automated test frame of data-driven in by effect of the interface, relatively data-driven and recording/replaying have obvious advantage, corresponding key object can be updated according to the change at interface, without again recording script。
Said method is the maintainability increasing man-computer command script by improving the structure of man-computer command script, and there are the following problems for this structurized script: one, the complexity of man-computer command script exploitation is greatly increased。Owing to carry out data separating and keyword encapsulation, this adds increased the technical difficulty of man-computer command script exploitation, extend the man-computer command script construction cycle;Two, there is bigger man-computer command script maintenance workload, need to spend a lot of time to the amendment of keyword after MML order change。
Summary of the invention
In view of this, embodiment of the present invention expectation provides a kind of man-computer command script update method and device, at least can solve the technical problems such as the renewal process of man-computer command script is excessively complicated。
The technical scheme of the embodiment of the present invention is achieved in that
Embodiments providing a kind of man-computer command script update method, described method includes:
The first data dictionary is obtained by the first machine language command;
The second corresponding to described first data dictionary and the second man-machine language order data dictionary is compared, obtains diversity man-machine language command history;Man-machine language order more new regulation is obtained according to described diversity man-machine language command history;
According to described man-machine language order more new regulation, the man-computer command script based on the second man-machine language order is updated。
In such scheme, described obtain the first data dictionary by the first machine language command and include:
Scanning comprises the tested system of the man-computer command script with the first machine language command, obtains the first machine language command;
By setting attribute, described the first machine language command is ranked up, obtains the first data dictionary。
In such scheme, described the second corresponding to described first data dictionary and the second man-machine language order data dictionary is compared, obtains diversity man-machine language command history and include:
In described first data dictionary first is set man-machine language order composition the first difference man-machine language command history;Described first sets man-machine language order can not find identical man-machine language order according to described setting attribute in described second data dictionary;
In described second data dictionary second is set man-machine language order composition the second difference man-machine language command history;Described second sets man-machine language order can not find identical man-machine language order according to described setting attribute in described first data dictionary;
Man-machine language command history and the second difference man-machine language command history composition diversity man-machine language command history is distinguished by described first。
In such scheme, described obtain man-machine language order more new regulation according to described diversity man-machine language command history and include:
Priority according to described setting attribute determines the update sequence of the man-machine language order of the described second difference man-machine language command history in described diversity man-machine language command history;
The more new direction of the man-machine language order distinguished in man-machine language command history determined to described second in keyword according to described setting attribute corresponding to described update sequence;
The man-machine language order belonging to described second difference man-machine language command history is updated to the corresponding man-machine language order belonging to described first difference man-machine language command history according to described more new direction, obtains belonging to the man-machine language order more new regulation of the man-machine language order of described second difference man-machine language command history。
In such scheme, described obtain man-machine language order more new regulation according to described diversity man-machine language command history and also include:
If the man-machine language order belonging to described second difference man-machine language command history cannot be updated to the man-machine language order belonging to described first difference man-machine language command history of correspondence according to described more new direction, then the man-machine language order belonging to described second difference man-machine language command history is preserved to the first machine language command。
The embodiment of the present invention additionally provides a kind of man-computer command script updating device, and described device includes:
First data dictionary acquiring unit, for obtaining the first data dictionary by the first machine language command;
Man-machine language order updates Rule unit, for being compared by the second corresponding to described first data dictionary and the second man-machine language order data dictionary, obtains diversity man-machine language command history;Man-machine language order more new regulation is obtained according to described diversity man-machine language command history;
Man-computer command script updating block, for being updated the man-computer command script based on the second man-machine language order according to described man-machine language order more new regulation。
In such scheme, described first data dictionary acquiring unit includes:
Man-machine language order acquisition module, for scanning the tested system comprising the man-computer command script with the first machine language command, obtains the first machine language command;
First data dictionary acquisition module, for described the first machine language command being ranked up by setting attribute, obtains the first data dictionary。
In such scheme, described man-machine language order updates Rule unit and includes:
First difference man-machine language command history acquisition module, for setting man-machine language order composition the first difference man-machine language command history by first in described first data dictionary;Described first sets man-machine language order can not find identical man-machine language order according to described setting attribute in described second data dictionary;
Second difference man-machine language command history acquisition module, for setting man-machine language order composition the second difference man-machine language command history by second in described second data dictionary;Described second sets man-machine language order can not find identical man-machine language order according to described setting attribute in described first data dictionary;
Diversity man-machine language command history acquisition module, for distinguishing man-machine language command history and the second difference man-machine language command history composition diversity man-machine language command history by described first。
In such scheme, described man-machine language order updates Rule unit and also includes:
Man-machine language order updates rule module, for determining the update sequence of the man-machine language order of the described second difference man-machine language command history in described diversity man-machine language command history according to the priority of described setting attribute;The more new direction of the man-machine language order distinguished in man-machine language command history determined to described second in keyword according to described setting attribute corresponding to described update sequence;The man-machine language order belonging to described second difference man-machine language command history is updated to the corresponding man-machine language order belonging to described first difference man-machine language command history according to described more new direction, obtains belonging to the man-machine language order more new regulation of the man-machine language order of described second difference man-machine language command history。
In such scheme, described man-machine language order updates rule module and includes:
Man-machine language order conservator, for when belonging to the man-machine language order that described first distinguishes man-machine language command history of correspondence cannot be updated in the man-machine language order belonging to described second difference man-machine language command history according to described more new direction, the man-machine language order belonging to described second difference man-machine language command history is preserved to the first machine language command。
Man-computer command script update method that the embodiment of the present invention provides and device, the first data dictionary is obtained by the first machine language command, the second corresponding to described first data dictionary and the second man-machine language order data dictionary is compared, obtains diversity MML command history;MML order more new regulation is obtained according to described diversity MML command history;And then by MML order more new regulation, the man-computer command script of the second man-machine language order is updated。Man-computer command script is updated by the present invention program from the angle of MML order, simplifies the renewal process of man-computer command script, it is achieved the quick renewal to a large amount of man-computer command scripts。
Accompanying drawing explanation
Fig. 1 be the man-computer command script update method of the embodiment of the present invention 1 realize schematic flow sheet;
Fig. 2 is the composition structural representation of the man-computer command script updating device of the embodiment of the present invention 2;
Fig. 3 is the composition structural representation of the MML order renewal Rule unit of the embodiment of the present invention 2。
Detailed description of the invention
Below in conjunction with Figure of description and specific embodiment technical scheme done and further elaborate。
Embodiment 1
In order to solve the technical problems such as the renewal process excessively complexity of man-computer command script, the present embodiment expectation provides a kind of man-computer command script update method, as it is shown in figure 1, the present embodiment method includes:
Step S101: obtain the first data dictionary by the MML order after updating;
Data dictionary refers to that the storage of the data item to data, data structure, data stream, data, process logic, external entity etc. are defined and describe, and its objective is each element in data flowchart is described in detail。First data dictionary of the present embodiment is the statistics to the MML order (hereinafter referred to as the first machine language command) after updating, it is possible to characterize the feature of the first machine language command。
Step S102: the second corresponding to described first data dictionary and the second man-machine language order data dictionary is compared, obtains diversity MML command history;MML order more new regulation is obtained according to described diversity MML command history;
Second man-machine language order also has the second data dictionary of correspondence, and the second data dictionary characterizes the feature of the second man-machine language order。First data dictionary and the second data dictionary being compared and can obtain diversity MML command history, diversity MML command history can reflect the difference of the second man-machine language order and the first machine language command, is also the object of MML order renewal。In diversity MML command history, a lot of MML orders are owing in Internet resources or system, man-computer command script changes and causes that the attribute such as title or parameter there occurs change, but substantially there is corresponding relation, i.e. MML order more new regulation。Therefore, it is thus achieved that the man-computer command script write by the second man-machine language order just can be modified by these MML order more new regulations。
Step S103: the man-computer command script based on the second man-machine language order is updated according to described MML order more new regulation。
By MML order more new regulation, the MML order of man-computer command script before updating is updated, and then the man-computer command script after making the man-computer command script before renewal be updated to renewal, it is achieved the correcting of Internet resources or system or upgrading。
Man-computer command script is updated by the present embodiment method from the angle of MML order, it is adaptable to all man-computer command scripts based on the second man-machine language order;Update man-computer command script by MML order and can simplify the renewal process of man-computer command script, it is achieved the quick renewal to a large amount of man-computer command scripts。
Concrete, step S101 includes:
In reality, the first machine language command is included in the tested system tested。In order to obtain the first machine language command script, first scanning comprises the tested system of the man-computer command script with the first machine language command, obtains the first machine language command;MML order is all generally the change of some attribute in the man-computer command script of different editions, therefore, the first data dictionary can be obtained by the setting attribute of MML order is carried out statistics, the data dictionary corresponding by the first data dictionary and the second man-machine language order compares, and fundamentally finds the distinctive points of man-computer command script。
The second corresponding to described first data dictionary and the second man-machine language order data dictionary is compared by step S102, obtains diversity MML command history and include:
After obtaining the first data dictionary, the second corresponding to the first data dictionary and the second man-machine language order data dictionary be compared。Having a lot of identical MML order in first data dictionary and the second data dictionary, these MML order man-computer command scripts before the update and the effect in the man-computer command script after updating are identical, it is possible to it is not processed。And for those in the first data dictionary can not be completely corresponding with the MML order in the second data dictionary MML order, then need to find out its corresponding MML order in the second data dictionary according to some rule (i.e. MML order more new regulation), thus realizing the renewal of MML order。Specifically include: first in described first data dictionary is set MML order composition the first difference MML command history;Described first sets MML order can not find identical MML order according to described setting attribute in described second data dictionary;In described second data dictionary second is set MML order composition the second difference MML command history;Described second sets MML order can not find identical MML order according to described setting attribute in described first data dictionary;MML command history and the second difference MML command history composition diversity MML command history is distinguished by described first。
It should be noted that set attribute to be generally title or the parameter of MML order, but it is not limited to title and parameter。
Step S102 obtains MML order more new regulation according to described diversity MML command history include:
In order to ensure to update the accuracy of MML order, can using the several attributes often used in MML order as setting attribute, man-computer command script before setting the man-computer command script after attribute contrast updates by these and update, it is possible to obtain MML order more new regulation。Meanwhile, the problem that when MML order updates, the amendment setting attribute is also had sequencing, therefore, set and there is also priority between attribute。Specifically include: determine the update sequence of the MML order of described second difference MML command history according to the priority of described setting attribute, such as first command name, the order of post command parameter;Each attribute itself also includes keyword, and when being title such as attribute, corresponding keyword can be command name and command name description etc.;When attribute is parameter, corresponding keyword can be command parameter and command parameter description etc., there is also priority between keyword。After determining update sequence, also will to the more new direction further determining that MML order by the keyword set in attribute, namely the more new direction to the MML order in described second difference MML command history determined in the keyword according to described setting attribute corresponding to described update sequence。As in command name, it is determined that the renewal sequencing that command name and command name are described determines more new direction;Finally, the MML order belonging to described second difference MML command history is updated to the corresponding MML order belonging to described first difference MML command history according to described more new direction, obtains belonging to the MML order more new regulation of the MML order of described second difference MML command history。Achieve the renewal to MML order。
Further, there is also another situation between the first difference MML command history and the second difference MML command history, namely the quantity of the MML order that the first difference MML command history and the second difference MML command history comprise differs。When first distinguishes the order in MML command history there not being existence the second difference MML command history, directly man-computer command script before the update uses these MML orders;When second distinguishes the order in MML command history there not being existence the first difference MML command history, namely these MML orders cannot be updated to the MML order belonging to described first difference MML command history of correspondence according to described more new direction, the MML order that these then belong to described second difference MML command history preserves to the first machine language command, directly man-computer command script before the update uses, finally achieve the renewal of man-computer command script。
Embodiment 2
The present embodiment is a kind of man-computer command script updating device proposed on the basis of the method for embodiment 1, as in figure 2 it is shown, described device includes:
First data dictionary acquiring unit 201, for obtaining the first data dictionary by the first machine language command;
MML order updates Rule unit 202, for being compared by the second corresponding to described first data dictionary and the second man-machine language order data dictionary, obtains diversity MML command history;MML order more new regulation is obtained according to described diversity MML command history;
Man-computer command script updating block 203, for being updated the man-computer command script based on the second man-machine language order according to described MML order more new regulation。
Wherein, the first data dictionary acquiring unit 201 specifically includes:
MML order acquisition module, for scanning the tested system comprising the man-computer command script with the first machine language command, obtains the first machine language command;
First data dictionary acquisition module, for described the first machine language command being ranked up by setting attribute, obtains the first data dictionary。
MML order updates Rule unit 202 as it is shown on figure 3, specifically include:
First difference MML command history acquisition module 2021, for setting MML order composition the first difference MML command history by first in described first data dictionary;Described first sets MML order can not find identical MML order according to described setting attribute in described second data dictionary;
Second difference MML command history acquisition module 2022, for setting MML order composition the second difference MML command history by second in described second data dictionary;Described second sets MML order can not find identical MML order according to described setting attribute in described first data dictionary;
Diversity MML command history acquisition module 2023, for distinguishing MML command history and the second difference MML command history composition diversity MML command history by described first。
Further, MML order updates Rule unit 202 and can also include: MML order updates rule module 2024, for determining the update sequence of the MML order of described second difference MML command history according to the priority of described setting attribute, such as first command name, the order of post command parameter;The more new direction of the MML order distinguished in MML command history determined to described second in keyword according to described setting attribute corresponding to described update sequence, in command name, the renewal sequencing of command name and command name description is determined more new direction;The MML order belonging to described second difference MML command history is updated to the corresponding MML order belonging to described first difference MML command history according to described more new direction, obtains belonging to the MML order more new regulation of the MML order of described second difference MML command history。
In addition, MML order updates rule module 2024 can also include MML order conservator, for when belonging to the MML order that described first distinguishes MML command history of correspondence cannot be updated in the MML order belonging to described second difference MML command history according to described more new direction, the MML order belonging to described second difference MML command history is preserved to the first machine language command。
Embodiment 3
The present invention is described in detail by an actual scene for the present embodiment。
The present embodiment comprises the following steps:
Step A: scan the first machine language command and parameter thereof, forms MML data dictionary (the first data dictionary);
Step B: identify the difference between the first data dictionary of the first machine language command and the second data dictionary of the second man-machine language order, according to the MML order more new regulation that this difference is formulated;
Step C: the second man-machine language order is changed according to MML order more new regulation, is converted to the first machine language command by the second man-machine language order, it is achieved the renewal to the man-computer command script before updating。
Using the title of MML order and parameter as setting attribute, step A farther includes:
The title of all MML orders of step A1, first scanning Internet resources or system, stores into extensible markup language (ExtensibleMarkupLanguage, XML) file according to the memonic symbol of title, mark and command description;
Step A2, then scan the parameter of every MML order, be stored in XML file according to the title of parameter, ID and parameter description etc.;
Step A3, combining step A1 and A2 result, generate the title of all the first machine language commands and the first data dictionary of parameter;
Step B farther includes:
B1, the first machine language command of comparison the first data dictionary and the second data dictionary of the second man-machine language order between difference obtain diversity MML command history;Concrete, first in described first data dictionary is set MML order composition the first difference MML command history;Described first sets MML order can not find identical MML order according to described setting attribute in described second data dictionary;In described second data dictionary second is set MML order composition the second difference MML command history;Described second sets MML order can not find identical MML order according to described setting attribute in described first data dictionary;MML command history and the second difference MML command history composition diversity MML command history is distinguished by described first
B2, obtain MML order more new regulation according to described diversity MML command history;
In the present embodiment, the priority of title is higher than the priority of parameter, and namely update sequence is: first carry out the MML order sequence distinguishing in MML command history to described second with title, the MML order then distinguished in MML command history described second with parameter again is sorted;Wherein, the keyword that title comprises includes command name and command name describes, it is described as more new direction with first command name post command title, the MML order belonging to described second difference MML command history is updated to the MML order belonged in described first difference MML command history of correspondence, obtains belonging to the MML order more new regulation of the MML order of described second difference MML command history。Specifically include: 1), compare when the second MML order distinguishing the MML order of MML command history and the first difference MML command history, MML command name changes, command name describes when not changing, and the command name belonging to the MML order of the second difference MML command history is revised as the command name of the MML order of the first difference MML command history of correspondence;2), when the second MML order distinguishing MML command history is compared with the first MML order distinguishing MML command history, MML command name does not change, command name describes when changing, and the command name of the MML order that the command name belonging to the MML order of the second difference MML command history describes the first difference MML command history being revised as correspondence describes;3) when the second MML order distinguishing MML command history is compared with the first MML order distinguishing MML command history, MML command name changes, command name describes when also changing, and first command name is modified, and then command name is described and modifies。In like manner, Param keyword includes command parameter and command parameter describes, and more new direction is that first command parameter post command parameter describes, and detailed process is identical with the above-mentioned renewal process to title。
It addition, except command parameter and command parameter being described and updates, be also frequently encountered by the situation needing that the span of command parameter is updated。Parameter value scope is updated and includes following several situation: 1), certain parameter batch is increased or reduces by a side-play amount, such as: after renewal, the span of command parameter NET is revised as from 10 to 264 from 1 to 255, batch migration rules can all increase by 10 all parameter values in the second man-machine language order, so that man-computer command script can also be properly functioning in redaction, when parameter is carried out dilatation by needs, it is also possible to be 10 to 1024 by parameter modification;2), enumerated value there occurs the situation of change, for instance: the enumerated value " DOMTOLL " of command parameter is revised as " DOMAIN ";3), parameter format there occurs the situation of change, for instance: the value form of command parameter DPC is revised as DPC=" 2-3-6 " from DPC=" 2.3.6 ";4), in man-computer command script, unified increasing increases keyword newly, for having increased the situation of keyword in the first machine language command newly。
Except this thinks, it is also possible to there is the situation adding the MML order that the second man-machine language order does not have in the first machine language command, now the MML order of increase is applied to the man-computer command script that the second man-machine language order is corresponding;Or there is the situation decreasing the MML order that the second man-machine language order does not have in the first machine language command, these MML orders can be stored directly in the first machine language command, in order to follow-up use。
The present invention constructs the first data dictionary of the first machine language command, the mapping relations between the first data dictionary of the first machine language command and the second data dictionary of the second man-machine language order are set up, it is achieved that the man-computer command script before updating is updated by MML order more new regulation。
In several embodiments provided herein, it should be understood that disclosed equipment and method, it is possible to realize by another way。Apparatus embodiments described above is merely schematic, such as, the division of described unit, it is only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, or is desirably integrated into another system, or some features can ignore, or do not perform。It addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, equipment or unit, it is possible to be electrical, machinery or other form。
The above-mentioned unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, it is also possible to be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme。
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing module, it is also possible to be that each unit is individually as a unit, it is also possible to two or more unit are integrated in a unit;Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes。
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: the various media that can store program code such as movable storage device, read only memory (Read-OnlyMemory, ROM), magnetic disc or CDs。
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention。Therefore, protection scope of the present invention should be as the criterion with described scope of the claims。

Claims (10)

1. a man-computer command script update method, it is characterised in that described method includes:
The first data dictionary is obtained by the first machine language command;
The second corresponding to described first data dictionary and the second man-machine language order data dictionary is compared, obtains diversity man-machine language command history;Man-machine language order more new regulation is obtained according to described diversity man-machine language command history;
According to described man-machine language order more new regulation, the man-computer command script based on the second man-machine language order is updated。
2. method according to claim 1, it is characterised in that described obtain the first data dictionary by the first machine language command and include:
Scanning comprises the tested system of the man-computer command script with the first machine language command, obtains the first machine language command;
By setting attribute, described the first machine language command is ranked up, obtains the first data dictionary。
3. method according to claim 1, it is characterised in that described compared by the second corresponding to described first data dictionary and the second man-machine language order data dictionary, obtains diversity man-machine language command history and includes:
In described first data dictionary first is set man-machine language order composition the first difference man-machine language command history;Described first sets man-machine language order can not find identical man-machine language order according to described setting attribute in described second data dictionary;
In described second data dictionary second is set man-machine language order composition the second difference man-machine language command history;Described second sets man-machine language order can not find identical man-machine language order according to described setting attribute in described first data dictionary;
Man-machine language command history and the second difference man-machine language command history composition diversity man-machine language command history is distinguished by described first。
4. method according to claim 3, it is characterised in that described obtain man-machine language order more new regulation according to described diversity man-machine language command history and include:
Priority according to described setting attribute determines the update sequence of the man-machine language order of the described second difference man-machine language command history in described diversity man-machine language command history;
The more new direction of the man-machine language order distinguished in man-machine language command history determined to described second in keyword according to described setting attribute corresponding to described update sequence;
The man-machine language order belonging to described second difference man-machine language command history is updated to the corresponding man-machine language order belonging to described first difference man-machine language command history according to described more new direction, obtains belonging to the man-machine language order more new regulation of the man-machine language order of described second difference man-machine language command history。
5. method according to claim 4, it is characterised in that described obtain man-machine language order more new regulation according to described diversity man-machine language command history and also include:
If the man-machine language order belonging to described second difference man-machine language command history cannot be updated to the man-machine language order belonging to described first difference man-machine language command history of correspondence according to described more new direction, then the man-machine language order belonging to described second difference man-machine language command history is preserved to the first machine language command。
6. a man-computer command script updating device, it is characterised in that described device includes:
First data dictionary acquiring unit, for obtaining the first data dictionary by the first machine language command;
Man-machine language order updates Rule unit, for being compared by the second corresponding to described first data dictionary and the second man-machine language order data dictionary, obtains diversity man-machine language command history;Man-machine language order more new regulation is obtained according to described diversity man-machine language command history;
Man-computer command script updating block, for being updated the man-computer command script based on the second man-machine language order according to described man-machine language order more new regulation。
7. device according to claim 6, it is characterised in that described first data dictionary acquiring unit includes:
Man-machine language order acquisition module, for scanning the tested system comprising the man-computer command script with the first machine language command, obtains the first machine language command;
First data dictionary acquisition module, for described the first machine language command being ranked up by setting attribute, obtains the first data dictionary。
8. device according to claim 6, it is characterised in that described man-machine language order updates Rule unit and includes:
First difference man-machine language command history acquisition module, for setting man-machine language order composition the first difference man-machine language command history by first in described first data dictionary;Described first sets man-machine language order can not find identical man-machine language order according to described setting attribute in described second data dictionary;
Second difference man-machine language command history acquisition module, for setting man-machine language order composition the second difference man-machine language command history by second in described second data dictionary;Described second sets man-machine language order can not find identical man-machine language order according to described setting attribute in described first data dictionary;
Diversity man-machine language command history acquisition module, for distinguishing man-machine language command history and the second difference man-machine language command history composition diversity man-machine language command history by described first。
9. device according to claim 8, it is characterised in that described man-machine language order updates Rule unit and also includes:
Man-machine language order updates rule module, for determining the update sequence of the man-machine language order of the described second difference man-machine language command history in described diversity man-machine language command history according to the priority of described setting attribute;The more new direction of the man-machine language order distinguished in man-machine language command history determined to described second in keyword according to described setting attribute corresponding to described update sequence;The man-machine language order belonging to described second difference man-machine language command history is updated to the corresponding man-machine language order belonging to described first difference man-machine language command history according to described more new direction, obtains belonging to the man-machine language order more new regulation of the man-machine language order of described second difference man-machine language command history。
10. device according to claim 9, it is characterised in that described man-machine language order updates rule module and includes:
Man-machine language order conservator, for when belonging to the man-machine language order that described first distinguishes man-machine language command history of correspondence cannot be updated in the man-machine language order belonging to described second difference man-machine language command history according to described more new direction, the man-machine language order belonging to described second difference man-machine language command history is preserved to the first machine language command。
CN201410691018.0A 2014-11-25 2014-11-25 Update method and device of man-machine command script Pending CN105700899A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410691018.0A CN105700899A (en) 2014-11-25 2014-11-25 Update method and device of man-machine command script
PCT/CN2015/078701 WO2016082474A1 (en) 2014-11-25 2015-05-11 Human-machine command script updating method and apparatus, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410691018.0A CN105700899A (en) 2014-11-25 2014-11-25 Update method and device of man-machine command script

Publications (1)

Publication Number Publication Date
CN105700899A true CN105700899A (en) 2016-06-22

Family

ID=56073490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410691018.0A Pending CN105700899A (en) 2014-11-25 2014-11-25 Update method and device of man-machine command script

Country Status (2)

Country Link
CN (1) CN105700899A (en)
WO (1) WO2016082474A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108280099A (en) * 2017-01-11 2018-07-13 广州市动景计算机科技有限公司 Data dictionary management method, apparatus and server

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855501B (en) * 2019-11-21 2022-04-26 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501235A (en) * 2002-11-14 2004-06-02 深圳市中兴通讯股份有限公司上海第二 Implement method of the man machine command based on plain text command script files
JP2011065367A (en) * 2009-09-16 2011-03-31 Fujitsu Ltd Device, program and method for managing workflow
CN102752138A (en) * 2012-06-30 2012-10-24 华为技术有限公司 Asynchronous configuration management method and network device
CN102905000A (en) * 2012-09-12 2013-01-30 中兴通讯股份有限公司 Address book synchronization method and device
CN103677869A (en) * 2012-09-06 2014-03-26 中国科学院计算技术研究所 Wireless sensor network node remote code updating system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI110900B (en) * 2001-07-11 2003-04-15 Nokia Corp Protocol-based end-users
US8572565B2 (en) * 2009-11-30 2013-10-29 Sap Ag Central configuration and transport supporting software lifecycles
CN102354165B (en) * 2011-05-30 2013-07-10 浙江中控技术股份有限公司 Method for updating data online and device therefor
CN103207902A (en) * 2013-03-27 2013-07-17 交通银行股份有限公司 Method and system for updating financial client side data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501235A (en) * 2002-11-14 2004-06-02 深圳市中兴通讯股份有限公司上海第二 Implement method of the man machine command based on plain text command script files
JP2011065367A (en) * 2009-09-16 2011-03-31 Fujitsu Ltd Device, program and method for managing workflow
CN102752138A (en) * 2012-06-30 2012-10-24 华为技术有限公司 Asynchronous configuration management method and network device
CN103677869A (en) * 2012-09-06 2014-03-26 中国科学院计算技术研究所 Wireless sensor network node remote code updating system and method
CN102905000A (en) * 2012-09-12 2013-01-30 中兴通讯股份有限公司 Address book synchronization method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108280099A (en) * 2017-01-11 2018-07-13 广州市动景计算机科技有限公司 Data dictionary management method, apparatus and server

Also Published As

Publication number Publication date
WO2016082474A1 (en) 2016-06-02

Similar Documents

Publication Publication Date Title
US10127148B2 (en) Software test automation system and method
US11436006B2 (en) Systems and methods for code analysis heat map interfaces
US10740075B2 (en) Systems and methods for code clustering analysis and transformation
US10698674B2 (en) Systems and methods for entry point-based code analysis and transformation
US20230393846A1 (en) System and Method For Automated Cross-Application Dependency Mapping
CN106844190B (en) Automatic test script generation method and device
CN110297752A (en) Acquisition methods and device, automatization test system, the storage medium of control element
US9471468B2 (en) System, method, and computer program to improve the productivity of unit testing
US10621066B2 (en) Automatic repair of scripts
CN102043716A (en) Automatic software testing method based on business driving
WO2014188502A1 (en) Management system, management program, and management method
CN103309667A (en) Method for positioning UI (user interface) control and picture modifying position in Android system
CN103488674A (en) Computing system and method for implementing and controlling thereof
CN106021101A (en) Method and device for testing mobile terminal
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN103530134A (en) Configurable software platform structure
CN105700899A (en) Update method and device of man-machine command script
CN113032257B (en) Automated testing method, apparatus, computer system, and readable storage medium
CN103186384A (en) Business-component-oriented software designing and analyzing system and using method thereof
CN105808748A (en) MIB (Management Information Base) version contrast method and device
US8510693B2 (en) Changing abstraction level of portion of circuit design during verification
CN107766253A (en) A kind of method of the automatic maintenance test script based on model change
US20220100640A1 (en) Generating test input values for functional components based on test coverage analysis
CN102270126A (en) Method and equipment for quickly determining interface code and test script parameter value
CN112527631A (en) bug positioning method, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160622