CN102420722A - Comprehensive networking automation testing method and system - Google Patents

Comprehensive networking automation testing method and system Download PDF

Info

Publication number
CN102420722A
CN102420722A CN2011103929444A CN201110392944A CN102420722A CN 102420722 A CN102420722 A CN 102420722A CN 2011103929444 A CN2011103929444 A CN 2011103929444A CN 201110392944 A CN201110392944 A CN 201110392944A CN 102420722 A CN102420722 A CN 102420722A
Authority
CN
China
Prior art keywords
network
tcl
test
configuration
tested
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
CN2011103929444A
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN2011103929444A priority Critical patent/CN102420722A/en
Publication of CN102420722A publication Critical patent/CN102420722A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a comprehensive networking automation testing method. The method comprises the following steps of: (S1) selecting a testing case by using a testing platform; invoking a corresponding function from a TCL (Tool Command Language) function library to carry out network protocol configuration; and checking the operation state of equipment to be tested and the working correctness of the protocol; (S2) invoking the TCL function library and transmitting user simulation flow to a network tester; (S3) invoking a TCL function checking module and collecting state value and statistic value returned by the TCL function checking module; and (S4) outputting a testing result and a testing process record. According to the invention, the comprehensive networking testing efficiency is enhanced, the complicatedness in configuration is simplified and the extensibility of the testing case is enhanced.

Description

