CN103560829B - Method and system for automatic testing of UNI ports - Google Patents

Method and system for automatic testing of UNI ports Download PDF

Info

Publication number
CN103560829B
CN103560829B CN201310534355.4A CN201310534355A CN103560829B CN 103560829 B CN103560829 B CN 103560829B CN 201310534355 A CN201310534355 A CN 201310534355A CN 103560829 B CN103560829 B CN 103560829B
Authority
CN
China
Prior art keywords
test
case
file
terminal
uni port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310534355.4A
Other languages
Chinese (zh)
Other versions
CN103560829A (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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201310534355.4A priority Critical patent/CN103560829B/en
Publication of CN103560829A publication Critical patent/CN103560829A/en
Application granted granted Critical
Publication of CN103560829B publication Critical patent/CN103560829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and system for automatic testing of UNI ports. The method comprises the steps that a test environment is built, all the UNI ports of a tested ONU have access to a downlink access device, the tested ONU is connected with an OLT, a network data analyzer is respectively connected with the downlink access device and the OLT, and a test terminal is respectively connected with and controls the downlink access device, the OLT and the network data analyzer; the test parameters and the test cases of the UNI ports are configured through the test terminal; the test terminal automatically adjusts the execution sequence of the test cases, the test cases are executed according to the adjusted sequence, and a test log and a test report are generated. The method and system can achieve the rate-limiting function test of all the UNI ports of the tested ONU, and content is more detailed and richer; the manual operation of test personnel is not needed, an instrument free clearance is small, and the testing efficiency of the device is greatly improved; related test log information exists in the test process, and a bug is convenient to analyze and trace.

Description

The automated testing method and system of a kind of uni port
Technical field
The invention belongs to technical field of measurement and test, it is related to a kind of method of testing of uni port, more particularly to a kind of UNI ends The automated testing method and system of mouth.
Background technology
With developing rapidly for the communication technology, backbone network, LAN make rapid progress, access network as whole network " most Latter kilometer ", its bandwidth but into the bottleneck of network Development, especially with emerging network business such as video conference, video point Broadcast, the requirement more and more higher of visual telephone etc. to bandwidth so that the problem is further severe.Solve one of means of the problem just It is to introduce EPON (Passive Optical Networks, PON).EPON based on Ethernet (Ethernet Passive Optical Networks, EPON) have transmission frequency bandwidth, big, low in energy consumption capacity, low cost, Highly reliable the advantages of, it has also become one of main flow direction of network bandwidth development.The ductility limit speed of EPON system is divided into up with Two aspects of row.It is up:The user side Ethernet interface of ONU needs to support the port speed constraint function of uplink service;ONU The up speed limit of uni port of (Optical Network Unit, optical node) is proposed with single speed Policing mechanism, and props up Hold carries out remote management based on " Eth Port US Policing " attribute to the up speed limiting function of ethernet port.It is descending: The user side Ethernet interface of ONU needs to support the port speed constraint function of downlink business that optional support is based on the speed limit of Business Stream Function;The descending speed limit of uni port of ONU is proposed with Traffic Shaping modes, and supports to be based on " Eth Port DS Rate Limiting " attributes carry out remote management to the descending speed limiting function of ethernet port.
At present, in the test process of uni port speed limiting function, the method for testing for using is:1) test topology is built;2) 100M data flows are sent to uni port using network data analyzer (Ixia), the uni port that observation is docked with Ixia ports Receive data cases;3) configuring uni port speed limit speed by OLT (Optical line terminal, optical line terminal) is CIR=10M;4) 100M data flows, the reception of the uni port that observation is docked with Ixia ports are sent to uni port using Ixia Data cases;5) test result is judged, multi-upstream access device can correctly configure the speed limit speed of the uni port of ONU, UNI ends The 10M that the reception data rate of Ixia mouthfuls of mouth docking is configured by step 3.Existing test job is all held by hand by tester OK, the port number of actual test uni port speed limit is limited, and the test that complete all uni port speed limits needs tester The consumption plenty of time performs the mechanical test operation for repeating.Especially, when thering is thousands of project to need to repeat port limit When speed test, it is extremely low that the test job of uni port speed limit will become extremely uninteresting, efficiency, but also can be because of test The concrete condition difference that personnel perform causes test result difference occur.So, the shortcoming of prior art is as follows:1) uni port The test item number of speed limiting function is limited, does not have more time test multiple traffic value and multiple packet moulds of different sizes Intend flow;2) configuration in testing includes the configuration of OLT and the configuration of Ixia, is required for tester to have been manually done, and the time is too Long, multi-pass operation is more uninteresting and inefficiency;3) need to toggle configuration between Ixia and OLT in test process, when OLT is idle during configuration Ixia, or Ixia is idle during configuration OLT, and equipment free time is increased, and is unfavorable for the reasonable of test resource Utilize;4) all information need tester to be obtained according to the subjective judgement of oneself in test process, after there is bug, analysis Compare dependence tester's subjective judgement, deterministic process is complex, and efficiency is not also high;5) testing efficiency is than relatively low, and works as When project is more, the test of uni port speed limiting function needs tester constantly to repeat identical test action, for test number According to collection repetition and poorly efficient, it is necessary to tester by Ixia software hand-kepts, seems when test item.
The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of automation survey of uni port Method for testing and system, the operating efficiency for solving the problems, such as existing uni port speed limit test are low.
In order to achieve the above objects and other related objects, the present invention provide a kind of uni port automated testing method and System.
The automated testing method of the uni port includes:Test environment is built, whole uni ports of tested ONU are connect Enter a descending access device, tested ONU is connected into an OLT, the descending access is connected respectively using a network data analyzer Device and OLT, the control descending access device, OLT and network data analyzer are connected using a test terminal respectively;Pass through The test terminal configures the test parameter and test case of the uni port;Tested described in the test terminal adjust automatically The execution sequence of use-case, and by the order implementation of test cases after adjustment, generate test log and test report.
Preferably, the detailed process of the test parameter of the test terminal configuration uni port includes:The test is eventually Hold in test parameter configuration storage to first file fixed, the test script in test terminal is by accessing described first File reads corresponding test parameter configuration;The test parameter include the OLT management address related to tested uni port, under The management address of row access device, the management address of network data analyzer, the occupancy board number and quilt of network data analyzer Survey the descending access device port numbers of uni port docking.
Preferably, the detailed process of the test case of the test terminal configuration uni port includes:The test is eventually End provides the test case mark related to tested uni port, tester is selected corresponding test according to test item demand Use-case;The test terminal stores in second file fixed test case configuration, the test script in test terminal Test case is called to identify associated use-case test script by accessing second file.
Preferably, the detailed process of the test terminal implementation of test cases includes:The test terminal starts test pin This explanation thread, loads and runs the use-case test script corresponding to the test case chosen by the explanation thread.
Preferably, the detailed process of the test terminal generation test log and test report includes:The test terminal The log information that will be produced in test process is deposited in the 3rd file specified;Test script in test terminal is by visiting Ask reading the 3rd file for operating personnel provide test log information;The survey that the test terminal will generate in test process Examination data are extracted, and are saved in the 4th file specified according to pre-defined rule;When all test cases are finished Afterwards, the test script in the test terminal is concluded to corresponding survey test data by the method that matching test use-case is identified Example and test item on probation, and generate test report according to result is concluded.
Preferably, the language of writing of the test script includes TCL scripts.
The automatization test system includes:Descending access device, accesses whole uni ports of tested ONU;OLT, with institute State tested ONU connections;Network data analyzer, is connected respectively with the descending access device and OLT;Test terminal, it is and described Descending access device, OLT and network data analyzer are connected respectively, the demand according to test item to the descending access device, OLT and network data analyzer carry out test initialization configuration respectively, and the test parameter and test for configuring the uni port are used Example, the execution sequence of test case described in adjust automatically, and by the order implementation of test cases after adjustment, generation test log and Test report.
Preferably, the test terminal includes:Test parameter configuration module, configures the OLT pipe related to tested uni port Reason address, the management address of descending access device, the management address of network data analyzer, the occupancy plate of network data analyzer The descending access device port numbers that card number is docked with tested uni port;Test case configuration module, matches somebody with somebody with the test parameter Put module to be connected, there is provided the test case mark related to tested uni port, tester is selected right according to test item demand The test case answered;Test case performing module, is connected with the test case configuration module, according to the test case chosen Correlation degree adjusts the execution sequence of test case, and according to the order implementation of test cases after adjustment;Test log generates mould Block, is connected with the test case performing module, and log information is produced in test process;Test report generation module, with institute State test case performing module to be connected, the test data that will be generated in test process is extracted, when all test cases are performed After finishing, the method identified by matching test use-case is concluded to corresponding test case and test item test data, and root Test report is generated according to result is concluded.
Preferably, the test terminal also includes:First file, is connected with the test parameter configuration module, and storage is surveyed Examination parameter configuration;Second file, is connected with the test case configuration module, storage test case configuration;3rd file, with institute State test log generation module to be connected, the log information produced in storage test process;4th file, gives birth to the test report It is connected into module, the test data generated in test process is preserved according to pre-defined rule;Test script module, with the described first text Part, the second file, the 3rd file, the 4th file, test case performing module are respectively connected with, and start the explanation line of test script Journey, reads corresponding test parameter and configures by the first file described in the explanation thread accesses, accesses second file and comes Call test case to identify associated use-case test script, load and run the associated use-case of the test case mark called Test script, accesses and reads the 3rd file for operating personnel provide test log information, is identified by matching test use-case Method test data is concluded to corresponding test case and test item, and according to conclude result generation test report.
Preferably, the test item is the speed limiting function test of the uni port of tested ONU, including:The UNI ends of tested ONU The up speed limit test of mouth, descending speed limit are tested, the flow rate test of different pieces of information bag size and speed limit are tested.
As described above, the automated testing method and system of uni port of the present invention, have the advantages that:
A kind of shortcoming of the present invention for the test of existing uni port speed limit, there is provided automation that can realize uni port The method of test.The automated testing method can complete all uni port speed limiting functions test of tested ONU, it is also possible to survey The multiple traffic values of examination, the digital simulation flow of multiple sizes, content are more more detailed than existing measuring technology, more rich;Need not survey Examination personnel manual operations, considerably reduces the input of manpower;Test process Instrumental is used by apparatus control, and idle gap is very It is small, drastically increase the utilization rate of equipment;Have in test process correlation test log information, can facilitate bug analysis, Follow the trail of;Reduce the Production Time of test report.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the automated testing method of uni port of the present invention.
Fig. 2 is the building structure schematic diagram of test environment of the present invention.
Fig. 3 is the structural representation of the automatization test system of uni port of the present invention.
Component label instructions
310 descending access devices
320 OLT
330 network data analyzers
340 test terminals
341 test parameter configuration modules
342 test case configuration modules
343 test case performing modules
344 test log generation modules
345 test report generation modules
346 first files
347 second files
348 second files
349 second files
350 test script modules
Specific embodiment
Embodiments of the present invention are illustrated below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages of the invention and effect easily.The present invention can also be by specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints with application, without departing from Various modifications or alterations are carried out under spirit of the invention.
Refer to accompanying drawing.It should be noted that the diagram provided in the present embodiment only illustrates the present invention in a schematic way Basic conception, component count, shape when only display is with relevant component in the present invention rather than according to actual implementation in schema then Shape and size are drawn, and it is actual when the implementing kenel of each component, quantity and ratio can be a kind of random change, and its component cloth Office's kenel is likely to increasingly complex.
With reference to embodiment and accompanying drawing, the present invention is described in detail.
Embodiment
The present embodiment provides a kind of automated testing method of uni port, as shown in figure 1, the automation of the uni port Method of testing includes:
Test environment is built, detailed process is shown in Figure 2, whole uni ports of tested ONU are accessed into a descending access Device, an OLT is connected by tested ONU, and the descending access device and OLT are connected respectively using a network data analyzer, profit The control descending access device, OLT and network data analyzer are connected respectively with a test terminal.Specifically, it is described tested ONU accesses descending access device (i.e. interchanger) by netting twine, and all uni ports all connect descending access device;Tested ONU Multi-upstream access device (i.e. optical line terminal OLT) is connected by optical fiber and ODN (optical branching device), multi-upstream access device and descending is connect Enter device and network data analyzer (Ixia) is connected by netting twine or optical fiber cable, test terminal (such as PC) passes through hub or network Connection multi-upstream access device, descending access device, network data analyzer.
The test parameter and test case of the uni port are configured by the test terminal;The test terminal is automatic The execution sequence of the test case is adjusted, and is reported by the order implementation of test cases after adjustment, generation test log and test Accuse.Specifically, the test case for being performed by test script configuration testing parameter and needs on test terminal;By testing pin The execution sequence of this adjustment test case simultaneously presses the automatic implementation of test cases of order after adjustment, can be checked by test script Test log information in test process and check test record, generation test report.
Further, the test terminal configures the test parameter of the uni port, for test script provides accurate data Drive;Detailed process includes:The test terminal stores in first file fixed test parameter configuration, test terminal In test script read corresponding test parameter by accessing first file and configure.The test parameter includes and is tested Uni port related OLT management address, the management address of descending access device, the management address of network data analyzer, network The descending access device port numbers that the occupancy board number of data analyzer is docked with tested uni port.
The test terminal configures the test case of the uni port, the tool for alloing tester to select needs to perform Body test case;Detailed process includes:The test terminal provides the test case mark related to tested uni port, makes survey Examination personnel select corresponding test case according to test item demand;The test terminal fixes test case configuration storage to one The second file in, it is associated that the test script in test terminal calls test case to identify by accessing second file Use-case test script.
The execution sequence of test case described in the test terminal adjust automatically, by the use-case with relevance according to certain Order is arranged, there is provided execution efficiency.
The test terminal implementation of test cases, allows tester by a fortune for component controls test script OK;Test case is identified by test case and is associated with corresponding test script, is used by matching test when performing use-case Example identifies to search corresponding test script.Detailed process includes:The test terminal starts the explanation thread of test script, passes through It is described to explain that thread loads and run the use-case test script corresponding to the test case chosen.The test case identifies form It is as follows:The 10M port speed constraints test of UNI mouthfuls of up 512B of eth1, the 10M port speed constraints of the UNI mouthful descending 512B of eth1 are tested etc..
Test data is come out and is stored in a file specified by the test terminal by certain rule, makes tester Only the file specified need to be accessed can check test data to member;The tool of the test terminal generation test log and test report Body process includes:The log information that the test terminal will produce in test process is deposited in the 3rd file specified;Survey Test script in examination terminal reads the 3rd file for operating personnel provide test log information by accessing;The test The test data that terminal will be generated in test process is extracted, and is saved in the 4th file specified according to pre-defined rule It is interior;After all test cases are finished, the side that the test script in the test terminal is identified by matching test use-case Method concludes to corresponding test case and test item test data, and generates test report according to result is concluded.The test Terminal deposits in the file specified some log informations produced in test process by the form of text, it is possible to For operating personnel provide test log information by way of accessing and reading specified file, this mode can improve test log letter What is ceased checks speed.
The composition of test log information refers to following example:
The language of writing of the test script includes TCL scripts.Test script to write step as follows:
1) initial configuration commands are sent to OLT, completes the initial configuration of tested ONU, including be tested the registration of ONU, award The uni port that power, vlan, dba etc., wherein dba are configured to tested ONU to not influence UNI mouthfuls of speed limit operational trials to try one's best is most Big bandwidth value;
2) initial configuration commands, the main all of the port for including interchanger is connected uni port are sent to Ixia, interchanger Closed mode is configured to, the vlan configurations of interchanger, Ixia needs to use initialization of port etc.;
3) after the completion of initial configuration, first configure interchanger and open a uni port, configuration Ixia simulates two data streams Whether reachable check respectively for up, down direction flow;
4) test configurations order is sent to OLT, the up speed limit 10M of uni port eth1 is such as set;
5) test command is sent to Ixia, starts to beat stream, especially the flow of up direction;
6) data statistics of Ixia ports is checked, test data is collected, test log information is fed back to;
7) by accessing test log information, test report is generated;
8) abnormal prompt is tested:It is main to send querying command to OLT, warning information is checked whether there is, such as short fine, power-off, Netting twine disconnection etc.;To the management address of OLT, Ixia, interchanger send ping orders check management circuit whether failure, check and send out Existing failure will feed back to test log information, facilitate user tracking misarrangement.
Amendment step 4 is only needed when different test scripts are write) to 8).
Present invention introduces descending access device, the open and close of uni port can be operated by operating descending access device, The test of all uni ports is completed by way of UNI mouthfuls is opened one by one.Replace CUI (logical by operating test script module Cross order line configuration) mode complete OLT, interchanger configuration order and issue.By operating test script module automatic running Script completes the operations such as connection, port initialization, flow configuration and the flow transmission of Ixia.The choosing of test case in the present invention Select item many, test case quantity is compared with manual test more horn of plenty, quantity especially to uni port, the number of UNI speed limit traffic values The quantity of the data frame byte of amount and analog data flow is abundant compared with manual test too many.
The present invention is greatly enhanced the efficiency of UNI mouthfuls of speed limiting function test, and each test case is performed and only needs the 30s can Complete, and test item can more be enriched, and the open and close of uni port can be operated by operating descending access device, can be with The test of all uni ports is completed by way of uni port is opened one by one, and the speed limit traffic value of each uni port can To test multiple, the data byte of each speed limit traffic value test can test multiple, and above test is that manual test cannot Complete.A kind of shortcoming of the present invention for the test of existing uni port speed limit, there is provided automation that can realize uni port The method of test.The automated testing method can complete all uni port speed limiting functions test of tested ONU, it is also possible to survey The multiple traffic values of examination, the digital simulation flow of multiple sizes, content are more more detailed than existing measuring technology, more rich.Test process Execution be by test script complete, it is not necessary to tester manual operations, considerably reduce the input of manpower;Test Process Instrumental is used by apparatus control, and idle gap very little drastically increases the utilization rate of equipment;There is phase in test process The test log information of pass, can facilitate the analysis of bug, follow the trail of;The making of test report is also to be completed by test script, is reduced Production Time of test report.The efficiency of method of testing of the present invention is apparently higher than prior art, automatic test one 30s, manual test one is only needed to take around 5 minutes, test item also can only achieve the 20% of automatic test.Such as when manual survey When examination item is 15, the manual test time is 75 minutes;The test item of automatic test can reach 75, and the testing time only needs Want 37.5 minutes.
The present embodiment also provides a kind of automatization test system of uni port, as shown in figure 3, the automatic test system System includes:Descending access device 310, OLT 320, network data analyzer 330, test terminal 340.The test terminal 340 Including:Test parameter configuration module 341, test case configuration module 342, test case performing module 343, test log generation Module 344, test report generation module 345, the first file 346, the second file 347, the 3rd file 348, the 4th file 349, Test script module 350.
The descending access device 310 accesses whole uni ports of tested ONU;Descending access device is mainly can be passed through The interchanger of console management, descending access device connects the uni port of tested ONU by direct-through line, need to be by all of UNI ends Mouth all connections, descending access device connects network data analyzer using direct-through line or optical fiber cable.
The OLT 320 is connected with the tested ONU;OLT, can be by ODN (optical branchings used as multi-upstream access device Device) the tested ONU of connection;OLT can connect Ixia (network data analyzer) using direct-through line or optical fiber cable.
The network data analyzer 330 is connected respectively with the descending access device and OLT;
The test terminal 340 connects respectively with the descending access device 310, OLT 320 and network data analyzer 330 Connect, the demand according to test item is surveyed respectively to the descending access device 310, OLT 320 and network data analyzer 330 Examination initial configuration, configures the test parameter and test case of the uni port, and the execution of test case is suitable described in adjust automatically Sequence, and by the order implementation of test cases after adjustment, generate test log and test report.The test terminal by network or Hub connects multi-upstream access device (i.e. OLT), descending access device and network data analyzer.Also may be used the test terminal Multi-upstream access device, descending access device are managed with by serial ports (console).
The test parameter configuration module 341 configures the OLT management address related to tested uni port, descending access dress Management address, the management address of network data analyzer, the occupancy board number of network data analyzer and the tested UNI ends put The descending access device port numbers of mouth docking.The configuration of test parameter is by way of being stored in specified file (i.e. the first file) Test script is passed to, test script obtains test parameter by need to only accessing this document.
The test case configuration module 342 is connected with the test parameter configuration module 341, there is provided with tested UNI ends The related test case mark of mouth, makes tester select corresponding test case according to test item demand.The choosing of test case Select result and pass to test script module by way of being stored in specified file (i.e. the second file), test script module is only needed Accessing this document just can call the test script for this time needing to perform.
Shown test case performing module 343 is connected with the test case configuration module 342, is used according to the test chosen The correlation degree of example adjusts the execution sequence of test case, and according to the order implementation of test cases after adjustment.Test case is held Row module mainly provides the perform function of use-case.It is exactly the corresponding test script of testing results use-case that the execution of use-case is main. According to the correlation degree adjustment execution sequence of test case, the efficiency of test can be properly increased.Shown test case performs mould The process that block performs test is as follows:TCL interpreters are loaded first, and file (the i.e. second text is preserved secondly by test case is accessed Part) test case to be performed mark is obtained, test pin corresponding with test case mark is then searched in test script library This, finally calls and runs that the script completes the test case performs test.Test script can be used TCL scripts according to The process is write, you can realize the implementation procedure of test case.Test case is optimized according to the relevance of use-case, Especially according to relevances such as uni port, the arranges value of speed limit business, the frame lengths of data flow, the execution efficiency after optimization will be big It is big to improve.Test case association example is as follows:The operational trials of the different bytes of same speed limit traffic value is continuously performed, same The follow-on test of the different speed limit traffic values of uni port is continuously performed.
For example:It is the A1.UNI mouthfuls of 10M port speed constraint of the up 512B of eth1 that one tested ONU needs the test case of test Test, the B1.UNI mouthfuls of 10M port speed constraints test of the up 512B of eth2, the C1.UNI mouthfuls of 10M port speed constraint of the descending 512B of eth1 Test, the D1.UNI mouthfuls of 10M port speed constraints test of the descending 512B of eth2, the A2.UNI mouthfuls of 20M port speed constraint of the up 512B of eth1 Test, the B2.UNI mouthfuls of 20M port speed constraints test of the up 512B of eth2, the C2.UNI mouthfuls of 20M port speed constraint of the descending 512B of eth1 Test, the D2.UNI mouthfuls of 20M port speed constraints test of the descending 512B of eth2.
First according to the relevance of same port, sequentially it is adjusted to:A1-C1-A2-C2-B1-D1-B2-D2.
Again according to business association, A1-A2-C1-C2-B1-B2-D1-D2 is sequentially adjusted to.
Final use-case execution sequence is exactly A1-A2-C1-C2-B1-B2-D1-D2.
The test log generation module 344 is connected with the test case performing module 343, is produced in test process Log information.
The test report generation module 345 is connected with the test case performing module 343, will be generated in test process Test data extract, after all test cases are finished, the method identified by matching test use-case will be tested Data induction generates test report to corresponding test case and test item according to result is concluded.Wherein, test data is main By accessing test log message file (i.e. the 3rd file), the traffic statistics of Ixia ports are obtained, matched somebody with somebody by with test Put value and be compared the size for obtaining fluctuating error, test report is ultimately generated according to laying down a regulation.Laying down a regulation, it is more to have Kind, for example:Be a unit with test case or test item, by each test case perform after obtain test data conclude into Come.After obtaining test data, by comparing the arranges value of uni port speed limit and the actual reception uninterrupted of receiving port, sentence Whether disconnected speed limiting function comes into force, when the error of receiving port actual flow and the arranges value of Business Stream speed limit is within 5% when, I Be considered as test and pass through, otherwise test crash.
That is, test report generation module mainly provide test report generation, check, export function.Will test The test data generated in use-case implementation procedure is extracted and is saved in a file specified according to certain rule, when all tests After use-case is finished, the method identified by matching test use-case is concluded to corresponding test item correspondence test data, most Afterwards by the way that test data to be passed through a test report of the Form generation of document.A kind of form of test report is as shown in table 1.
Table 1:The form of test report
First file 346 is connected with the test parameter configuration module 341, storage test parameter configuration;Second text Part 347 is connected with the test case configuration module 342, storage test case configuration;3rd file 348 and the test log Generation module 344 is connected, the log information produced in storage test process;4th file 349 generates mould with the test report Block 345 is connected, and the test data generated in test process is preserved according to pre-defined rule.
The test script module 350 and first file 346, the second file 347, the 3rd file 348, the 4th file 349th, test case performing module 343 is respectively connected with, and starts the explanation thread of test script, by the explanation thread accesses institute State the first file and read corresponding test parameter configuration, access second file to call test case to identify associated use Example test script, loads and runs the associated use-case test script of the test case mark called, and accesses and reads the described 3rd File provides test log information for operating personnel, and the method identified by matching test use-case is concluded to corresponding test data Test case and test item, and according to conclude result generation test report.
The test item is the speed limiting function test of the uni port of tested ONU, including:The uni port of tested ONU it is upper The test of row speed limit, the test of descending speed limit, the flow rate test of different pieces of information bag size and speed limit test.In order to preferably check Equipment under test reliability, the speed limit of uni port need to test different size of packet and speed limit, it usually needs the data of test Bag size includes:64B, 512B, 1024B, 1518B etc., the test of speed limit can be according to the different choice one of uni port bandwidth It is a little that there is the speed limit traffic value for representing meaning, such as 1M, 5M, 20M, 100M.Pass through test script according to speed limit tester Module is progressively performed according to the flow of automatic test, when the automatic test that can complete uni port speed limiting function/business.
Method of testing of the present invention can complete all uni port speed limiting functions test of tested ONU, it is also possible to survey The multiple traffic values of examination, the digital simulation flow of multiple sizes, content are more detailed than existing measuring technology, abundant a lot;Test process Execution be by script complete, without tester manual operations, considerably reduce the input of manpower;Instrument in test process Device is used by apparatus control, and idle gap very little drastically increases the utilization rate of equipment;There is the test of correlation in test process Log information, can facilitate the analysis of bug, follow the trail of, and the making of test report is also to be completed by script, less test report Production Time.
TCL scripts or other scripting languages that test script in the present invention can also be used.TCL(Tool Command Language) it is a kind of explanation execution script language (Scripting Language), it provides general Program capability:Support variable, process and control structure;TCL also possesses the powerful intrinsic core commands collection of One function simultaneously. Ixia can provide api interface and be conducted interviews reference for TCL scripts.TCL interpreters will be explosion command and extension control structure Treat on an equal basis with inherent comma and intrinsic control structure.The institute that TCL language after extension will can inherit TCL cores is active Can, including core commands, control structure, data type, the support to process etc..As needed, it might even be possible to mask TCL's Some inherent commas and intrinsic control structure.By the extension to TCL, inherit or shielding, user need not be as usually defining one Kind of computer language is defined to each side such as morphology, grammer, semanteme, pragmatics like that, can easily using TCL as oneself A kind of script of the complete function of application field.Other scripts are larger size of code, and the difficulty of realization also has Increased.
In sum, the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe The personage for knowing this technology all can carry out modifications and changes under without prejudice to spirit and scope of the invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete with institute under technological thought without departing from disclosed spirit such as Into all equivalent modifications or change, should be covered by claim of the invention.

