Background technology
Along with the maturation day by day of digital subscriber line (DSL, Digital Subscriber Line) technology, measuring technology has turned to interoperability (Interoperability) test from consistency (Conformance) test of strictness.Wherein the TR-048 Interoperability Testing standard of DSL forum is the general Interoperability Testing standard of industry one cover, in order to guarantee by between the equipment that different manufacturer produced, under the condition of master data throughput that satisfies regulation and performance requirement, realize interconnection and interflow each other.
Interoperability in the TR-048 Interoperability Testing standard of above-mentioned DSL forum is meant: if a client device (CPE, Custom Premises Equipment) modulator-demodulator (MODEM) and a digital subscriber line access multiplex (DSLAM, Digital Subscriber Line AccessMultiplexer) carrying out identical or compatible parameter between, under function and the option condition, with the network architecture of reality environment as performance test, in the test environment change procedure, they can show gratifying communication, claim that then they are dynamic intercommunications.
The TR-048 Interoperability Testing of DSL forum is that the communication intercommunication between DSLAM and the CPE MODEM is tested.TR-048 Interoperability Testing system generally comprises line simulator, Smartbits tester.Wherein line simulator is a kind of noise generation equipment, is used for being provided with in TR-048 Interoperability Testing system the noise and the analog line length of TR-048 regulation; The Smartbits tester is a kind of equipment that data traffic takes place and analysis combines that collects, and is used to test the error rate and the packet loss of transfer of data between DSLAM and the CPE MODEM.
In the prior art, need the Test Engineer to pass through manual configuration DSLAM parameter, line simulator parameter and Smartbits tester parameter on the operation interface of testing machine, and the data that artificially DSLAM, line simulator and Smartbits tester in the test process fed back to and the corresponding index parameter in the TR-048 standard compare and generate test report.
With reference to Fig. 1, be the structured flowchart of TR-048 Interoperability Testing system.The Test Engineer is by opening DSLAM 2 control interfaces on the operation interface of testing machine 1, adopt the every initial configuration parameter of DSLAM 2 in the manual mode input test process, and the data that DSLAM in the test process 2 fed back to by DSLAM 2 control interfaces and the corresponding index parameter in the TR-048 standard compare, and then the result data after the comparative analysis write file system.
Equally, by on the operation interface of testing machine 1, opening the control interface of line simulator 3, initial configuration parameters such as noise level that the input of employing manual mode is provided with and analog line length value, and on the control interface of line simulator 3 according to test process in the data that feed back to of line simulator 3 and the corresponding index parameter in the TR-048 standard compare, then the result data after the comparative analysis is write file system.
By on the operation interface of testing machine 1, opening the control interface of Smartbits tester 4, adopt initial configuration parameters such as manual mode configuration testing attribute data value, and after the testing time of in the TR-048 standard, stipulating, the control interface of Smartbits tester 4 according to test process in the data that feed back to of Smartbits tester 4 and the corresponding index parameter in the TR-048 standard compare, then the result data after the comparative analysis is write file system.
Wherein MODEM 5 in the ordinary course of things its parameter can take default setting, be not described in detail so do not add here.
Owing to relate to a plurality of test cases in the TR-048 standard, when each test case is tested, all need DSLAM initial configuration parameter, line simulator initial configuration parameter and Smartbits tester initial configuration parameter are reset; Statistics and when analyzing every data that DSLAM, line simulator and Smartbits tester feed back on the operation interface of testing machine simultaneously, may also need repeatedly to average, particularly for the Smartbits tester, through after several hours the transfer of data, its data value that feeds back to may be quite big.Thereby above-mentioned two reasons can make in DSL Interoperability Testing process, cause Test Engineer's task amount big and the test result accuracy is low, and then also cause testing efficiency low, the problem of waste of human resource.
Summary of the invention
The present invention proposes a kind of interoperability testing method and system of equipment room, for solving the problem that Test Engineer's task amount is big and testing efficiency is low in the prior art.
The present invention proposes a kind of interoperability testing method and system of equipment room, also for solving the low problem of test result accuracy in the prior art.
For this reason, the present invention proposes a kind of interoperability testing method of equipment room, comprise step:
(S1) be created as mapping relations each test case and the required testing equipment of this test case of execution, and at the initial configuration parameter and the test command of each testing equipment;
When (S2) carrying out each test case, according to described mapping relations, initial configuration parameter that will be corresponding and test command with this test case be issued to respectively with the corresponding corresponding testing equipment of this test case in, testing equipment is carried out corresponding test command, to finish Interoperability Testing.
Wherein step (S2) further comprises afterwards:
(S251) in time catch the test data that described testing equipment is fed back;
(S252) the corresponding index parameter in the Interoperability Testing standard of described test data and storage is compared processing, and then obtain result data.
The invention allows for a kind of Interoperability Testing system of equipment room simultaneously, this system comprises:
Mapping block is used for each test case and the required testing equipment of this test case of execution, and is created as mapping relations at the initial configuration parameter and the test command of each testing equipment;
Issue module, be used for when carrying out each test case, according to described mapping relations, initial configuration parameter that will be corresponding and test command with this test case be issued to respectively with the corresponding corresponding testing equipment of this test case in.
This Interoperability Testing system also further comprises:
Trapping module is used in time catching the test data that described testing equipment is fed back;
The compare of analysis module is connected with described trapping module, is used for the processing that compares of corresponding index parameter with the Interoperability Testing standard of test data and storage, and then obtains result data.
Beneficial effect of the present invention: each testing equipment is issued initial configuration parameter and test command because interoperability testing method between present device and system automatically perform, and the process that the test data of each testing equipment feedback is compared, do not need the Test Engineer artificial be configured and analyze data, so alleviated Test Engineer's task amount, the compare of analysis data procedures that automatically performs of Cai Yonging has also improved testing efficiency and testing precision simultaneously.
Embodiment
The TR-048 Interoperability Testing that is mainly used in DSL forum with interoperability testing method between present device and system is that example is described below.
At first with reference to Fig. 2, be the flow chart that issues initial configuration parameter and test command of first embodiment in interoperability testing method between present device and the system; In the step 70, according to each test case, formulate the test plan and the scheme of this test case, promptly according to each test case, in conjunction with the TR-048 standard, specify to carry out the testing equipment of this test case, and to the initial configuration parameter of each testing equipment with need the test command carried out, and these correspondent entities are created as mapping relations; And then a plurality of such mapping relations can also be formed the mapping relations table.With reference to Fig. 3, be the mapping relations hoist pennants, be provided with a plurality of test cases in the mapping relations table, for example form to test case An by routine A1 on probation then; Wherein each test case all according to the regulation of TR-048 standard, is determined to carry out the testing equipment of each test case, and the initial configuration parameter and the test command that need at each testing equipment, thereby a mapping relations table formed.
In the step 80, when carrying out a test case,, in a plurality of mapping relations that step 70 is set up, retrieve the testing equipment corresponding with this test case according to this test case, and at the initial configuration parameter and the test command of each testing equipment.As shown in Figure 3, when wanting implementation of test cases A1, in this mapping relations table, retrieve the testing equipment 1 corresponding to testing equipment m with this test case A1, and the initial configuration parameter and the test command of testing equipment 1 correspondence ... the initial configuration parameter and the test command of testing equipment m correspondence;
In the step 90, the initial configuration parameter and the test command that retrieve are issued to respectively in the corresponding testing equipment that retrieves, as shown in Figure 3, initial configuration parameter and the test command with testing equipment 1 correspondence is issued in the testing equipment 1 ... the initial configuration parameter and the test command of testing equipment m correspondence are issued among the testing equipment m.
Further, mapping relations table storage shown in Figure 3 can also be used in order to subsequent query.When carrying out a certain test case, at first the mapping relations of this test case correspondence are downloaded use from the mapping relations table of storage.
With reference to Fig. 4, be the test process flow chart of interoperability testing method second embodiment between present device.The main process of this interoperability testing method is as follows:
In the step 100, at first from the good mapping relations table of storage in advance, the pairing mapping relations of test case that will carry out are downloaded; Mapping relations table as Fig. 3, when wanting implementation of test cases A1, (these mapping relations comprise test case A1 in mapping relations download that will be corresponding with this test case A1 in this mapping relations table, and corresponding testing equipment 1 is to testing equipment m, and the initial configuration parameter and the test command of testing equipment 1 correspondence ... the initial configuration parameter and the test command of testing equipment m correspondence).
In the step 200, in the information that step 100 is downloaded,, reach the initial configuration parameter and the test command information retrieval that need at each testing equipment and come out the testing equipment of carrying out this test case correspondence; Mapping relations table as Fig. 3, when wanting implementation of test cases A1, in the information of downloading, retrieve the testing equipment 1 corresponding to testing equipment m with this test case A1, and the initial configuration parameter and the test command of testing equipment 1 correspondence ... the initial configuration parameter and the test command of testing equipment m correspondence.
In the step 300, the initial configuration parameter and the test command that need at each testing equipment that step 200 is retrieved are issued to respectively in the testing equipment that retrieves accordingly; Mapping relations table as Fig. 3, when wanting implementation of test cases A1, the initial configuration parameter and the test command of testing equipment 1 correspondence that retrieves is issued in the testing equipment 1 ... the initial configuration parameter and the test command of the testing equipment m correspondence that retrieves are issued among the testing equipment m.
In the step 400, each testing equipment feeds back to test data, and the test data that each testing equipment feeds back to is in time caught automatically after carrying out corresponding test command;
In the step 500, test data that step 400 is in time caught and the corresponding index parameter among the TR-048 are carried out one by one compare of analysis, and (wherein the TR-048 standard provides the index parameter of standard and all storages in advance of index parameter of these standards, after the compare of analysis processing according to test data and corresponding index parameter, can access the result data whether corresponding test index is passed through, certainly the present invention is not limited to the test of TR-048 interoperability standard, also can be other Interoperability Testings, the corresponding standard index parameter of corresponding storage in advance), and then obtain result data, i.e. the message whether passed through of test index.
In the step 600,,, be used for backup and subsequent query to form test report with the result data that obtains in the step 500 being written in the file system one by one.
To carry out the required testing equipment of a certain test case be line simulator and Smartbits tester in the TR-048 modular system in supposition below, so that to be used for testing DSLAM in the DSL system and the interoperability between the MODEM be example Interoperability Testing of the present invention system carried out detailed narration.With reference to Fig. 5, be the structured flowchart of first embodiment of Interoperability Testing system between present device; Wherein the Interoperability Testing system that proposes of this embodiment comprise mapping block 9, retrieval module 12, issue module 13, trapping module 14, compare of analysis module 15 and writing module 16; Above-mentioned module is all placed testing machine 1, and wherein the function of each module and annexation are as follows:
Mapping block 9 is mainly used in each test case and the required testing equipment of this test case of execution, and is created as mapping relations at the initial configuration parameter and the test command of each testing equipment;
Retrieval module 12, be connected with mapping block 9, be mainly used in, in a plurality of mapping relations that mapping block 9 is set up according to each test case, retrieve and carry out the required testing equipment of this test case, and at the initial configuration parameter and the test command information of each testing equipment;
Issue module 13, be connected, be mainly used in initial configuration parameter and test command that retrieval module 12 is retrieved and be issued to respectively in the corresponding testing equipment that retrieves with retrieval module 12; Be further used for making corresponding testing equipment after setting up the initial configuration parameter, to carry out corresponding test command, so that the every Interoperability Testing task between DSLAM in the DSL system and the MODEM is tested;
Trapping module 14 is mainly used in the test data that each testing equipment is fed back to and in time catches automatically, the every test data that feeds back to each testing equipment of timely acquisition;
Compare of analysis module 15 is connected with trapping module 14, is mainly used in test data that trapping module 14 is caught and the corresponding index parameter among the TR-048 and compares and handle, and then obtain result data; Promptly the corresponding index parameter among test data and the TR-048 is compared processing one by one, to draw the result data whether corresponding Interoperability Testing index is passed through;
Writing module 16 is connected with compare of analysis module 15, is mainly used in the result data that compare of analysis module 15 is drawn and writes file system one by one, to form test report, in order to backup and follow-up inquiry.
Wherein, the mapping relations table that a plurality of mapping relations are formed can also be stored, when calling a certain mapping relations, at first these mapping relations be downloaded and re-used for reusing later on the above-mentioned mapping relations of having set up.
With reference to Fig. 6, be the second example structure block diagram of the Interoperability Testing system between present device; Wherein the Interoperability Testing system of this embodiment proposition comprises mapping block 9, memory module 10, download module 11, retrieval module 12, issues module 13, trapping module 14, compare of analysis module 15 and writing module 16; Above-mentioned module is also all placed testing machine 1, and wherein the function of each module and annexation are as follows:
Mapping block 9 is mainly used in each test case and the required testing equipment of this test case of execution, and is created as mapping relations at the initial configuration parameter and the test command of each testing equipment;
Memory module 10, be connected with mapping block 9, be mainly used to store each test case and carry out the required testing equipment of this test case, and the mapping relations table formed of the mapping relations of setting up at the initial configuration parameter of each testing equipment and test command; Promptly test case mapping relations table as shown in Figure 3 just is stored in this memory module 10;
Download module 11, be connected with memory module 10, be mainly used in from memory module 10 mapping relations of downloading the correspondence of each test case in the mapping relations table of storage, promptly download this test case and carry out the required testing equipment of this test case and at the initial configuration parameter and the test command information of each testing equipment;
Retrieval module 12, be connected with download module 11, be mainly used in, in the information that download module 11 is downloaded according to each test case, retrieve and carry out the required testing equipment of this test case, and at the initial configuration parameter and the test command information of each testing equipment;
Issue module 13, be connected, be mainly used in initial configuration parameter and test command that retrieval module 12 is retrieved and be issued to respectively in the corresponding testing equipment that retrieves with retrieval module 12; Be further used for making corresponding testing equipment after setting up the initial configuration parameter, to carry out corresponding test command, so that the every Interoperability Testing task between DSLAM in the DSL system and the MODEM is tested;
Trapping module 14 is mainly used in the test data that each testing equipment is fed back to and in time catches automatically, the every test data that feeds back to each testing equipment of timely acquisition;
Compare of analysis module 15 is connected with trapping module 14, is mainly used in test data that trapping module 14 is caught and the corresponding index parameter among the TR-048 and compares and handle, and then obtain result data; Promptly the corresponding index parameter among test data and the TR-048 is compared processing one by one, to draw the result data whether corresponding Interoperability Testing index is passed through;
Writing module 16 is connected with compare of analysis module 15, is mainly used in the result data that compare of analysis module 15 is drawn and writes file system one by one, to form test report, in order to backup and follow-up inquiry.
Wherein in testing machine 1, each above-mentioned functional module is in the process of carrying out testing process, issuing module 13 is issued to DSLAM initial configuration parameter and test command among the DSLAM by serial ports, simultaneously line simulator initial configuration parameter and test command are issued in the line simulator by serial ports, and Smartbits tester initial configuration parameter and test command are issued in the Smartbits tester by network interface; DSLAM, line simulator and Smartbits tester carry out in the corresponding interoperability test process, constantly test data is fed back to testing machine 1 by corresponding serial ports, network interface, the test data that 14 pairs of these three testing equipments of trapping module in the testing machine 1 feed back to is caught automatically, in time deliver to compare of analysis module 15 then, with with the TR-048 standard in the corresponding index parameter compare, to obtain the result data whether corresponding index test is passed through; In time the result data that obtains is delivered to writing module 16 more then, be written to one by one in the file system, to form the form of test report.
Issue module 13 respectively by the logical channel between script foundation and DSLAM, line simulator and the Smartbits tester in the above-mentioned testing machine 1, by corresponding script logic of language passage initial configuration parameter and test command are issued in the corresponding testing equipment respectively then; Each testing equipment feeds back to test data in the testing machine 1 by these corresponding script logic of language passages respectively more then, with carry out follow-up catching, compare of analysis handles and write operation.Its detailed processing is as follows:
With reference to Fig. 5, on testing machine 1, utilize certain program language, as TCL (Tools CommandLanguage), Microsoft Visual C++, write DSLAM controlling packet, dynamic link libraries (DLL, Dynamic Link Library), to form the script logical channel, issue module 13 then and initial configuration parameter and the test command of DSLAM is issued to DSLAM by this logical channel; Testing machine 1 uses serial ports or network interface simultaneously, sends or receive binary code or the character string instruction of control DSLAM, communicates; And DSLAM returns test data by this logical channel that forms and gives testing machine 1, to carry out next step operation.
With reference to Fig. 6, on testing machine 1, utilize certain program language, as TCL (Tools CommandLanguage), Microsoft Visual C++, some control interfaces that utilization has had and the bottom layer driving order of testing equipment (comprising line simulator and Smartbits tester), write corresponding testing equipment controlling packet, dynamic link libraries DLL, to form corresponding script logic of language passage.In issuing module 13, by test command through serial ports, network interface or general-purpose interface bus GPIB card and GPIB cable, be handed down to corresponding testing equipment.After testing equipment is received test command, carry out test accordingly.As test data, the script logical channel by forming feeds back to testing machine 1 to testing equipment some test mode value then.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.