CN107526685A - A kind of method and device of test command row - Google Patents

A kind of method and device of test command row Download PDF

Info

Publication number
CN107526685A
CN107526685A CN201710813543.9A CN201710813543A CN107526685A CN 107526685 A CN107526685 A CN 107526685A CN 201710813543 A CN201710813543 A CN 201710813543A CN 107526685 A CN107526685 A CN 107526685A
Authority
CN
China
Prior art keywords
script
keyword parameter
traversal
tested
user
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
CN201710813543.9A
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710813543.9A priority Critical patent/CN107526685A/en
Publication of CN107526685A publication Critical patent/CN107526685A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application provides a kind of method of test command row, and methods described includes:Obtain order line to be tested;The keyword parameter of user's input is obtained, wherein the keyword parameter corresponds to the order line to be tested;The keyword parameter is retrieved in default keyword parameter set;In the case where retrieving the keyword parameter, called in script bank is traveled through and default corresponding with the keyword parameter travel through script;The order line to be tested is tested according to the traversal script.Compared with prior art, when different testers test same module or function point, the automation for only needing that this module or this function point order line can be completed by inputting keyword parameter travels through test, and during traversal failure, meeting automatic early-warning informs tester, travel through in script bank corresponding to renewal test script to automation keyword parameter collection and call again, improve product test efficiency.

Description