Claims (8)

1. a kind of automated testing method of uni port, it is characterised in that the automated testing method of the uni port includes:
Test environment is built, whole uni ports of tested ONU is accessed into a descending access device, tested ONU is connected into an OLT, The descending access device and OLT are connected respectively using a network data analyzer, and control is connected respectively using a test terminal The descending access device, OLT and network data analyzer;
The test parameter and test case of the uni port are configured by the test terminal;The test terminal adjust automatically The execution sequence of the test case, and by the order implementation of test cases after adjustment, generate test log and test report;
The detailed process of the test terminal generation test log and test report includes:
The log information that the test terminal will produce in test process is deposited in the 3rd file specified;In test terminal Test script read the 3rd file for operating personnel provide test log information by accessing;
The test data that the test terminal will generate in test process is extracted, and it is specified to be saved in one according to pre-defined rule The 4th file in;After all test cases are finished, the test script in the test terminal is used by matching test The method of example mark concludes to corresponding test case and test item test data, and tests report according to result generation is concluded Accuse.
2. the automated testing method of uni port according to claim 1, it is characterised in that the test terminal configuration The detailed process of the test parameter of the uni port includes:Test parameter configuration storage to one is fixed in the test terminal In first file, the test script in test terminal reads corresponding test parameter configuration by accessing first file;Institute Stating test parameter includes the OLT management address related to tested uni port, the management address of descending access device, network data The descending access device end that the management address of analyzer, the occupancy board number of network data analyzer are docked with tested uni port Slogan.
3. the automated testing method of uni port according to claim 1, it is characterised in that the test terminal configuration The detailed process of the test case of the uni port includes:
The test terminal provides the test case mark related to tested uni port, makes tester according to test item demand Select corresponding test case;
By in test case configuration storage to second file fixed, the test script in test terminal leads to for the test terminal Cross the use-case test script for accessing second file to call test case mark associated.
4. the automated testing method of uni port according to claim 1, it is characterised in that the test terminal performs The detailed process of test case includes:
The test terminal starts the explanation thread of test script, and loading and run the test chosen by the explanation thread uses Use-case test script corresponding to example.
5. the automated testing method of the uni port according to claim 2 to 4 any one, it is characterised in that the survey The language of writing of training sheet includes TCL scripts.
6. a kind of automatization test system of uni port, it is characterised in that the automatization test system includes:
Descending access device, accesses whole uni ports of tested ONU;
OLT, is connected with the tested ONU;
Network data analyzer, is connected respectively with the descending access device and OLT;
Test terminal, is connected, according to the demand of test item respectively with the descending access device, OLT and network data analyzer Carry out test initialization configuration respectively to the descending access device, OLT and network data analyzer, configure the uni port Test parameter and test case, the execution sequence of test case described in adjust automatically, and perform test by the order after adjustment Use-case, generates test log and test report;
The test terminal includes:
Test parameter configuration module, configures the management ground of OLT management address, the descending access device related to tested uni port Location, the management address of network data analyzer, the occupancy board number of network data analyzer are docked down with tested uni port Row access device port numbers;
Test case configuration module, is connected with the test parameter configuration module, there is provided the test related to tested uni port is used Example mark, makes tester select corresponding test case according to test item demand;
Test case performing module, is connected with the test case configuration module, according to the correlation degree of the test case chosen The execution sequence of test case is adjusted, and according to the order implementation of test cases after adjustment;
Test log generation module, is connected with the test case performing module, and log information is produced in test process;
Test report generation module, is connected with the test case performing module, and the test data that will be generated in test process is carried Take out, after all test cases are finished, the method identified by matching test use-case is concluded to phase test data The test case and test item answered, and generate test report according to result is concluded;
3rd file, is connected with the test log generation module, the log information produced in storage test process;
4th file, is connected with the test report generation module, and the test generated in test process is preserved according to pre-defined rule Data;
Test script module, is respectively connected with the 3rd file, the 4th file, test case performing module, starts test pin This explanation thread, accesses and reads the 3rd file for operating personnel provide test log information, by matching test use-case The method of mark concludes to corresponding test case and test item test data, and generates test report according to result is concluded.
7. the automatization test system of uni port according to claim 6, it is characterised in that:Also wrap the test terminal Include:
First file, is connected with the test parameter configuration module, storage test parameter configuration;
Second file, is connected with the test case configuration module, storage test case configuration;
The test script module is respectively connected with first file, the second file, starts the explanation thread of test script, leads to First file described in crossing the explanation thread accesses reads corresponding test parameter configuration, accesses second file to call survey The associated use-case test script of example mark on probation, loads and runs the associated use-case test pin of the test case mark called This.
8. the automatization test system of uni port according to claim 6, it is characterised in that:The test item is tested The speed limiting function test of the uni port of ONU, including:The up speed limit of the uni port of tested ONU is tested, descending speed limit is tested, Flow rate test and the speed limit test of different pieces of information bag size.
CN201310534355.4A 2013-10-31 2013-10-31 Method and system for automatic testing of UNI ports Active CN103560829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310534355.4A CN103560829B (en) 2013-10-31 2013-10-31 Method and system for automatic testing of UNI ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310534355.4A CN103560829B (en) 2013-10-31 2013-10-31 Method and system for automatic testing of UNI ports

