CN102271066A - Automatic intelligent command line testing method and system - Google Patents

Automatic intelligent command line testing method and system Download PDF

Info

Publication number
CN102271066A
CN102271066A CN2011102413842A CN201110241384A CN102271066A CN 102271066 A CN102271066 A CN 102271066A CN 2011102413842 A CN2011102413842 A CN 2011102413842A CN 201110241384 A CN201110241384 A CN 201110241384A CN 102271066 A CN102271066 A CN 102271066A
Authority
CN
China
Prior art keywords
case
test case
test
order line
execution result
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
CN2011102413842A
Other languages
Chinese (zh)
Inventor
吴黎华
汪飞飞
徐小根
李敏波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2011102413842A priority Critical patent/CN102271066A/en
Publication of CN102271066A publication Critical patent/CN102271066A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an automatic intelligent command line testing method and system. The automatic intelligent command line testing method comprises the following steps of: generating a test case; converting the test case into a command line; executing the command line and obtaining an execution result; carrying out encapsulation adaptation on the execution result; and measuring the execution result after encapsulation adaptation. In the automatic intelligent command line testing method, the test case is converted into the command line to operate automatically, thus the problems of heavy workload and low efficiency of the prior art, caused by manual maintenance, are solved, an intelligent network element test is realized, and the working efficiency and working stability of the system are improved.

Description