A kind of method and device of test command row
Technical field
The application is related to computer realm, more particularly to a kind of method and device of test command row.
Background technology
In recent years, as the continuous development and popularization of Internet technology, people get over to the demand of all kinds of internet products Come bigger, while security, stability, ease for use to product etc. has higher requirement.In order to better meet use The requirement at family, enterprise generally start to increase the foundation of test system while a large amount of research and development strengths are put into.Although enterprise payes attention to The foundation of test system, but for the test organization and tester, how to ensure the same of product quality When can preferably to improve testing efficiency be inevitable problem.Such as complete, ripe software is tended to for function For product, software often issues a new version, and tester just needs each function point to software, module to survey Examination, tester is needed in the case where ensureing that software product is not in problem in itself, while also to take into account testing efficiency, is protected Card software version is normally issued.
Existing technical scheme is that basic script is called using basic test software, even single to complete individual module The test of function point.I.e. for big specification, complex loops sole disposition test job when, user is soft by using basic test Part calls basic script, and it is that user finishes previously according to oneself demand that script is called on basis, realize to individual module or list The test of individual function point.
The shortcomings that prior art be tester called by using basic software basic script to individual module, Individual feature point is tested, but when different people's same modules of test or same function point, is required for being familiar with again Knowledge about current block or function point, and order line is traveled through one by one, or script is write again, waste to a certain extent Human resources, while also reduce testing efficiency.
The content of the invention
In view of this, the application provides a kind of method and device of test command row.
Specifically, the application is achieved by the following technical solution:
A kind of method of test command row, methods described include:
Obtain order line to be tested;
The keyword parameter of user's input is obtained, wherein the keyword parameter corresponds to the order line to be tested;
The keyword parameter is retrieved in default keyword parameter set;
In the case where retrieving the keyword parameter, the default and keyword is called to join in script bank is traveled through Traversal script corresponding to number;
The order line to be tested is tested according to the traversal script.
A kind of device of test command row, described device include:
Order line acquiring unit, for obtaining order line to be tested;
Keyword parameter acquiring unit, for obtaining the keyword parameter of user's input, wherein the keyword parameter pair Answer the order line to be tested;
Keyword parameter retrieval unit, for retrieving the keyword parameter in default keyword parameter set;
Script call unit is traveled through, in the case where retrieving the keyword parameter, being adjusted in script bank is traveled through Corresponding with the keyword parameter script is traveled through with default;
Order row test cell, for being tested according to the traversal script the order line to be tested.
The application concentrates in keyword parameter by obtaining keyword parameter and retrieves the keyword parameter, retrieves pass Traversal script corresponding to the parameter call of key word, according to traversal script output traversal script implementing result.With prior art phase Than when different people tests same module or function point, only needing that by inputting keyword parameter this module can be completed Or the automation traversal test of this function point order line, and during traversal failure, meeting automatic early-warning informs tester, completes to survey Training sheet and renewal are traveled through in script bank to automation keyword parameter collection calls again, improves product test efficiency.
Brief description of the drawings
It is in order to illustrate the technical solution of the embodiments of the present invention more clearly, attached required in being described below to embodiment Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments described in the present invention, for For those of ordinary skill in the art, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of the test command row method shown in the exemplary embodiment of the application one;
Fig. 2 is that one kind of the test command row method shown in the exemplary embodiment of the application one is preferable to carry out flow example;
Fig. 3 is a kind of structural representation that the test command luggage shown in the exemplary embodiment of the application one is put;
Fig. 4 is a kind of preferred structure schematic diagram that the test command luggage shown in the exemplary embodiment of the application one is put;
Fig. 5 is a kind of structural representation that test command luggage shown in the exemplary embodiment of the application one puts warning unit Figure;
Fig. 6 is a kind of knot that the test command luggage shown in the exemplary embodiment of the application one puts traversal script updating block Structure schematic diagram.
Embodiment
A kind of method of the test command row provided first the embodiment of the present invention illustrates, and this method includes following Step:
Obtain order line to be tested;
The keyword parameter of user's input is obtained, wherein the keyword parameter corresponds to the order line to be tested;
The keyword parameter is retrieved in default keyword parameter set;
In the case where retrieving the keyword parameter, the default and keyword is called to join in script bank is traveled through Traversal script corresponding to number;
The order line to be tested is tested according to the traversal script.
Mentioned in foregoing Background has tended to complete, ripe software product for function, often issue one it is new Software version, it is necessary to which tester is tested the module of software, function point, and wherein most function point and module are compared It is similar or even identical in a upper software version, but the module of a system, function point have hundreds of thousands of even Up to ten thousand, user is only needed to input corresponding module, the order line of function point and corresponding keyword parameter based on the present invention, so that it may The order line is tested with automatic calling traversal script, and outputed test result.
The present invention needs first to obtain order line to be tested, and the order line to be tested can be some mould in software product The order line of block or some function point;And then obtain user input keyword parameter, wherein keyword parameter with it is to be tested Order line correspond, the keyword parameter of the user that gets input is probably null value, it is also possible to the key of user's input Word parameter does not correspond with order line to be tested, at this moment needs to remind user to re-enter keyword parameter, then again Obtain the keyword parameter of user's input;The keyword of the user's input got is retrieved in default keyword parameter set Existing keyword parameter is collected to obtain by parameter, wherein keyword parameter set in advance;In keyword parameter collection In the case of the keyword parameter for retrieving user's input in conjunction, the default and keyword is called to join in script bank is traveled through Traversal script corresponding to number, the traversal script bank in advance obtain existing traversal script collection, travel through script and key Word parameter corresponds, and in the case that retrieval is less than the keyword parameter in keyword parameter set, sends the first warning Information, first warning message are used to remind user to travel through pin corresponding to the newly-increased keyword parameter in script bank is traveled through This, the corresponding present invention can increase newly the keyword parameter to traversal script;Treated according to the traversal script to described The order line of test is tested, and export traversal script implementing result, according to it is described traversal script to described to be tested Order line carry out test crash in the case of, send the second warning message, user reminding user updates the traversal script, phase The present invention answered can update traversal script, certain user corresponding to the keyword parameter and have more perfect traversal pin Originally it can also will travel through original traversal script in script bank and replace with the more perfect traversal script that active user inputs.
In order that those skilled in the art are better understood from the technical scheme in the present invention, here will be in detail to exemplary Embodiment illustrates, and its example is illustrated in the accompanying drawings.In the following description when referring to the accompanying drawings, unless otherwise indicated, different accompanying drawings In same numbers represent same or analogous key element.Embodiment described in following exemplary embodiment do not represent with The consistent all embodiments of the application.On the contrary, they be only with as being described in detail in appended claims, the application The example of the consistent apparatus and method of some aspects.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained The every other embodiment obtained, should all belong to the scope of protection of the invention.
As shown in figure 1, for a kind of method implementing procedure figure of test command row of the present invention, it specifically includes following steps:
S101, obtain order line to be tested;
The present invention needs first to obtain order line to be tested first, and the order line to be tested can be some work(in software Can point, the order line of some module.The programming language of order line wherein to be tested can be C language, also may be used without limiting To be C Plus Plus or Java language, naturally it is also possible to be other programming languages, the programming language enumerated here is Exemplary illustration is done, other programming languages no longer repeat one by one herein.Assuming that need to be directed to IPv4 static routing modules now Tested, it is necessary first to obtain the order line of IPv4 static routing modules.
S102, the keyword parameter of user's input is obtained, wherein the keyword parameter corresponds to the order to be tested OK;
The keyword parameter of user's input is obtained, wherein the keyword parameter corresponds to the order line to be tested, its The keyword parameter of middle user input is user to be extracted to obtain according to the keyword parameter of module in software product, function point, Such as it is above-mentioned tested for IPv4 static routing modules, user extracts from IPv4 static routing modules " Route_IPv4 " this keyword parameter, it can thus be seen that the keyword parameter of user's input is user previously according to soft Part product module, function point extraction keyword parameter obtain, and are unique, and and the order line to be tested that obtains one by one It is corresponding, i.e., corresponded with software product module, function point, therefore obtain the keyword parameter of user's input, it is possible to time Go through in script bank and call corresponding traversal script, some module, function point to software product are tested.
Such as get user input keyword parameter be " Route_IPv4 ", then " Route_IPv4 " this key Word parameter corresponds to IPv4 static routing modules, but the keyword parameter of user's input sometimes may be null value, therefore the present invention The keyword of the user's input got is null value, prompts user to re-enter keyword parameter, then the present invention can obtain again Take the keyword parameter of family input;But user, which may be because, sometimes does not pay attention to or imprudence, the keyword parameter of input are wrong By mistake, such as keyword parameter " Route_IPv4 " and IPv4 static routing module one-to-one corresponding, what actual user may input Keyword parameter is " RouteIPv4 ", it is also possible to " RouteIPv ", the ill-formalness of the keyword parameter of user's input here There are many kinds, no longer repeat one by one here, certainly also a kind of situation is exactly, for example user wants to test IPv4 static routing moulds Block, but the keyword parameter of user's input is not " Route_IPv4 ", but the keyword parameter of other modules, in a word It is that the keyword parameter got can not correspond with order line to be tested, at this moment the present invention also can prompt user again Keyword parameter is inputted, then the present invention can reacquire the keyword parameter of user's input.
S103, the keyword parameter is retrieved in default keyword parameter set;
The present invention gets the keyword parameter of user's input later, it is necessary to be retrieved in default keyword parameter set The keyword parameter of user's input.Keyword parameter is user previously according to the pass in the module of software product, function point first Key word parameter collection obtains, and is then collected these keyword parameters, forms a keyword parameter set, and this Individual keyword parameter set can be with real-time update.Such as the above-mentioned present invention get user input keyword ginseng Number " Route_IPv4 ", then can retrieve the keyword parameter in default keyword parameter set, determine keyword parameter collection It whether there is " Route_IPv4 " this keyword parameter with.
Wherein default keyword parameter set is made up of multiple known keyword parameters, each keyword ginseng Some module, some function point in the corresponding software product of number, most usual retrieval mode are traversal retrievals, will be got User input keyword parameter matched respectively with each keyword parameter in keyword parameter set, it is determined that crucial Whether its occurrence is had in word parameter sets, such as the keyword parameter " Route_ of the above-mentioned user's input got IPv4 ", can be by the keyword in keyword parameter " Route_IPv4 " and keyword parameter set according to usual retrieval mode Parameter matches one by one, determines whether there is keyword parameter " Route_IPv4 " occurrence in keyword parameter set.Based on Upper described, we can easily expect very much, if the keyword parameter in keyword parameter set is classified, from but Recall precision can be so improved, such as the initial according to keyword parameter can be extracted, is carried out according to 26 letters of English Sequence is divided into 26 classes, then keyword parameter " Route_IPv4 " can be divided into " R ", and this is a kind of, in default keyword parameter Search key parameter " Route_IPv4 " in set, keyword parameter " Route_IPv4 " initial " R " can be first extracted, Then the search key parameter " Route_IPv4 " in " R " this one kind automatically, certainly by the method for keyword parameter classification not This is only limitted to, is no longer repeated one by one here.
S104, in the case where retrieving the keyword parameter, the default and pass is called in script bank is traveled through Traversal script corresponding to key word parameter;
In the case where retrieving the keyword parameter, the default and keyword is called to join in script bank is traveled through Number corresponding to traversal script, wherein it is described traversal script bank be user collect in advance traversal script obtain, travel through script bank in Traversal script be one-to-one with the keyword parameter in keyword parameter set.Such as above-mentioned keyword parameter " Route_IPv4 ", it is assumed that the keyword parameter is retrieved in keyword parameter set, then calls keyword parameter " Route_ Traversal script RouteIPv4LoadingScript corresponding to IPv4 ", keyword parameter " Route_IPv4 " and traversal script RouteIPv4LoadingScript is corresponded.
S105, the order line to be tested is tested according to the traversal script.
The order line to be tested is tested according to the traversal script, keyword parameter corresponds to life to be tested Order row, while corresponding traversal script.Such as script is traveled through according to corresponding to calling keyword parameter " Route_IPv4 " RouteIPv4LoadingScript, according to traversal script RouteIPv4LoadingScript in IPv4 static routing modules Order line tested, and according to traversal script output implementing result.The result of traversal script output is probably IPv4 static state There is mistake in a certain line command row in routing module, it is also possible to some parameter setting in IPv4 static routing modules Mistake, no longer the result of traversal script output being described one by one here, its mistake occurred there may be a variety of situations, Here no longer repeat one by one.
In a preferred embodiment of the invention, as shown in Fig. 2 the mechanism of giving a warning and traversal script bank synchronization can also be increased Update mechanism:
Wherein S106, in the case where retrieval is less than the keyword parameter, send the first warning message, first police Information is accused to be used to remind user to travel through script corresponding to the newly-increased keyword parameter in script bank is traveled through;
The keyword parameter " Route_IPv4 " mentioned above for obtaining user's input, is retrieved not in keyword parameter set In the case of arriving, it is meant that keyword parameter set does not include current keyword parameter " Route_IPv4 ", at this moment meeting of the invention The first warning message is sent, reminds user to increase the keyword parameter " Route_IPv4 " newly in script bank is traveled through corresponding time Script RouteIPv4LoadingScript is gone through, while also to increase the keyword parameter newly in keyword parameter set “Route_IPv4”。
S107, in the case where retrieval is less than the keyword parameter, increase the keyword ginseng newly in script bank is traveled through Traversal script corresponding to number;
The keyword parameter " Route_IPv4 " mentioned above for obtaining user's input, is retrieved not in keyword parameter set In the case of arriving, it is meant that keyword parameter set does not include current keyword parameter " Route_IPv4 ", is traveling through accordingly Also without traversal script RouteIPv4LoadingScript corresponding to keyword parameter " Route_IPv4 " in script bank.At this moment Need user to write traversal script according to order line to be tested, user need to input keyword parameter " Route_IPv4 " and Corresponding traversal script RouteIPv4LoadingScript, the keyword parameter that the present invention is inputted by obtaining user " Route_IPv4 " and corresponding traversal script RouteIPv4LoadingScript, by keyword parameter " Route_IPv4 " Increase newly in keyword parameter set, traversal script RouteIPv4LoadingScript is increased newly in traversal script bank.
S108, in the case of according to the traversal script to the order line test crash to be tested, send second Warning message, second warning message are used to remind user to correct the traversal script;
Traversal script is called in script bank is traveled through according to keyword parameter " Route_IPv4 " RouteIPv4LoadingScript, but in traversal script RouteIPv4LoadingScript to IPv4 static routing modules During being tested, traversal script RouteIPv4LoadingScript there is a problem, stopped to IPv4 static state road By the test of module, or it is probably not output test result, the error situation being likely to occur here no longer repeats one by one.This When the present invention can send the second warning message, for reminding user to correct the traversal corresponding to keyword parameter " Route_IPv4 " Script RouteIPv4LoadingScript.
S109, in the case of according to the traversal script to the order line test crash to be tested, in traversal pin Amendment traversal script in this storehouse;
Traversal script is called in script bank is traveled through according to keyword parameter " Route_IPv4 " RouteIPv4LoadingScript, but in traversal script RouteIPv4LoadingScript to IPv4 static routing modules During being tested, traversal script RouteIPv4LoadingScript there is a problem, stopped to IPv4 static state road By the test of module, or it is probably not output test result, the error situation being likely to occur here no longer repeats one by one.This When need user to travel through script according to corresponding to keyword parameter " Route_IPv4 " is write in the error message of appearance again, here The traversal script that user writes again is named as RouteIPv4LoadingScript_1, time that user will write again for the time being Script RouteIPv4LoadingScript_1 is gone through to be input in the present invention, it is then of the invention by original traversal script RouteIPv4LoadingScript is modified to RouteIPv4LoadingScript_1.
S110, in the case where getting the traversal script of user's input, by original traversal script in script bank is traveled through Replace with the traversal script of user's input.
User is improved, user wants later improving according to the test effect of traversal script for traversal script Script renewal is traveled through into traversal script bank.Assuming that user is for already present traversal script in traversal script bank RouteIPv4LoadingScript is improved, and is named as RouteIPv4LoadingScript-2, user's input for the time being Script RouteIPv4LoadingScript-2 is traveled through, the present invention gets traversal script RouteIPv4LoadingScript-2 After, existing traversal script RouteIPv4LoadingScript in script bank will be traveled through and replace with the traversal pin that user inputs This RouteIPv4LoadingScript-2, then traversal script is then changed into corresponding to keyword parameter " Route_IPv4 " RouteIPv4LoadingScript-2, the keyword parameter " Route_IPv4 " inputted by obtaining user call corresponding time Script RouteIPv4LoadingScript-2 is gone through, the order line in IPv4 static routing modules is tested.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists During execution, execution the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD Etc. it is various can be with the medium of store program codes.
Corresponding with the embodiment of foregoing test command row method, present invention also provides the implementation that test command luggage is put Such as shown in Fig. 3, including order line acquiring unit 210, keyword parameter acquiring unit 220, keyword parameter retrieval unit 230th, script call unit 240, order row test cell 250 are traveled through:
The order line acquiring unit 210, sent out for obtaining order line to be tested, and by the tape test order line of acquisition Give order row test cell 250;
The keyword parameter acquiring unit 220, for obtaining the keyword parameter of user's input, wherein the keyword Parameter corresponds to the order line to be tested, and the keyword parameter that the user got is inputted is sent to keyword parameter inspection Cable elements 230;
Keyword parameter retrieval unit 230, for retrieving the keyword parameter in default keyword parameter set, And the result that the keyword parameter is retrieved in keyword parameter set is sent to traversal script call unit 240;
Script call unit 240 is traveled through, in the case where retrieving the keyword parameter, in script bank is traveled through Default traversal script corresponding with the keyword parameter is called, and the traversal script of calling is sent to order line test list Member 250;
Order row test cell 250, for being tested according to the traversal script the order line to be tested.
Shown in Figure 4, a kind of test command luggage that the embodiment of the present invention is provided, which is put, can also include warning unit 260th, script updating block 270 is traveled through:
Shown in Figure 5, the warning unit includes the first warning subelement 261, second and alerts subelement 262;
The first warning subelement 261, in the case of in retrieval less than the keyword parameter, sends the first police Information is accused, first warning information is used to remind user to increase traversal corresponding to the keyword parameter newly in script bank is traveled through Script;
The second warning subelement 262, for being tested according to the traversal script the order line to be tested In the case of failure, the second warning message is sent, second warning message is used to remind user to update the traversal script;
Shown in Figure 6, it is new that the traversal script updating block includes traversal script revise subelemen 271, traversal script Increase subelement 272, traversal script replaces subelement 273:
Script revise subelemen 271 is traveled through, for being tested according to the traversal script the order line to be tested In the case of failure, the amendment traversal script in script bank is traveled through;
Travel through script and increase subelement 272 newly, in the case of in retrieval less than the keyword parameter, in traversal script Increase traversal script corresponding to the keyword parameter in storehouse newly;
Travel through script and replace subelement 273, in the case where getting the traversal script of user's input, traveling through pin Original traversal script is replaced with to the traversal script of user's input in this storehouse.
The effect implementation process of unit specifically refers to the implementation process that step is corresponded in the above method in said system, It will not be repeated here.
For system embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.System embodiment described above is only schematical, wherein described be used as separating component The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The present invention can be described in the general context of the calculated value executable instruction performed by computer, such as program Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these DCEs, by Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with In the local and remote computer-readable storage medium including storage device.
Described above is only the embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

  1. A kind of 1. method of test command row, it is characterised in that methods described includes:
    Obtain order line to be tested;
    The keyword parameter of user's input is obtained, wherein the keyword parameter corresponds to the order line to be tested;
    The keyword parameter is retrieved in default keyword parameter set;
    In the case where retrieving the keyword parameter, the default and keyword parameter pair is called in script bank is traveled through The traversal script answered;
    The order line to be tested is tested according to the traversal script.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    In the case where the keyword parameter for getting user's input is null value, user is prompted to re-enter keyword parameter;
    Or
    In the case where the keyword parameter for getting user's input can not correspond to the order line to be tested, user's weight is prompted New input keyword parameter.
  3. 3. according to the method for claim 1, it is characterised in that methods described also includes:
    In the case where retrieval is less than the keyword parameter, the first warning message is sent, first warning information is used to carry The user that wakes up, which is increased newly in script bank is traveled through corresponding to the keyword parameter, travels through script.
  4. 4. according to the method for claim 1, it is characterised in that methods described also includes:
    In the case of according to the traversal script to the order line test crash to be tested, the second warning message is sent, Second warning message is used to remind user to correct the traversal script.
  5. 5. according to the method described in any one of Claims 1-4, it is characterised in that methods described also includes:
    In the case of according to the traversal script to the order line test crash to be tested, corrected in script bank is traveled through Travel through script.
  6. 6. according to the method described in any one of Claims 1-4, it is characterised in that methods described also includes:
    In the case where retrieval is less than the keyword parameter, in script bank travel through corresponding to the newly-increased keyword parameter time Go through script.
  7. 7. according to the method described in any one of Claims 1-4, it is characterised in that methods described also includes:
    In the case where getting the traversal script of user's input, original traversal script is replaced with into user in script bank is traveled through The traversal script of input.
  8. 8. a kind of device of test command row, it is characterised in that described device includes:
    Order line acquiring unit, for obtaining order line to be tested;
    Keyword parameter acquiring unit, for obtaining the keyword parameter of user's input, wherein the keyword parameter corresponds to institute State order line to be tested;
    Keyword parameter retrieval unit, for retrieving the keyword parameter in default keyword parameter set;
    Script call unit is traveled through, in the case where retrieving the keyword parameter, being called in script bank is traveled through pre- If corresponding with the keyword parameter travel through script;
    Order row test cell, for being tested according to the traversal script the order line to be tested.
  9. 9. device according to claim 8, it is characterised in that described device also includes:Warning unit, the warning unit Including the first warning subelement and the second warning subelement;
    First warning subelement, in the case of in retrieval less than the keyword parameter, sends the first warning message, described First warning information is used to remind user to travel through script corresponding to the newly-increased keyword parameter in script bank is traveled through;
    Second warning subelement, in the situation according to the traversal script to the order line test crash to be tested Under, the second warning message is sent, second warning message is used to remind user to update the traversal script.
  10. 10. device according to claim 8, it is characterised in that described device also includes:Travel through script updating block, institute It is single including traversal script revise subelemen, the newly-increased subelement of traversal script, traversal script replacement to state traversal script updating block Member;
    Script revise subelemen is traveled through, in the feelings according to the traversal script to the order line test crash to be tested Under condition, the amendment traversal script in script bank is traveled through;
    Travel through script and increase subelement newly, it is new in script bank is traveled through in the case of in retrieval less than the keyword parameter Increase traversal script corresponding to the keyword parameter;
    Travel through script replace subelement, for get user input traversal script in the case of, in script bank is traveled through Original traversal script is replaced with to the traversal script of user's input.
CN201710813543.9A 2017-09-11 2017-09-11 A kind of method and device of test command row Pending CN107526685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710813543.9A CN107526685A (en) 2017-09-11 2017-09-11 A kind of method and device of test command row

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710813543.9A CN107526685A (en) 2017-09-11 2017-09-11 A kind of method and device of test command row

Publications (1)

Publication Number Publication Date
CN107526685A true CN107526685A (en) 2017-12-29

Family

ID=60735860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710813543.9A Pending CN107526685A (en) 2017-09-11 2017-09-11 A kind of method and device of test command row

Country Status (1)

Country Link
CN (1) CN107526685A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871671A (en) * 2018-12-15 2019-06-11 中国平安人寿保险股份有限公司 O&M script execution, device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265681A1 (en) * 2008-04-21 2009-10-22 Microsoft Corporation Ranking and optimizing automated test scripts
CN102567193A (en) * 2010-12-09 2012-07-11 北京新媒传信科技有限公司 Method and system for converting test case to automated testing script
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN103019928A (en) * 2011-09-27 2013-04-03 北京新媒传信科技有限公司 Automatic testing method and system
CN104133762A (en) * 2013-05-03 2014-11-05 腾讯科技(深圳)有限公司 Software test method and test device
CN105045699A (en) * 2015-08-06 2015-11-11 惠州Tcl移动通信有限公司 Method and system for automatic continuous running of consistency test of mobile terminal and intelligent card
CN106201873A (en) * 2016-07-01 2016-12-07 网易(杭州)网络有限公司 The treating method and apparatus of test script

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265681A1 (en) * 2008-04-21 2009-10-22 Microsoft Corporation Ranking and optimizing automated test scripts
CN102567193A (en) * 2010-12-09 2012-07-11 北京新媒传信科技有限公司 Method and system for converting test case to automated testing script
CN103019928A (en) * 2011-09-27 2013-04-03 北京新媒传信科技有限公司 Automatic testing method and system
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN104133762A (en) * 2013-05-03 2014-11-05 腾讯科技(深圳)有限公司 Software test method and test device
CN105045699A (en) * 2015-08-06 2015-11-11 惠州Tcl移动通信有限公司 Method and system for automatic continuous running of consistency test of mobile terminal and intelligent card
CN106201873A (en) * 2016-07-01 2016-12-07 网易(杭州)网络有限公司 The treating method and apparatus of test script

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董贤伟: "关键字驱动的自动化软件测试的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871671A (en) * 2018-12-15 2019-06-11 中国平安人寿保险股份有限公司 O&M script execution, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7181694B2 (en) Software customization objects for programming extensions associated with a computer system
EP2778929B1 (en) Test script generation system
CN105095059B (en) A kind of method and apparatus of automatic test
CN107608874A (en) Method of testing and device
CN109726105A (en) Test data building method, device, equipment and storage medium
CN106095878A (en) The database manipulation device and method of table is divided based on point storehouse
CN107451060A (en) A kind of across mobile terminal automated test frame system
US10275266B1 (en) Language acceptance testing
CN108845940A (en) A kind of enterprise information system automated function test method and system
CN108847998B (en) Report monitoring method and device, computer equipment and storage medium
CN109871963A (en) Operation troubles restoring method, device, electronic equipment and storage medium
CN106708740A (en) Script testing method and device
CN109828906A (en) UI automated testing method, device, electronic equipment and storage medium
CN107315586A (en) Using the methods, devices and systems of packing
CN106951231A (en) A kind of computer software development approach and device
CN108108445A (en) A kind of data intelligence processing method and system
CN109308258A (en) Building method, device, computer equipment and the storage medium of test data
CN108133148A (en) Data safety inspection method and system
CN108156030A (en) The method and device that a kind of configuration strategy synchronizes
CN106021114B (en) Towards the automated testing method and system of intelligent robot
CN107748720A (en) A kind of method and device of the service parameter of detection function test cases
CN107703773A (en) A kind of method for testing software and device based on hardware-in-loop simulation system
CN107526685A (en) A kind of method and device of test command row
CN107122203A (en) The method to set up and device of a kind of configuration file
CN106708897A (en) Quality assurance method, device and system for data warehouse

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171229