Publications (2)

Publication Number Publication Date
CN103560829A CN103560829A (en) 2014-02-05
CN103560829B true CN103560829B (en) 2017-05-24

Family

ID=50014999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310534355.4A Active CN103560829B (en) 2013-10-31 2013-10-31 Method and system for automatic testing of UNI ports

Country Status (1)

Country Link
CN (1) CN103560829B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099794B (en) * 2014-05-05 2019-12-03 上海赞迪网络科技有限公司 A kind of telecommunication terminal port testing method
CN104301176B (en) * 2014-09-29 2018-09-28 上海斐讯数据通信技术有限公司 A kind of more ONU equipment test system and methods
CN104270289A (en) * 2014-10-17 2015-01-07 上海斐讯数据通信技术有限公司 ONU automatic testing method based on TCL script
CN104660327B (en) * 2015-03-04 2017-11-10 太仓市同维电子有限公司 A kind of method of raising OLT utilization rates
US10546075B2 (en) 2015-05-15 2020-01-28 Futurewei Technologies, Inc. System and method for a synthetic trace model
CN106559131A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 A kind of optical line terminal OLT port detecting method and system
CN105337796B (en) * 2015-09-29 2019-07-09 上海斐讯数据通信技术有限公司 A kind of WIFI router performance test method and system
CN106257306B (en) * 2016-01-27 2019-02-12 上海华测导航技术股份有限公司 Based on multimode multi-frequency OEM board positioning accuracy processing method
CN107870849B (en) * 2016-09-28 2021-03-09 平安科技(深圳)有限公司 Processing method and device of test log
CN109150645B (en) * 2017-06-28 2021-06-04 中航光电科技股份有限公司 Test method and system for switching chip
CN108111929B (en) * 2017-11-17 2020-11-27 深圳市飞鸿光电子有限公司 Python-based automatic test method, system and test terminal
CN109960645B (en) * 2017-12-22 2022-10-18 迈普通信技术股份有限公司 Script test method and device and script test system
CN108399125B (en) * 2018-02-08 2021-06-22 深圳壹账通智能科技有限公司 Automatic testing method and device, computer equipment and storage medium
CN109029645A (en) * 2018-08-15 2018-12-18 金卡智能集团股份有限公司 A kind of gas meter function test method and device
CN109460366A (en) * 2018-11-16 2019-03-12 郑州云海信息技术有限公司 A kind of software stability test method, device, equipment and medium
CN110262967A (en) * 2019-06-05 2019-09-20 微梦创科网络科技(中国)有限公司 A kind of log-output method and device applied to automatic test
CN111147299A (en) * 2019-12-26 2020-05-12 杭州迪普科技股份有限公司 Method and device for testing speed limit strategy
CN111274126B (en) * 2020-01-14 2022-10-04 华为云计算技术有限公司 Test case screening method, device and medium
CN111224848B (en) * 2020-01-17 2022-04-01 腾讯科技(深圳)有限公司 Network quality testing method, device, equipment and storage medium
CN111309604B (en) * 2020-02-07 2023-10-03 Tcl移动通信科技(宁波)有限公司 Offline automatic test method, system, storage medium and mobile terminal
CN112445712B (en) * 2020-12-10 2024-02-27 北京信而泰科技股份有限公司 Method and device for generating test source code
CN113572521B (en) * 2021-07-23 2024-03-29 芯河半导体科技(无锡)有限公司 Automatic test method compatible with multi-manufacturer OLT intercommunication test
CN113596900B (en) * 2021-07-29 2024-02-06 芯河半导体科技(无锡)有限公司 Automatic testing method for multi-scene WIFI
CN113794513A (en) * 2021-11-16 2021-12-14 北京国科天迅科技有限公司 Method and device for automatically testing optical fiber bus protocol transmission system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114954A (en) * 2007-09-06 2008-01-30 中兴通讯股份有限公司 Protocol testing device
CN101150454A (en) * 2007-07-31 2008-03-26 中兴通讯股份有限公司 Testing method for automatic switching optical network
CN102571198A (en) * 2011-12-31 2012-07-11 武汉烽火网络有限责任公司 System and method for carrying out EPON (Ethemet-based passive optical network) performance test based on emulational ONU (optical network unit)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150454A (en) * 2007-07-31 2008-03-26 中兴通讯股份有限公司 Testing method for automatic switching optical network
CN101114954A (en) * 2007-09-06 2008-01-30 中兴通讯股份有限公司 Protocol testing device
CN102571198A (en) * 2011-12-31 2012-07-11 武汉烽火网络有限责任公司 System and method for carrying out EPON (Ethemet-based passive optical network) performance test based on emulational ONU (optical network unit)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《EPON接入技术的应用》;吴建华;《中国优秀硕士学位论文全文数据库 信息科技辑》;20120215(第02期);正文第53页-第54页 *