Order line automatic intelligent method of testing and system
Technical field
The present invention relates to communication field, relate in particular to a kind of order line automatic intelligent method of testing and system.
Background technology
In the work maintenance process of communication system, whether the tester of needs working properly carries out the manual testing according to a large amount of test cases to each network element, test result is estimated again.Because the tested object of each network element is many especially, the test case that each tested object relates to is different again, and the use-case of some tested object is many especially, for example, nearly 23 of the test cases of 1X index, each use-case includes a plurality of achievement datas again, and test case need be followed specific test specification and configuration requirement, and the working condition of at every turn checking network element all will be carried out same operation, the duplication of labour, need in the test process to write down out of order network element by hand, this way has following defective:
(1) because mobile communication system is a huge network system, the network element device quantity of forming the network system is various, and relevant test case is innumerable, needs the substantive test personnel to participate in simultaneously, and therefore by manual test, workload is big, and inefficiency;
(2) careless omission appears in manual test easily, and the misoperation of indivedual test cases will cause the instability of whole system work.
Summary of the invention
Main purpose of the present invention provides a kind of order line automatic intelligent method of testing, is intended to improve the operating efficiency of network element test.
Order line automatic intelligent method of testing provided by the invention may further comprise the steps:
Generate test case;
With described test case conversion is order line;
Carry out described order line, obtain execution result;
Execution result is encapsulated adaptive;
The execution result that encapsulates after adaptive is measured.
Preferably, described generation test case comprises:
Write test case or import test case.
Preferably, described importing test case is specially:
Call the use-case storehouse, obtain corresponding test case, import this test case.
Preferably, the described test case of writing is specially:
Call the use-case ATL, obtain corresponding use-case template, according to the data of user's input, generate test case, and preserve this test case again.
Preferably, described is that the step of order line is specially with test case conversion:
Resolve the content of test case, and, call corresponding command library, be converted into order line according to resolving content.
The present invention also provides a kind of order line automatic intelligent test macro, comprising:
The use-case module is used to generate test case;
The use-case modular converter, being used for described test case conversion is order line;
Command execution module is used to carry out described order line, obtains execution result;
Adaptation module is used for execution result is encapsulated adaptive;
Metric module is used for the execution result that encapsulates after adaptive is measured.
Preferably, described use-case module comprises:
Use-case is write the unit, is used to write test case;
Use-case imports the unit, is used to import test case.
Preferably, described use-case imports the unit and specifically is used for:
Call the use-case storehouse, obtain corresponding test case, import this test case.
Preferably, described use-case is write the unit and specifically is used for:
Call the use-case ATL, obtain corresponding use-case template, according to the data of user's input, generate test case, and preserve this test case again.
Preferably, described use-case modular converter specifically is used for:
Resolve the content of test case, and call corresponding command library, be converted into the discernible order line of described command execution module according to resolving content.
The present invention is by being that order line is moved automatically to test case conversion, thereby solved the problem of and inefficiency big by the manual workload of safeguarding in the prior art, realized the intellectuality of network element test, improved the stability of operating efficiency and system works.
Description of drawings
Fig. 1 is the schematic flow sheet of order line automatic intelligent method of testing one embodiment of the present invention;
Fig. 2 is the structural representation of order line automatic intelligent test macro one embodiment of the present invention;
Fig. 3 is the structural representation of use-case module one embodiment in the order line automatic intelligent test macro of the present invention;
Fig. 4 is to use the schematic flow sheet of the radio-frequency (RF) index of order line automatic intelligent method of testing test CDMA mobile communication system of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Further specify technical scheme of the present invention below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is the flow chart of the order line automatic intelligent method of testing of the embodiment of the invention, and this method of testing may further comprise the steps:
Step S100, generation test case;
Test case is a group of test input, executive condition and expected results working out for certain special objective, so that test certain Program path or examine and whether satisfy certain particular demands.Its content generally comprises: test target, test environment, input data, testing procedure and expected results etc.This test case can be the WORD document, also can be the EXCELL document, can also be XML browser document or the like.
Step S100 specifically comprises and writes test case or import test case, can certainly comprise other test case generating mode.The importing test case is specially: according to the use-case path that the user selects, call the use-case storehouse, obtain with the user and select the test case of mating, when the test case of selecting to mate with the user is 1, then import this test case; When the test case of selecting to mate with the user when being a plurality of, the test case of then selecting the user to import, and with its importing.By calling the use-case storehouse, select corresponding test case to import, thereby make this test case to reuse, convenient for users to use.
Writing test case is specially: according to the use-case template that the user selects, call the use-case ATL,, according to each data of user's input, carry out the generation of test case again to obtain corresponding use-case template, and with its preservation.By calling the use-case ATL, the user only need import corresponding data, can generate test case, thereby both convenient for users to use, and can upgrade timely test case.Need to prove that here after test case to be write was kept, the user also can import it by calling the use-case storehouse.
Step S101, be order line with the test case conversion that generates;
Use-case to be tested is resolved test case after generating: A, read test target and test environment, carry out the condition configuration according to this test environment; B, the path of reading the input data, and obtain it according to this path and import data, for example only test the network element in a certain scope, then obtain the network element data in this scope; Call corresponding command library, testing procedure is converted to corresponding order.
Step S102, fill order row obtain execution result;
Network management system is carried out the order line after the conversion, and sends test request to corresponding network element, treats that network element returns execution result.
Step S103, execution result is encapsulated adaptive;
The result that the fill order row is obtained encapsulates adaptive, measures so that it can transfer on the processor.
Step S104, the execution result that encapsulates after adaptive is measured.
Processor receives the execution result after the encapsulation, itself and expected results is measured, and will be measured the result and show.This demonstration can be in a variety of forms, for example diagrammatic form.
Present embodiment order line automatic intelligent method of testing is by being that order line is moved automatically to test case conversion, thereby solved the problem of and inefficiency big in the prior art by the manual workload of safeguarding, realize the intellectuality of network element test, improved the stability of operating efficiency and system works.
Fig. 2 is the structured flowchart of order line automatic intelligent test macro one embodiment of the present invention.This order line automatic intelligent test macro comprises:
Use-case module 100 is used to generate test case;
With reference to Fig. 3, this use-case module 100 can comprise:
Use-case imports unit 1001, is used to import test case;
Use-case imports unit 1001 and specifically is used for: according to the use-case path that the user selects, call the use-case storehouse, obtain with the user and select the test case of mating, when the test case of selecting to mate with the user is 1, then import this test case; When the test case of selecting to mate with the user when being a plurality of, the test case of then selecting the user to import, and with its importing.By calling the use-case storehouse, select corresponding test case to import, thereby make this test case to reuse, convenient for users to use.
Use-case is write unit 1002, is used to write test case.
Use-case is write unit 1002 and specifically is used for: according to the use-case template that the user selects, calls the use-case ATL,, according to each data of user's input, carries out the generation of test case again to obtain corresponding use-case template, and with its preservation.By calling the use-case ATL, the user only need import corresponding data, can generate test case, thereby both convenient for users to use, and can upgrade timely test case.Need to prove that here after test case to be write was kept, the user also can import unit 1001 by use-case and call the use-case storehouse it is imported.
Use-case modular converter 101, the test case conversion that is used for generating is an order line;
After treating that use-case module 100 generates test case, 101 pairs of test cases of use-case modular converter are resolved: A, read test target and test environment, carry out the condition configuration according to this test environment; B, the path of reading the input data, and obtain it according to this path and import data, for example only test the network element in a certain scope, then obtain the network element data in this scope; Call corresponding command library, testing procedure is converted to the order that command execution module 102 can be discerned.
Command execution module 102 is used to carry out the order line of conversion, obtains execution result;
Command execution module 102 can comprise network management system, and this network management system is carried out the order after the conversion, and sends test request to corresponding network element, treats that network element returns execution result.
Adaptation module 103 is used for execution result is encapsulated adaptive;
The result that 103 pairs of fill order row of adaptation module obtain encapsulates adaptive, measures demonstration so that it can transfer on the metric module 104.
Metric module 104 is used for the execution result that encapsulates after adaptive is measured.
This metric module 104 receives the execution result after the encapsulation, itself and expected results is measured, and will be measured the result and show.This demonstration can be in a variety of forms, for example diagrammatic form.This metric module 104 is above-mentioned processor.
Present embodiment order line automatic intelligent test macro is by being that order line is moved automatically to test case conversion, thereby solved the problem of and inefficiency big in the prior art by the manual workload of safeguarding, realize the intellectuality of network element test, improved the stability of operating efficiency and system works.
With reference to Fig. 4, testing with the radio-frequency (RF) index automatic intelligent of CDMA mobile communication system is that example is described the present invention in detail, but not as qualification of the present invention.
The test of radio-frequency (RF) index has comprised 23 test cases, does not wait and each use-case includes 2 to 7 achievement datas, and test case need be followed specific test specification and configuration requirement.To specifically describe the process of radio-frequency (RF) index automatic intelligent test with an index (the basic RF index of receiving sensitivity) wherein below:
Step S201 writes or imports test case in use-case module 100, and is transferred to use-case modular converter 101;
This use-case module 100 can be STL (Standard Template Library, STL) platform or other editable platforms.In the STL platform, can select corresponding test case template, i.e. the test case template of the basic RF index of receiving sensitivity.Carry out the input of data according to this test case masterplate, for example select corresponding channel, power control power of radio station is set, regulate incoming level of RF or the like.Treat that all data have imported, the STL platform then generates test case according to the data of this input, is kept in the test case library, and transmits it to use-case modular converter 101.In the STL platform, can also select the corresponding test case that has woven, promptly the test case of the basic RF index of receiving sensitivity transmits it to use-case modular converter 101 again.
Step S202, use-case modular converter 101 are order line with test case conversion, and transfer to network management system;
Use-case modular converter 101 is the order line that network management system can be discerned with test case conversion, and transmits it to network management system.
Step S203, network management system fill order row send request to network element;
Network management system is carried out this order line, and sends test request, for example basic RF index of the receiving sensitivity of this network element of request for test to network element.
Step S204, network element return execution result and give network management system;
Step S205, network management system pass through use-case modular converter 101 with return results;
Step S206, use-case modular converter 101 pass through use-case module 100 with return results;
Step S207, use-case module 100 transmission results encapsulate adaptive to adaptation module 103;
Step S208, adaptation module 103 are given instrument with adaptive result transmission;
This instrument is above-mentioned metric module 104.
Step S209, instrument is carried out index according to the result and is drawn reaction test use-case implementation status.
By above-mentioned test case conversion is that order line is moved automatically, thereby has realized the intellectuality of network element test, has reduced tester's workload, has improved its operating efficiency.
The above only is the preferred embodiments of the present invention; be not so limit its claim; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. an order line automatic intelligent method of testing is characterized in that, may further comprise the steps:
Generate test case;
With described test case conversion is order line;
Carry out described order line, obtain execution result;
Execution result is encapsulated adaptive;
The execution result that encapsulates after adaptive is measured.
2. method according to claim 1 is characterized in that, described generation test case comprises:
Write test case or import test case.
3. method according to claim 2 is characterized in that, described importing test case is specially:
Call the use-case storehouse, obtain corresponding test case, import this test case.
4. method according to claim 2 is characterized in that, the described test case of writing is specially:
Call the use-case ATL, obtain corresponding use-case template, according to the data of user's input, generate test case, and preserve this test case again.
5. according to each described method in the claim 1 to 4, it is characterized in that described is that the step of order line is specially with test case conversion:
Resolve the content of test case, and, call corresponding command library, be converted into order line according to resolving content.
6. an order line automatic intelligent test macro is characterized in that, comprising:
The use-case module is used to generate test case;
The use-case modular converter, being used for described test case conversion is order line;
Command execution module is used to carry out described order line, obtains execution result;
Adaptation module is used for execution result is encapsulated adaptive;
Metric module is used for the execution result that encapsulates after adaptive is measured.
7. system according to claim 6 is characterized in that, described use-case module comprises:
Use-case is write the unit, is used to write test case;
Use-case imports the unit, is used to import test case.
8. system according to claim 7 is characterized in that, described use-case imports the unit and specifically is used for:
Call the use-case storehouse, obtain corresponding test case, import this test case.
9. system according to claim 7 is characterized in that, described use-case is write the unit and specifically is used for:
Call the use-case ATL, obtain corresponding use-case template, according to the data of user's input, generate test case, and preserve this test case again.
10. according to each described system in the claim 6 to 9, it is characterized in that described use-case modular converter specifically is used for:
Resolve the content of test case, and call corresponding command library, be converted into the discernible order line of described command execution module according to resolving content.
CN2011102413842A 2011-08-22 2011-08-22 Automatic intelligent command line testing method and system Pending CN102271066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102413842A CN102271066A (en) 2011-08-22 2011-08-22 Automatic intelligent command line testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102413842A CN102271066A (en) 2011-08-22 2011-08-22 Automatic intelligent command line testing method and system

