CN104778118B - The improved method of automatization testing technique - Google Patents

The improved method of automatization testing technique Download PDF

Info

Publication number
CN104778118B
CN104778118B CN201410848319.XA CN201410848319A CN104778118B CN 104778118 B CN104778118 B CN 104778118B CN 201410848319 A CN201410848319 A CN 201410848319A CN 104778118 B CN104778118 B CN 104778118B
Authority
CN
China
Prior art keywords
test
script
case set
input
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.)
Active
Application number
CN201410848319.XA
Other languages
Chinese (zh)
Other versions
CN104778118A (en
Inventor
王凤芹
程启北
任彩玲
李月彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jilin Asia Link Technology Development Co.,Ltd.
Original Assignee
SHENZHEN KEYBRIDGE COMMUNICATIONS 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 SHENZHEN KEYBRIDGE COMMUNICATIONS CO Ltd filed Critical SHENZHEN KEYBRIDGE COMMUNICATIONS CO Ltd
Priority to CN201410848319.XA priority Critical patent/CN104778118B/en
Publication of CN104778118A publication Critical patent/CN104778118A/en
Application granted granted Critical
Publication of CN104778118B publication Critical patent/CN104778118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention proposes a kind of improved method of automatization testing technique, to solve the problems, such as conventional automated test suite, improves its portability, flexibility, ease for use, and reduce maintenance workload.Step 1, test platform is built;Step 2, newer command format input by user is received by interface;Step 3, receive the amount of capacity of selection characteristic by interface.Step 4, according to information is received, dependence test script is automatically updated.The purpose of the present invention is to provide a kind of improved method of automatization testing technique, the portability of conventional automated test suite, flexibility, ease for use and versatility can be improved while retaining test suite automation advantage, and maintenance is small.

Description

The improved method of automatization testing technique
Technical field
The present invention relates to data processing methods, more particularly to the data processing method in relation to automatization testing technique.
Background technology
As people are to the growing of bandwidth demand, the capacity of communication apparatus is increasing, and function is increasing, test Workload is also more and more heavy, and manual test cannot be satisfied the demand of test.Testing efficiency is improved, test period is shortened, and Ensure that test quality is extremely urgent, automatic test comes into being.
The traditional automatic test of communication equipment has 2 kinds:
1 automatized script:Each equipment corresponds to a script, and each test characteristic corresponds to a script, cannot be general. Portability, flexibility is poor, and maintenance needs to change line by line, time-consuming and laborious, and is easy error.
2, automatic test set:The individual test script of Platform integration institute can need to choose corresponding script according to test Test suite is generated, and is preserved.Portable and flexibility, versatility enhancing.
But when can encounter following situations in testing, script heavy workload is changed, it is flat need to even to build test again sometimes Platform:
When edition upgrading post command row changes, need to update test script manually at this time;
Characteristic capacity changes after edition upgrading, needs to update test script manually at this time;
After changing test script, original test suite can not be automatically updated, generation need to be reselected;
The equipment of identical function, order row format is entirely different, needs to do again from the beginning, builds test platform again.
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.
Description of the drawings
Fig. 1 is " improved method of automatization testing technique " of the invention automation platform process figure;
Fig. 2 is modification command format schematic diagram;
Fig. 3 is characteristic modification schematic diagram;
Fig. 4 is newly-increased product line schematic diagram;
Fig. 5 is newly-increased product line IPTS9000 schematic diagrames;
Fig. 6 is automatic test modular device schematic diagram.
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.

Claims (3)

1. a kind of improved method of automatization testing technique, it is characterised in that:
A. equipment is connected to by test platform;
B. entrance is selected according to product line, carries out step C;If can not find match options, newly-increased product line is needed, then Jump to step E;
C. according to the test case set selection of all characteristics of equipment under test applicable test script and preserved, if necessary The order row format or characteristic capacity changed under this equipment under test type then carry out step D;If user needs newly-increased product system The device type of row then carries out step F;If need not only change, but also newly added equipment type is not needed, then uses existing script Complete the test to equipment under test;
D. new order row format is inputted, or order row format is changed by configuration file, test platform reads the new of input To relevant variable assignment after order row format or the configuration file numerical value of modification;
When test platform poll detects that relevant variable is varied from, order row format is re-assemblied, and update dependence test Script, and choose whether to update corresponding test case set according to input instruction;With modified test script and test case Set completes the test to equipment under test;
E. it inputs or directly changes configuration file, when test platform detects newly-increased product line, be then assigned to corresponding change Amount, re-assemblies order line;
If user has selected Inherit Testing script or Inherit Testing use-case set, test platform will be corresponding test script Or test case set replaces with new command format;If user's not selecting inheritance, need to rewrite generation test foot Sheet or test case set;
The modified test script of test platform and test case set complete the test to equipment under test;
F. configuration file is inputted or directly changes, test platform detects in product line when having newly added equipment type, then assigns It is worth to corresponding variable, order line is re-assemblied;
If user has selected Inherit Testing script or Inherit Testing use-case set, test platform will be corresponding test script Or test case set replaces with new command format;If user's not selecting inheritance, need to rewrite generation test foot Sheet or test case set;
The modified test script of test platform and test case set complete the test to equipment under test;
In step D, step E and step F, when test platform has detected order line change of format, then new order line Format is transmitted to correlated variables, when not detecting variation, uses default value;
When test platform has detected characteristic volume change, then new characteristic capability value is transmitted to correlated variables, do not detected To when variation, default value is used;
When test platform detects that the correlated variables of order row format or the variable of characteristic boundaries value change, then more cenotype The automatized script of pass;
When test platform detects that the correlated variables of order row format or the variable of characteristic boundaries value change, then more cenotype The test case set of pass;
When needing to be transplanted in identical function but the entirely different device type of order row format, it is only necessary to manually enter and become Order row format after change, test platform are automatically performed update.
2. the improved method of automatization testing technique according to claim 1, it is characterised in that:
In step D, step E and step F, when updated test script and test case set preserve, it is original that covering may be selected Test script and test case set or newly-generated a set of test script and test case set;
Step D, after the completion of step E and step F, multiple test case sets that test platform will be transplanted to belonging to distinct device type It integrates, be reproduced as a new equipment chain, it, can be by selecting product line and equipment when making to carry out the method again Type carries out test differentiation.
3. a kind of automatic test device using claim 1 the method, it is characterised in that:
Including,
Input module receives the input value of user;
Detection module detects the presence of user's input, if there is input then starts update script function;
Update module, according to input content more new script and test case set;
Execution module executes automatized script and test case set;
Input module, for receiving content input by user, the main IP/ID for including user, the format of order line, characteristic capacity Size;
Detection module, whether there is or not contents for detection input module, if there is input content then reads input content, and are assigned to corresponding Variable;
Update module detects that corresponding variable changes, then more new script and test case set;
Execution module connects equipment, issues automatized script and test case set to equipment, and read the return value of equipment, sentence Break to mistake, output report;
The input frame of input module is dynamic, can increase input as needed, generate new characteristic and script;
Update module needs to choose whether update test case set according to user.
CN201410848319.XA 2013-12-30 2014-12-30 The improved method of automatization testing technique Active CN104778118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410848319.XA CN104778118B (en) 2013-12-30 2014-12-30 The improved method of automatization testing technique

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201310743927 2013-12-30
CN201310743927X 2013-12-30
CN201410848319.XA CN104778118B (en) 2013-12-30 2014-12-30 The improved method of automatization testing technique

Publications (2)

Publication Number Publication Date
CN104778118A CN104778118A (en) 2015-07-15
CN104778118B true CN104778118B (en) 2018-08-28

Family

ID=53619597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410848319.XA Active CN104778118B (en) 2013-12-30 2014-12-30 The improved method of automatization testing technique

Country Status (1)

Country Link
CN (1) CN104778118B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677415B (en) * 2016-01-06 2020-07-17 网易(杭州)网络有限公司 Hot update method and device
CN105760286B (en) * 2016-02-17 2018-09-07 中国工商银行股份有限公司 Application database dynamic property detection method and detection device
CN107168864A (en) * 2016-03-08 2017-09-15 上海大唐移动通信设备有限公司 Code stream generation method and device
CN106294150B (en) * 2016-08-09 2019-03-26 北京神州绿盟信息安全科技股份有限公司 A kind of test loading method and device
CN108241575B (en) * 2016-12-26 2021-01-22 大唐移动通信设备有限公司 Method and device for upgrading test script
CN108241580B (en) * 2016-12-30 2021-11-19 深圳壹账通智能科技有限公司 Client program testing method and terminal
CN106776346B (en) * 2017-01-18 2020-12-04 鼎点视讯科技有限公司 Test method and device of CCMTS (China center testing System) equipment
CN109726093B (en) * 2017-10-27 2022-03-22 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for executing test cases
US10592371B2 (en) 2018-03-26 2020-03-17 International Business Machines Corporation Cognitive testing configuration according to dynamic changes in an install-base

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555014A (en) * 2003-12-26 2004-12-15 中兴通讯股份有限公司 Human-machine order testing method
CN1790957A (en) * 2004-12-14 2006-06-21 华为技术有限公司 Apparatus testing method
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN1996265A (en) * 2006-12-18 2007-07-11 华为技术有限公司 Method and system for implementing automatic testing
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
CN102063355A (en) * 2010-12-20 2011-05-18 创新科存储技术有限公司 Automatic test server and system of disk array
CN102270174A (en) * 2011-08-04 2011-12-07 北京星网锐捷网络技术有限公司 Automatic test method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7594170B2 (en) * 2003-10-24 2009-09-22 Microsoft Corporation Mechanism for providing data driven command line output

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555014A (en) * 2003-12-26 2004-12-15 中兴通讯股份有限公司 Human-machine order testing method
CN1790957A (en) * 2004-12-14 2006-06-21 华为技术有限公司 Apparatus testing method
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN1996265A (en) * 2006-12-18 2007-07-11 华为技术有限公司 Method and system for implementing automatic testing
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
CN102063355A (en) * 2010-12-20 2011-05-18 创新科存储技术有限公司 Automatic test server and system of disk array
CN102270174A (en) * 2011-08-04 2011-12-07 北京星网锐捷网络技术有限公司 Automatic test method and device

Also Published As

Publication number Publication date
CN104778118A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
CN104778118B (en) The improved method of automatization testing technique
KR102483025B1 (en) Operational maintenance systems and methods
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
Li et al. ATOM: Automatic maintenance of GUI test scripts for evolving mobile applications
US9189135B2 (en) Three-dimensional GUI object stores in automation test tools
CN107465572A (en) Intelligent terminal method of testing, apparatus and system
CN105095059B (en) A kind of method and apparatus of automatic test
CN103412818B (en) Automated testing method and system
CN103399814B (en) The method and device of automatic test
CN104794057B (en) A kind of crossing event automated testing method and device
CN101241467A (en) Automatized white box test system and method facing to WEB application
CN103984624A (en) Automatic testing method and system for webpage
CN107451060A (en) A kind of across mobile terminal automated test frame system
CN102023861A (en) Method and system for generating test script and test suite
CN105760296A (en) Automation testing control method, device and terminal
CN103455759A (en) Page loophole detection device and page loophole detection method
CN103678124B (en) Video surveillance platform auto-test method and device based on continuous integrated environment
CN104461846B (en) The method and apparatus for detecting application program power consumption
CN101770423A (en) Test data generation method and test system
CN104156224A (en) Continuous integration method and system for software construction
CN105303112A (en) Component calling bug detection method and apparatus
CN111258881B (en) Intelligent test system for workflow test
CN104270389A (en) Method and system for automatically restoring security configuration vulnerability of router/ interchanger
CN105608005A (en) Television system test method and system
CN106598834A (en) UI (User Interface) testing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518057, 24th Floor, Yihua Financial Science and Technology Building, 2388 Houhai Avenue, Nanshan High-tech Park, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Asian Union Development Technology Co.,Ltd.

Address before: 518057 Building 6, R3-A, Nanshan High-tech Industrial Village, Shenzhen, Guangdong Province

Patentee before: SHENZHEN KEYBRIDGE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 1205, Chuangye Building, Liaoyuan Hi tech Industrial Development Zone, Jilin Province, 136299

Patentee after: Jilin Asia Link Technology Development Co.,Ltd.

Address before: 518057, 24th Floor, Yihua Financial Science and Technology Building, 2388 Houhai Avenue, Nanshan High-tech Park, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Asian Union Development Technology Co.,Ltd.

CP03 Change of name, title or address