CN100421391C - Method for implementing automatic test of intelligent service - Google Patents

Method for implementing automatic test of intelligent service Download PDF

Info

Publication number
CN100421391C
CN100421391C CNB031026516A CN03102651A CN100421391C CN 100421391 C CN100421391 C CN 100421391C CN B031026516 A CNB031026516 A CN B031026516A CN 03102651 A CN03102651 A CN 03102651A CN 100421391 C CN100421391 C CN 100421391C
Authority
CN
China
Prior art keywords
case
test
data
script
calling
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.)
Expired - Fee Related
Application number
CNB031026516A
Other languages
Chinese (zh)
Other versions
CN1521994A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031026516A priority Critical patent/CN100421391C/en
Publication of CN1521994A publication Critical patent/CN1521994A/en
Application granted granted Critical
Publication of CN100421391C publication Critical patent/CN100421391C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses a method for automatically testing intelligent services. A test case is built by the method. The test case is at least divided into a preface part, a data preparation part, a calling set part and a judgment part. Scripts of parts of the test case are edited, wherein the preface part at least illustrates the test case completing test functions, preset conditions, input information and expected output information; data for testing is arranged in the data preparation part; the calling set part describes all intelligent calling processes in the test case; the judgment part sets judgment conditions and expected results; the test case is performed, and test results are output. The present invention realizes the automation of the overall test process of the intelligent service, well enhances the test efficiency, and shortens the test period. As the scripts of the data preparation part, the process part, the result judgment part, the data recovery part, etc. of the test case are correspondingly independent, the reusability of the test case is ensured.

Description