Publications (1)

Publication Number Publication Date
CN102271066A true CN102271066A (en) 2011-12-07

Family

ID=45053235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102413842A Pending CN102271066A (en) 2011-08-22 2011-08-22 Automatic intelligent command line testing method and system

Country Status (1)

Country Link
CN (1) CN102271066A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377101A (en) * 2012-04-18 2013-10-30 百度在线网络技术(北京)有限公司 Testing system and testing method
CN103530223A (en) * 2012-07-06 2014-01-22 百度在线网络技术(北京)有限公司 Method and device for automatically generating unit test cases
CN104952239A (en) * 2014-03-28 2015-09-30 惠州学院 Testing device and testing method for collector
CN106301993A (en) * 2015-06-12 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus of test router
CN107018523A (en) * 2017-04-13 2017-08-04 美的智慧家居科技有限公司 WIFI module testing method and device
CN108241607A (en) * 2018-01-22 2018-07-03 中国平安人寿保险股份有限公司 Automatically imported method, server and the storage medium of test of heuristics case

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719786A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Automatic testing system and method for command of command line interface of data communication apparatus
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN1932776A (en) * 2006-09-29 2007-03-21 上海科泰世纪科技有限公司 Automatic operating method for interface test in embedded operating system
CN101114954A (en) * 2007-09-06 2008-01-30 中兴通讯股份有限公司 Protocol testing device
CN101212362A (en) * 2006-12-26 2008-07-02 中兴通讯股份有限公司 Automatic testing device and method incorporating a variety of testing tools
CN102063355A (en) * 2010-12-20 2011-05-18 创新科存储技术有限公司 Automatic test server and system of disk array

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719786A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Automatic testing system and method for command of command line interface of data communication apparatus
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN1932776A (en) * 2006-09-29 2007-03-21 上海科泰世纪科技有限公司 Automatic operating method for interface test in embedded operating system
CN101212362A (en) * 2006-12-26 2008-07-02 中兴通讯股份有限公司 Automatic testing device and method incorporating a variety of testing tools
CN101114954A (en) * 2007-09-06 2008-01-30 中兴通讯股份有限公司 Protocol testing device
CN102063355A (en) * 2010-12-20 2011-05-18 创新科存储技术有限公司 Automatic test server and system of disk array

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377101A (en) * 2012-04-18 2013-10-30 百度在线网络技术(北京)有限公司 Testing system and testing method
CN103530223A (en) * 2012-07-06 2014-01-22 百度在线网络技术(北京)有限公司 Method and device for automatically generating unit test cases
CN103530223B (en) * 2012-07-06 2018-05-04 百度在线网络技术(北京)有限公司 A kind of method and device of automatically generating unit test use-case
CN104952239A (en) * 2014-03-28 2015-09-30 惠州学院 Testing device and testing method for collector
CN106301993A (en) * 2015-06-12 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus of test router
CN107018523A (en) * 2017-04-13 2017-08-04 美的智慧家居科技有限公司 WIFI module testing method and device
CN108241607A (en) * 2018-01-22 2018-07-03 中国平安人寿保险股份有限公司 Automatically imported method, server and the storage medium of test of heuristics case