Co-existence network automated testing method and system
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of co-existence network automated testing method and system.
Background technology
Develop rapidly along with the computer and the communication technology; In the face of the trend of network IPization with three nets (telecommunications network, broadcasting and television network and computer communication network) unification; The business of the network carrying is more and more abundanter with application; The quality requirement of professional transmission is increasingly high, and is more and more stricter to the stability requirement of web-transporting device.In order to satisfy multiple business transmission in high quality in network,, also more and more strict to the testing standard of communication equipment and Related product in network communication equipment merchant and related software company; In order to guarantee product quality, press close to the actual application deployment of network, the diverse network emulation testing of solution Network Based has to be put into the first place of test; But the test environment of solution Network Based is complicated; Procotol is disposed many, and network size is big, and user data service is abundant; These problem points make difficulty of test bigger; Remove to reduce test complexity and improve the test flexibility though professional test appearance provider has proposed some testing schemes and product, can't realize full automation eventually, still need a large amount of manual tests accomplish and testing efficiency low.
In view of this, be necessary to provide a kind of co-existence network automated testing method and system to address the above problem.
Summary of the invention
The object of the present invention is to provide a kind of co-existence network automated testing method and system.
A kind of co-existence network automated testing method of the present invention, said method comprises:
S1, test platform are selected test case, in the TCL function library, call respective function, carry out the procotol configuration, check the correctness of equipment running status to be tested and agreement work;
S2, call the TCL function library, send subscriber simulation stream to network tester;
S3, call TCL function inspection module, collect state value and statistical value that TCL function inspection module is returned;
S4, output test result and the test process record.
As further improvement of the present invention, also comprise before the said step S1:
Application protocol and respective user emulation stream through network tester configuration co-existence network generate the procotol configuration;
With the procotol configuration store that generates in the TCL function library.
As further improvement of the present invention, said test case is that the testing process execution command based on TCL collected during artificial network was used.
As further improvement of the present invention, the functional configuration that said test case is carried out each equipment to be tested in the network simulation applied topology defines inspection, the clear equipment disposition to be tested of test point, test execution flow process, networking protocol status, network traffics and cancels the operation definition that network tester disposes.
As further improvement of the present invention, said step S1 is specially:
Test platform is selected test case, in the TCL function library, calls respective function;
Virtual configuration through TCL Server completion network tester is mapped to the network tester application port;
Carry out the functional configuration of equipment to be tested, check between equipment to be tested and the equipment to be tested, the agreement connected state between equipment to be tested and the network tester.
As further improvement of the present invention, " state value and statistical value that TCL function inspection module is returned " comprising among the said step S3: the agreement connected state between test platform network tester and the equipment to be tested, network traffics forward-path whether correct and transmit on the way in whether exist and lose data message.
As further improvement of the present invention, also comprise behind the said step S3:
Know the network tester configuration through the TCL function library;
The implementation of test cases script is removed equipment disposition to be tested.
Correspondingly, a kind of co-existence network automatization test system, said system comprises:
The test case unit, the testing process execution command based on TCL during artificial network is used collects;
Test platform is used to select test case to carry out the procotol configuration, checks the correctness of equipment running status to be tested and agreement work;
The TCL function library supplies test platform to call required function in the process of implementation;
TCL Server is used to accomplish the virtual configuration of network tester, is mapped to the network tester application port;
Whether TCL function inspection module is used for checking that agreement connected state between network tester and the equipment to be tested, network traffics forward-path be whether correct and transmits to exist on the way and lose data message.
Network tester is used to accept network annexation and the inspection instruction of feedback TCL function inspection module of configuration-direct mapping, foundation and the equipment to be tested of TCL Server.
Co-existence network emulation cloud is used for the execution command of response test platform, and carries out cyberrelationship with network tester and set up;
Logging modle is used to output test result and the test process record.
As further improvement of the present invention, the functional configuration that said test case is carried out each equipment to be tested in the network simulation applied topology defines inspection, the clear equipment disposition to be tested of test point, test execution flow process, networking protocol status, network traffics and cancels the operation definition that network tester disposes.
As further improvement of the present invention, said system also comprises:
The application configuration module is used for application protocol and respective user emulation stream through network tester configuration co-existence network, generate the procotol configuration, and the procotol configuration store that just generates is in the TCL function library.
The invention has the beneficial effects as follows: improved the co-existence network testing efficiency, simplified configuration complexity, strengthened the extensibility of test case.
Description of drawings
Fig. 1 is the module diagram of co-existence network automatization test system in an embodiment of the present invention.
Fig. 2 is the schematic flow sheet of co-existence network automated testing method in an embodiment of the present invention.
Embodiment
Below will combine each execution mode shown in the drawings to describe the present invention.But these execution modes do not limit the present invention, and the conversion on the structure that those of ordinary skill in the art makes according to these execution modes, method or the function all is included in protection scope of the present invention.
Joining shown in Figure 1 is the module diagram of co-existence network automatization test system 100 in an embodiment of the present invention, and its concrete module and function specify as follows:
Application configuration module 101 is used for application protocol and respective user emulation stream through network tester 106 configuration co-existence networks, generate the procotol configuration, and the procotol configuration store that just generates is in TCL function library 103.Preferably, application configuration module 101 according to various co-existence networks be applied to the early stage tester 106 Network Based carry out the configuration of manual parameters, variable, business data flow;
Test platform 102 is used to select test case to carry out the procotol configuration, checks the correctness of equipment to be tested (DUT or Device Under Test) running status and agreement work.OO test platform 102 is through the test case list retrieval test case of operation, implementation of test cases flow process;
TCL (Tools Command Language) function library 103 supplies test platform 102 to call required function in the process of implementation.Test case can directly be called in the implementation of test platform 102;
Whether TCL function inspection module 104 is used for checking that agreement connected state between network tester 106 and the equipment to be tested, network traffics forward-path be whether correct and transmits to exist on the way and lose data message.Further, TCL function inspection module 104 needs to realize fault-tolerant processing mechanism.
TCL Server105 is used to accomplish the virtual configuration of network tester 106, is mapped to network tester 106 application ports;
Network tester 106 is used to accept network annexation and the inspection instruction of feedback TCL function inspection module 104 of configuration-direct mapping, foundation and the equipment to be tested of TCL Server105.
Co-existence network emulation cloud 107 is used for the execution command of response test platform 102, and carries out cyberrelationship with network tester 106 and set up.Co-existence network emulation cloud 107 is built according to the actual set of applications of network and is formed, and it comprises some equipment to be tested;
Logging modle 108 is used to output test result and the test process record.
Test case unit 109; During artificial network is used based on the testing process execution command collection of TCL, said test case carry out each equipment to be tested in the network simulation applied topology functional configuration definition test point, test execution flow process, networking protocol status, network traffics inspection, clear equipment disposition to be tested and cancel the operation definition of network tester 106 configurations.
In conjunction with shown in Figure 2, the method for testing of co-existence network automatization test system 100 may further comprise the steps in the above-mentioned execution mode:
S1, test platform are selected test case, in the TCL function library, call respective function, carry out the procotol configuration, check the correctness of equipment running status to be tested and agreement work.Test case is that the testing process execution command based on TCL collected during artificial network was used.The functional configuration that test case is carried out each equipment to be tested in the network simulation applied topology defines inspection, the clear equipment disposition to be tested of test point, test execution flow process, networking protocol status, network traffics and cancels the operation definition that network tester disposes;
Preferably, step S1 is specially in this execution mode:
When in test case operation of object oriented test platform selecting, in the TCL function library, call respective function, the virtual configuration through TCL Server accomplishes network tester is mapped to the network tester application port then.Carry out the functional configuration of equipment to be tested after operation is accomplished, check between equipment to be tested and the equipment to be tested, the agreement connected state between equipment to be tested and the network tester, butt joint assures success.
S2, call the TCL function library, send subscriber simulation stream to network tester.After successfully docking, call the configuration of TCL function library once more and send subscriber simulation stream to network tester;
S3, call TCL function inspection module, collect state value and statistical value that TCL function inspection module is returned.State value and statistical value comprise: whether whether the agreement connected state between test platform network tester and the equipment to be tested, network traffics forward-path be correct and transmit to exist in the way and lose data message.Know the network tester configuration through the TCL function library after being finished, the implementation of test cases script is removed equipment disposition to be tested;
S4, output test result and the test process record, this test result and test process are stored in the logging modle.
Wherein, before step S1, also comprise:
Application protocol and respective user emulation stream through network tester configuration co-existence network generate the procotol configuration, then with the procotol configuration store that generates in the TCL function library.Preferably, the application configuration module according to various co-existence networks be applied to the early stage tester Network Based carry out the configuration of manual parameters, variable, business data flow.
The present invention provides a whole set of automated testing method and system for the INT (Integrated Network Test) that realizes solution Network Based.Network tester has been realized test caseization, and the manual configuration of complicacy is comprised that talk various network protocols is used and the user service data stream of emulation is packaged into the TCL function library, has simplified the complexity that disposes in the test process like this, has improved testing efficiency; On the other hand; The configuration difficulty that only can simplify procotol application and data service also is not enough to realize effective network simulation test automation, and whether protocol status is correctly set up, and whether the network traffics forward-path is correct; Transmit whether to exist in the way and lose data message etc. and also need carry out narrow examination; Based on these problems, this method provides based on the statistical value of tester and the function of inspection protocol status, in conjunction with network protocol application TCL function library; Equipment disposition use-case to be tested constitutes one and can realize full automatic co-existence network testing scheme.
Problems such as compared with prior art, the present invention can realize the test of co-existence network full automation, carries out full manual operations when avoiding the tester to do the INT test, and testing efficiency is low, and the configuration difficulty is big have also been saved testing cost simultaneously; Reduced the complexity of co-existence network test, made non-senior tester also can accomplish complicated networking test through the automation regression test; Each link is separate during execution, easily the problem through finding in the location networking emulation testing in the use-case implementation record.The present invention also is with good expansibility, and procotol disposes the TCL function library and appliance services to be tested configuration can cover the test of various network application simulation flexibly through increasing.
For the convenience of describing, be divided into various unit with function when describing above the device and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
Description through above execution mode can know, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that the application's technical scheme contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each execution mode of the application or execution mode.
Device embodiments described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of this execution mode scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise DCE of above any system or equipment or the like.
The application can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the application, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
Be to be understood that; Though this specification is described according to execution mode; But be not that each execution mode only comprises an independently technical scheme, this narrating mode of specification only is for clarity sake, and those skilled in the art should make specification as a whole; Technical scheme in each execution mode also can form other execution modes that it will be appreciated by those skilled in the art that through appropriate combination.
The listed a series of detailed description of preceding text only is specifying to feasibility execution mode of the present invention; They are not in order to restriction protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill of the present invention spirit done and all should be included within protection scope of the present invention.