Realize the IN service automatic test method
Technical field
The present invention relates to the method for testing of the communications field, particularly a kind of realization IN service automatic test method.
Background technology
IN service is of a great variety, the function complexity that each is professional, developing a new business at least will be through three test, the each test usually need be carried out thousands of use-cases, after the actual use of professional input, according to actual operating position and user's demand, also need business is made an amendment, and test again, each business approximately will experience six tests in its life cycle.Usually use actual environment at present, test IN service by manually dialing the IN service phone, the test of corresponding each test case, its operating process is as follows:
1) the service management layout setting metering data by intelligent net system
2) the service management layout setting business configuration data by intelligent net system
3) the service management layout setting card number data by intelligent net system
4) use phone to dial the IN service phone, select the business function flow process according to use-case
5) if check that by the service management interface of intelligent net system the card data owner blocks remaining sum, whether the card state is correct
6) check whether correct call out ticket generates
The shortcoming of prior art is: when using the prior art test service, being provided with of metering data, business configuration data and card number data need be provided with by the service management interface, the judgement that use-case is carried out data such as back card remaining sum, state also needs the operation service administration interface to finish, can not realize automation, whether ticket generates correctly needs manual observation to judge, misunderstands easily, all relies on artificial participation in the whole process simultaneously, testing efficiency is low, and the cycle is long.
Summary of the invention
The invention provides a kind of realization IN service automatic test method, to solve the shortcoming that automaticity is low, testing efficiency is low that exists in the prior art.
Technical scheme of the present invention may further comprise the steps:
A, newly-built test case are divided into preface, data to major general's test case and prepare, call out collection and judgment part;
B, edit the script of all test case each several parts, wherein: test function, prerequisite, input and the expection output information that this use-case is finished is described at least in the preface part, prepare part in data the test data are set, collect the flow process that part is described all intelligent calls in the use-case in calling, Rule of judgment and expected results are set in the judgment part;
C, implementation of test cases output test result.
Steps A comprises step:
1) corresponding professional function or newly-built set of uses case of module or use-case subclass;
2) newly-built use-case under corresponding set of uses case of use-case or use-case subclass.
Test case in the steps A also comprises the data recovered part, the data recovered part have one be used for before restore data is carried out to this use-case data, guarantee independence that each use-case carries out, avoid influencing each other between use-case the script of the test result that makes mistake.
The data that described method, data are prepared the part setting comprise charging, card number and business configuration data.
Described method adopts forms mode input Rule of judgment and expected results, is automatically converted to the judgement script then.
Described method is called out collection one or more callings, and corresponding each calling all has call flow script separately.
Described method is parallel or serial in call packing definition call initiator formula.
The edit mode of the script of described method test case each several part is a sheet format interface mode.
The step of described sheet format interface mode edit calls collection script is: increase a calling earlier in calling out the collection frame; Edit the script of this calling then, and according to call flow calling is divided into corresponding step number, per step is divided into step number, source entity, time, dialogue primitive, composition primitive and operation.
Described method script grammer adopts standard SQL and SHELL grammer.
The present invention adopts the script describing use-case, can realize the automation of overall processes such as data preparation, use-case execution, judgement as a result in the operational trials, has well improved testing efficiency, shortens test period; The script of each several parts such as the data preparation of use-case, flow process, result's judgement and data recovery is relatively independent, has guaranteed the reusability of use-case.
Description of drawings
Fig. 1 is the flow chart of the inventive method;
Fig. 2 is the organization chart of test case;
Fig. 3 is the sheet format interface of editor's test case script;
Fig. 4 is the form of edit calls collection script.
Embodiment
The flow chart that reference is shown in Figure 1:
At first, newly-built test case is divided into preface, data to major general's test case and prepares, calls out collection and judgment part; Secondly, edit the script of all test case each several parts, in the preface part test function, prerequisite, input and the expection output information that this use-case is finished is described at least, prepare part in data the test data are set, collect the flow process that part is described all intelligent calls in the use-case in calling, Rule of judgment and expected results are set in the judgment part; At last, implementation of test cases outputs test result.
Below in conjunction with Fig. 2 to Fig. 4 the present invention is elaborated:
The present invention adopts the structure management test case of directory tree, all test cases of a business are formed this professional set of uses case, test function or the module finished according to test case again under the set of uses case are divided into the use-case subclass, each subclass also can be subdivided into littler subclass, up to final test case, all test cases are organized into and the corresponding hierarchical structure of professional each functional module, each set of uses case, subclass and use-case all have the name of oneself, are used for the mutual differentiation and the brief description of purposes separately.The institutional framework of use-case is illustrated in fig. 2 shown below.
The present invention is divided into preface, data with test case and prepares, calls out parts such as collection, judgement and data recovery, and the calling script of use-case data and use-case is separated the reusability of assurance test case.Preface partly is used to describe in detail information such as the function, flow process, prerequisite, input, expection output of test case test; Data are prepared the script of part and are finished test data such as charging, card number and the setting of business configuration data, and the script grammer adopts standard SQL and SHELL grammer; The script of calling out the collection part is finished the description of all intelligent call flow processs in the use-case; Whether data variation was correct after callings such as the script realization judgement card remaining sum of judgment part, card state were finished, and adopted forms mode input Rule of judgment, expected results, was automatically converted to the judgement script then; The script of data recovered part is used for the data before restore data is carried out to this use-case, guarantee independence that each use-case carries out, avoid influencing each other between use-case the test result that makes mistake, the script grammer adopts standard SQL and SHELL grammer.The test case script editor be illustrated in fig. 3 shown below.
Calling out collection can have one or more callings, and each calling of correspondence all has call flow script separately, and definable call initiator formula is parallel or serial, expression calling execution or execution one by one simultaneously respectively.Calling out script is the major part of using case script, it also is script describing maximum part consuming time, the present invention adopts forms mode edit calls script, in calling out the collection frame, increase a calling earlier, edit the script of this calling then, during the edit calls script, according to call flow calling is divided into corresponding step number, per step is divided into step number, source entity, time, dialogue primitive, composition primitive and operation.During edit script, system produces step number automatically, time is input item, the value that the direct concrete time value of input or do not import any value and get the system default value, items such as source entity, dialogue primitive, composition primitive and operation can only selective system configure, this edit mode makes the script editor be simple and easy to usefulness on the one hand, avoid importing non-existent value, reduce the possibility of script describing mistake, can revise every Configuration Values as required on the other hand, guarantee the expandability of system.The script editor who calls out collection is illustrated in fig. 4 shown below.
During test service of the present invention, its operating procedure is as follows:
1) corresponding professional function or newly-built set of uses case of module or use-case subclass;
2) with the corresponding set of uses case of use-case or use-case subclass under newly-built use-case;
3) the preface part of editor's use-case illustrates information such as test function that this use-case finishes, prerequisite, input, expection output;
4) data of editor's use-case are prepared part, realize the setting of tests such as charging, card number and business configuration with data;
5) write the calling script of use-case according to the use-case flow process;
6) judgment part as a result of editor's use-case judges that card remaining sum, card state etc. block data and whether ticket is correct;
7) various piece of debugging test case script guarantees the correctness with case script;
8) repeat 2 to 7 and go on foot the script editor who finishes all test cases;
9) carry out all test cases;
10) checkout use-case execution result.
When test service again, only need re-execute existing test case and get final product.

Claims (10)

