Invention content
The technical problem to be solved in the present invention is to avoid the deficiencies in the prior art place and propose automatization testing technique
Improved method.The present invention is solves the problems, such as conventional automated test suite, improves its portable, flexibility, ease for use, and
Reduce maintenance workload.
Step 1 builds test platform
Step 2 receives newer command format input by user by interface.
Step 3 receives the amount of capacity of selection characteristic by interface.
Step 4 automatically updates dependence test script according to information is received.
Step 5 automatically updates generated dependence test set according to information is received.
Step 6 user can increase the entirely different product line of order row format newly, and can borrow pervious test script,
Test suite, need not build test platform again, and maintenance workload is small.
Compared with the existing technology compared with " improved method of automatization testing technique " of the invention has technical effect that:
The purpose of the present invention is to provide a kind of improved method of automatization testing technique, retains test suite automation advantage
The portability of conventional automated test suite, flexibility, ease for use and versatility can be improved simultaneously, and maintenance is small.
1. platform takes orders, row format inputs, and receives the input of characteristic amount of capacity;One-key update automatized script, one
Key updates test suite;
When device version upgrading cause order line change or characteristic capacity change when, automatic test platform can according to
The order row format of family input, the amount of capacity of characteristic, automatic updating test script, and generated test suite is updated simultaneously
Script changes and regenerates line by line test suite without user;
2. portable good without building test platform again for the equipment of different command row format
And for the equipment with identity function different command row format, without building test platform again, the present invention can
More new script and all test suites are regenerated according to order row format input by user, is directly used for new equipment, is safeguarded
Workload greatly reduces.
Specific implementation mode
It is described in further detail below in conjunction with the embodiment shown in that figure.
Traditional automatized script each equipment, each characteristic, even certain versions be required for a particular script with
Correspondence, portable, flexibility, ease for use, poor universality are safeguarded time-consuming and laborious.
Though and test suite automation form is in portability, flexibility, increases in terms of ease for use.But work as new and old edition
When order row format generating unit point changes, the order line in manual modification script is needed, or when the capacity of device characteristics becomes
When change, it is also desirable to the boundary value in manual modification script, maintenance workload is big, and another generated test suite needs regenerate,
It cannot update.And for the equipment with identity function different command row format, automatically working needs are done again from the beginning, and are taken again
It builds a set of.
To solve the above problems, the purpose of the present invention is to provide a kind of improved method of automatization testing technique, retains and survey
There is preferably portable, flexibility, ease for use and versatility while examination set automation advantage.When device version upgrading is drawn
When playing order line change or the change of characteristic capacity, automatic test platform can be according to order row format input by user, characteristic
Amount of capacity, automatic updating test script, and update the script of generated test suite simultaneously, changed line by line without user and
Regenerate test suite;And for the equipment with identity function different command row format, without building test platform again, this
Invention can regenerate more new script and all test suites according to order row format input by user, directly make for new equipment
With maintenance workload greatly reduces.
The present invention provides a kind of improved method of automatization testing technique, can improve conventional automated portability, spirit
Activity, ease for use and versatility, and reduce the maintenance workload of automatized script.
1, the order row format of interface modification can be passed through.
2, the capacity of interface modification characteristic can be passed through.
3, order row format and characteristic capacity information are received according to interface, the test script automatically updated preserves.
4, order row format and characteristic capacity information are received according to interface, automatically update generated test suite, is preserved.
5, it may migrate in identity function but the entirely different equipment of order row format and use, without rewriting foot
This, and reusable script and test suite, greatly reduce workload, convenient maintenance in the future.
The present invention provides a kind of improved method of automatization testing technique, has preferably portability, flexibility easy-to-use
Property, inheritability, and reduce manual modification automatized script workload, it maintains easily.
Its step are as follows:
Step 1 is connected to equipment, such as Fig. 1 by test platform.
User is inputted by platform on IP or ID address TELNET to test equipment.
Step 2 user can select entrance according to product line, if can not find match options, need newly-increased product line,
Then jump to the 5th step.
Step 3, in next layer of product line, user selects specific device type to enter, such as Fig. 1.
Platform shows the test suite of lower individual test script and preservation of this equipment, if user needs to change this and set
Order row format or characteristic capacity under standby type then jump to the 4th step, if user needs to increase the equipment class of this product line newly
Type then jumps to the 6th step.Also existing script can be used to test for user.
Step 4, the order row format or characteristic capacity for changing this device type, such as Fig. 1 are clicked.
After clicking the order row format for changing this device type, platform pop-up can input page.
Such as Fig. 2, user inputs new order row format or user by interface and changes order line lattice by configuration file
Formula, system are read after interface or configuration file numerical value to relevant variable assignment.When system poll detects that relevant variable is become
When change, order row format is re-assemblied, and updates dependence test script, whether updates corresponding test according to the user's choice
Set.As shown in Fig. 2, due to only having " newly-increased board " to fill in content, then system is only analyzed and changes the order of " newly-increased board "
Format is " set slot/X/lg type XX ", and automatically updates the guarantee replacement automatized script and test suite of " newly-increased board ".
Traditional automatized script changes mode:
1, the relevant script text of some characteristic is first opened, after search, is changed line by line.
2, the associated documents of next characteristic are opened, after search, are changed line by line.
3, modification finishes, and needs test-based examination one by one, in order to avoid omit.
It is time-consuming and laborious, it is easy to omit, the variation of slight function causes a large amount of script to be changed.
User changes the capacity of certain characteristic, if protection feature was X originally, 2X is increased to after device upgrade, only needs to click
" modification ", then " protection feature " is found, capacity is set as 2X, relevant automatized script all replaces with 2X, is not necessarily to hand
It is dynamic to change dependence test script line by line, and whether can dependence test set be updated together according to the user's choice, greatly reduce dimension
Protect workload.
Traditional characteristic capacity modification:
1, the script file of correlation properties is opened, FOR loop sentence is changed, X is replaced with 2X;
2, the associated documents of next characteristic are opened, after search, are changed line by line.
It is time-consuming and laborious, it is easy to omit, if the performance of whole equipment doubles, whole scripts are both needed to search by hand and repair
Change.
Step 5, product line is increased newly:Newly-increased product line order row format has bigger difference, needs to match again
It sets.
User can be inputted by interface or directly change configuration file and then assigned when system detectio is to newly-increased product line
It is worth to corresponding variable, order line is re-assemblied, at this moment, if user has selected Inherit Testing script(Inherit Testing use-case
Set), then system will be test script(Test suite)New command format is replaced with, using original test thinking and tests content,
Workload greatly reduces, if user's not selecting inheritance, needs to rewrite and generates test script, test suite(Do not recommend).
Such as Fig. 4 " newly-increased product line figure ":Due to IPTS9000 series and IPTS8000 series sales to country variant, work(
The identical but order line standard of energy is entirely different, needs reconstruct to automate, then IPTS9000 can use the order row format of oneself
While inherit the test thinking of IPTS8000, test case, test suite, it is entitled that " product line of succession " is filled in figure
" IPTS8000 ", and " whether Inherit Testing script " is chosen in Fig. 5 " newly-increased product line IPTS9000 ", " whether inherit survey
The check box of examination set ".Then platform has automatically generated the relevant automatic of IPTS9000.
The automation of IPTS9000 and IPTS8000 is completely separable using function, and maintenance can be but managed collectively, and be subtracted significantly
Lack workload, improves efficiency, portable, inheritability, flexibility.
And traditional newly-increased product line automation needs framework platform again, sometimes due to time restriction and other aspects
Restriction, automatic test platform is difficult to be formed, and affects testing efficiency.
Step 6, increase the device types of homologous series newly under normal circumstances, order row format can only make part modification, principle and
Step 4, step 5 is similar, is not repeated.
Automatic test device includes:
Input module:For inputting the boundary value of order row format and characteristic.
Detection module:User's input is detected the presence of, if there is input then starts update script function.
Update module:According to input content more new script and test suite.
Execution module:Execute automatized script and test suite.
Input module:For receiving content input by user, the main IP/ID for including user, the format of order line, characteristic
Amount of capacity.
Detection module:Detecting input module, whether there is or not contents, if there is input content then reads input content, and are assigned to phase
The variable answered.
Update module:Detect that corresponding variable changes, then more new script and test suite.
Newly-increased module:Newly-increased product line and relevant automatized script and test suite.
Execution module:Equipment is connected, automatized script and test suite is issued to equipment, and read the return value of equipment, sentenced
Break to mistake, output report.
As shown in fig. 6, user inputs new order row format by input module and characteristic capacity, detection module detect
Update is newly-increased, then is assigned to correlated variables, then system update or newly-increased automatized script and test suite, after preservation, hold
It travels far and wide this or test suite.