Similar Documents

Publication Publication Date Title
CN102271066A (en) Automatic intelligent command line testing method and system
CN102420714B (en) Test managing method, test managing system master control center and test managing system
CN108366067B (en) System and method for testing consistency of universal service protocol of power system
CN103792448B (en) A kind of digital protection device automatic test control system and control method thereof
CN102043719B (en) Method for testing IEC61850 configuration description file
CN106546962B (en) The intrinsic time delay automatic testing equipment of satellite transponder and test method
CN101808356B (en) Protocol simulation system for TD-SCDMA terminal protocol conformance tests
CN104063325A (en) Automatic generation device and method for test cases of embedded software
CN104123227A (en) Method for automatically generating testing cases
CN105301419A (en) Cloud-technology-based automatic test system for protective relaying device
CN103746882A (en) Test method for intelligent substation station-control layer
CN103412208A (en) Intelligent substation electric telecontrol device closed loop test method
CN102868464B (en) Consistency testing system and method of communication terminals
CN103675529B (en) The protective relaying device automatic test approach of feature based word and device
CN104363324A (en) Method and system for carrying out automatic test on mobile phone mainboard
CN102063355B (en) Automatic test server and system of disk array
CN103353857B (en) The communication test method of a kind of transformer station comprehensive monitoring unit
CN101888318A (en) System and method for testing performance index of communication system
CN103795440A (en) Data processing device for power line communication and data processing method thereof
CN104698374A (en) Method for improving testing efficiency and accuracy of automatic relay protecting tester
CN105337796A (en) WIFI router performance test method and system
CN111597083B (en) Testing system of intelligent terminal
CN103529773B (en) Automatic conversion method for behavior control scripting language
CN102957572A (en) Method and device for evaluating performance of system
CN114390374A (en) Broadband micropower multi-network comprehensive test system of electricity consumption information acquisition system

Legal Events

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

Application publication date: 20111207

RJ01 Rejection of invention patent application after publication