1. realize the IN service automatic test method for one kind, it is characterized in that may further comprise the steps:
A, newly-built test case are divided into preface, data to major general's test case and prepare, call out collection and judgment part;
B, edit the script of all test case each several parts, wherein: test function, prerequisite, input and the expection output information that this use-case is finished is described at least in the preface part, prepare part in data the test data are set, collect the flow process that part is described all intelligent calls in the use-case in calling, Rule of judgment and expected results are set in the judgment part;
C, implementation of test cases output test result.
2. the method for claim 1, it is characterized in that: steps A comprises step:
1) corresponding professional function or newly-built set of uses case of module or use-case subclass;
2) newly-built use-case under corresponding set of uses case of use-case or use-case subclass.
3. the method for claim 1, it is characterized in that: the test case in the steps A also comprises the data recovered part, the data recovered part have one be used for before restore data is carried out to this use-case data, guarantee independence that each use-case carries out, avoid influencing each other between use-case the script of the test result that makes mistake.
4. the method for claim 1 is characterized in that: data are prepared the data that part is provided with and are comprised charging, card number and business configuration data.
5. the method for claim 1 is characterized in that: adopt forms mode input Rule of judgment and expected results, be automatically converted to the judgement script then.
6. the method for claim 1 is characterized in that: calling out collection has one or more callings, and corresponding each call out the call flow script that all has separately.
7. as claim 1 or 6 described methods, it is characterized in that: be parallel or serial in call packing definition call initiator formula.
8. the method for claim 1, it is characterized in that: the edit mode of the script of described test case each several part is a sheet format interface mode.
9. method as claimed in claim 8 is characterized in that: the step of described sheet format interface mode edit calls collection script is: increase a calling earlier in calling out the collection frame; Edit the script of this calling then, and according to call flow calling is divided into corresponding step number, per step is divided into step number, source entity, time, dialogue primitive, composition primitive and operation.
10. as claim 1,2,3,4,5,6,8 or 9 described methods, it is characterized in that: the script grammer adopts standard SQL and SHELL grammer.
CNB031026516A 2003-02-14 2003-02-14 Method for implementing automatic test of intelligent service Expired - Fee Related CN100421391C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031026516A CN100421391C (en) 2003-02-14 2003-02-14 Method for implementing automatic test of intelligent service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031026516A CN100421391C (en) 2003-02-14 2003-02-14 Method for implementing automatic test of intelligent service

Publications (2)

Publication Number Publication Date
CN1521994A CN1521994A (en) 2004-08-18
CN100421391C true CN100421391C (en) 2008-09-24

Family

ID=34281837

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031026516A Expired - Fee Related CN100421391C (en) 2003-02-14 2003-02-14 Method for implementing automatic test of intelligent service

Country Status (1)

Country Link
CN (1) CN100421391C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102581B (en) * 2014-07-10 2017-08-01 浪潮(北京)电子信息产业有限公司 A kind of method and device for realizing unit testing

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100361127C (en) * 2004-11-01 2008-01-09 华为技术有限公司 Automatic generation system and method for script file
CN100407663C (en) * 2004-11-17 2008-07-30 中兴通讯股份有限公司 Universal testing system and method for telecommunication intelligent service
CN100362479C (en) * 2005-12-09 2008-01-16 华为技术有限公司 System and method for testing measured object based on automatic test script
CN101827346B (en) * 2009-03-04 2013-07-17 ***通信集团上海有限公司 Automatic test method and device for charge system
CN102510567A (en) * 2011-12-20 2012-06-20 广东欧珀移动通信有限公司 Automation testing method for cellphone e-mails
CN103793326B (en) * 2014-01-28 2017-02-08 福建星网锐捷网络有限公司 Assembly test method and device
CN113259201B (en) * 2021-06-17 2023-10-10 中国农业银行股份有限公司 Link performance test method, device, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1147325A (en) * 1994-02-28 1997-04-09 英国电讯有限公司 Service provision in communications networks
CN1391412A (en) * 2002-07-05 2003-01-15 广州新太通讯技术有限公司 Automatic dialing tester for communication network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1147325A (en) * 1994-02-28 1997-04-09 英国电讯有限公司 Service provision in communications networks
CN1391412A (en) * 2002-07-05 2003-01-15 广州新太通讯技术有限公司 Automatic dialing tester for communication network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102581B (en) * 2014-07-10 2017-08-01 浪潮(北京)电子信息产业有限公司 A kind of method and device for realizing unit testing

Also Published As

Publication number Publication date
CN1521994A (en) 2004-08-18

Similar Documents

Publication Publication Date Title
EP0544637B1 (en) Software structure for telecommunication switching systems
DE69900810T2 (en) Method and device for testing event-controlled programs
CN104468259B (en) A kind of communication traffic rate automated testing method
Clarke Automated test generation from a behavioral model
CN109871309B (en) Method and system for generating test case of charging system
CN108804322A (en) Automated testing method, device, computer equipment and storage medium
CN111488145A (en) Micro-service code generation system and method based on service domain data model base
CN100421391C (en) Method for implementing automatic test of intelligent service
CN106201472A (en) The method for scheduling task of software development and device
CN112579455B (en) Automatic interface testing method and device, electronic equipment and storage medium
CN111240983A (en) Method and device for realizing automatic test of telecommunication charging service
CN113259409A (en) T-box simulation test system applied to scene test of Internet of vehicles
CN111338618B (en) Application scene driven Android application micro-service automatic generation method
CN110334001A (en) A kind of method and apparatus that batch automatically generates echo test
CN105760300A (en) Automatic STK/UTK service testing method and system
CN102135939B (en) Test case operation dispatching device and method
CN112732237B (en) Method and system for constructing code-free development technology model
CN110941422B (en) Code automatic generation method, code generator and readable storage medium
CN110738384B (en) Event sequence checking method and system
CN112540988A (en) Service processing device, processing method and readable storage medium
CN111831547A (en) Automatic interface test platform
CN115686472B (en) Service arrangement method and device
CN112364058B (en) Auditing method and device for commodity price configuration
Bucci et al. Using TOOMS/TROL for specifying a cellular phone
Aubonnet et al. PILOTE: a service creation environment in next generation networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080924

Termination date: 20130214