Claims (10)

1. a co-existence network automated testing method is characterized in that, said method comprises:
S1, test platform are selected test case, in the TCL function library, call respective function, carry out the procotol configuration, check the correctness of equipment running status to be tested and agreement work;
S2, call the TCL function library, send subscriber simulation stream to network tester;
S3, call TCL function inspection module, collect state value and statistical value that TCL function inspection module is returned;
S4, output test result and the test process record.
2. method according to claim 1 is characterized in that, also comprises before the said step S1:
Application protocol and respective user emulation stream through network tester configuration co-existence network generate the procotol configuration;
With the procotol configuration store that generates in the TCL function library.
3. method according to claim 1 is characterized in that, said test case is that the testing process execution command based on TCL collected during artificial network was used.
4. method according to claim 3; It is characterized in that the functional configuration that said test case is carried out each equipment to be tested in the network simulation applied topology defines inspection, the clear equipment disposition to be tested of test point, test execution flow process, networking protocol status, network traffics and cancels the operation definition that network tester disposes.
5. method according to claim 1 is characterized in that, said step S1 is specially:
Test platform is selected test case, in the TCL function library, calls respective function;
Virtual configuration through TCL Server completion network tester is mapped to the network tester application port;
Carry out the functional configuration of equipment to be tested, check between equipment to be tested and the equipment to be tested, the agreement connected state between equipment to be tested and the network tester.
6. method according to claim 1; It is characterized in that " state value and statistical value that TCL function inspection module is returned " comprising among the said step S3: the agreement connected state between test platform network tester and the equipment to be tested, network traffics forward-path whether correct and transmit on the way in whether exist and lose data message.
7. method according to claim 1 is characterized in that, also comprises behind the said step S3:
Know the network tester configuration through the TCL function library;
The implementation of test cases script is removed equipment disposition to be tested.
8. co-existence network automatization test system according to claim 1 is characterized in that said system comprises:
The test case unit, the testing process execution command based on TCL during artificial network is used collects;
Test platform is used to select test case to carry out the procotol configuration, checks the correctness of equipment running status to be tested and agreement work;
The TCL function library supplies test platform to call required function in the process of implementation;
TCL Server is used to accomplish the virtual configuration of network tester, is mapped to the network tester application port;
Whether TCL function inspection module is used for checking that agreement connected state between network tester and the equipment to be tested, network traffics forward-path be whether correct and transmits to exist on the way and lose data message;
Network tester is used to accept network annexation and the inspection instruction of feedback TCL function inspection module of configuration-direct mapping, foundation and the equipment to be tested of TCL Server;
Co-existence network emulation cloud is used for the execution command of response test platform, and carries out cyberrelationship with network tester and set up;
Logging modle is used to output test result and the test process record.
9. system according to claim 8; It is characterized in that the functional configuration that said test case is carried out each equipment to be tested in the network simulation applied topology defines inspection, the clear equipment disposition to be tested of test point, test execution flow process, networking protocol status, network traffics and cancels the operation definition that network tester disposes.
10. system according to claim 9 is characterized in that, said system also comprises:
The application configuration module is used for application protocol and respective user emulation stream through network tester configuration co-existence network, generate the procotol configuration, and the procotol configuration store that just generates is in the TCL function library.
CN2011103929444A 2011-12-01 2011-12-01 Comprehensive networking automation testing method and system Pending CN102420722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103929444A CN102420722A (en) 2011-12-01 2011-12-01 Comprehensive networking automation testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103929444A CN102420722A (en) 2011-12-01 2011-12-01 Comprehensive networking automation testing method and system