Also Published As

Publication number Publication date
CN103560829A (en) 2014-02-05

Similar Documents

Publication Publication Date Title
CN103560829B (en) Method and system for automatic testing of UNI ports
CN104793076B (en) Intelligent Auto-Test System and method of testing
CN103529377B (en) The Auto-Test System of intelligent transformer substation digital protection device and method
CN107294563A (en) A kind of low-voltage powerline carrier communication interconnects performance test methods and system
CN105141441B (en) A kind of method that IP network graphically configures
CN109828903A (en) Automated testing method, device, computer installation and storage medium
CN103139012B (en) A kind of Ethernet interface method of testing and the network equipment
CN109379251A (en) Protective relaying device process layer GOOSE and SV communicate automatic test approach and system
CN106550038A (en) A kind of data configuration diagnostic system of Digitizing And Control Unit and method
CN107547309A (en) A kind of automated testing method and device of security gateway performance
CN105677567A (en) Automation testing method and system
CN102291274B (en) A kind of system and method realizing automatic adaptation of network testing instrument
CN108958225A (en) Npp safety grade DCS platform intergration test device
CN109188083A (en) A kind of RF consistency of LDS antenna and line impedance detection system and method
CN110442992B (en) Electromechanical collaborative design method and device for cable network of aerospace system
CN106777665A (en) Improve the method and system of cooperating simulation platform verification efficiency
CN106708688A (en) Module testing method and terminal
CN104426709A (en) TR 069 testing method and system
CN110989554B (en) Method for establishing hardware-in-loop test case library of new energy vehicle integrated controller
CN107169175A (en) One kind verification rational method and system of overhead transmission line topology design
CN109783295A (en) Test macro self-test method for producing software and device based on configuration
de Figueiredo et al. Generating interaction test cases for mobile phone systems from use case specifications
CN101931462A (en) Testing control method and device for optical transmission network
CN105656718A (en) Stable automatic testing method for switch
CN105956107B (en) Data quality checking method based on IEC61968 message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20180313

Granted publication date: 20170524

PD01 Discharge of preservation of patent

Date of cancellation: 20210313

Granted publication date: 20170524

PD01 Discharge of preservation of patent
PP01 Preservation of patent right

Effective date of registration: 20210313

Granted publication date: 20170524

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20240313

Granted publication date: 20170524

PD01 Discharge of preservation of patent