Publications (1)

Publication Number Publication Date
CN102420722A true CN102420722A (en) 2012-04-18

Family

ID=45944969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103929444A Pending CN102420722A (en) 2011-12-01 2011-12-01 Comprehensive networking automation testing method and system

Country Status (1)

Country Link
CN (1) CN102420722A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799508A (en) * 2012-07-09 2012-11-28 深圳市共进电子股份有限公司 Automatic test system and method
CN103580929A (en) * 2013-11-21 2014-02-12 盛科网络(苏州)有限公司 Automation testing method and automation testing device for looped network switch delay
CN104065398A (en) * 2014-07-03 2014-09-24 重庆大学 Design method and system of electric power information communication network convergence test platform
CN104598343A (en) * 2015-01-26 2015-05-06 北京奥普维尔科技有限公司 Method for recovering last test after electrification

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841340A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Method and system for testing drive software
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841340A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Method and system for testing drive software
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799508A (en) * 2012-07-09 2012-11-28 深圳市共进电子股份有限公司 Automatic test system and method
CN103580929A (en) * 2013-11-21 2014-02-12 盛科网络(苏州)有限公司 Automation testing method and automation testing device for looped network switch delay
CN104065398A (en) * 2014-07-03 2014-09-24 重庆大学 Design method and system of electric power information communication network convergence test platform
CN104598343A (en) * 2015-01-26 2015-05-06 北京奥普维尔科技有限公司 Method for recovering last test after electrification
CN104598343B (en) * 2015-01-26 2017-11-14 北京奥普维尔科技有限公司 Recover the method for last time test after upper electricity

Similar Documents

Publication Publication Date Title
US8737980B2 (en) End to end application automatic testing
CN106776313B (en) Method and device for simulating service and centralized management platform
CN109218139B (en) Gateway test system
CN100544292C (en) A kind of method of BAS Broadband Access Server automatic test
CN105335293A (en) Automatic testing system and method based on parallel ports
CN201392526Y (en) Onboard test system for mobile applications
CN105450476A (en) Regression test system and test method
US7337361B2 (en) Test harness for enterprise application integration environment
CN100466563C (en) Central monitoring method of the data service system without network management interface
CN108845940A (en) A kind of enterprise information system automated function test method and system
US11405302B1 (en) Methods, systems, and computer readable media for network testing using configurable test infrastructure
CN103036734A (en) Logic verification method and logic verification system for network chip
CN107302476A (en) A kind of automated testing method and system for testing asynchronous interactive system
CN102594618A (en) Method and device for realizing storage device test of storage area network (SAN)
CN108536484A (en) Parameter amending method, device, terminal device and storage medium
CN102420722A (en) Comprehensive networking automation testing method and system
CN102098702A (en) Performance testing system, method and equipment
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN112583663B (en) Automatic network performance testing method based on domestic operating system
CN102736926A (en) Upgrade method, device and batch upgrade system based on task template
CN105227407B (en) A kind of protocol debugging method, apparatus and system
CN104333486A (en) Testing system and method of network cell device
CN102006119B (en) Network management simulation system and method of optical transmission system
CN105323109B (en) Interconnection network simulator and method for simulating interconnection network
CN100518097C (en) Simple detection method for GGSN facilities

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120418