| In people's daily life,IP network has become indispensable with the rapid development of the Internet.The existing IP network mode combines voice,video,data services and derives them into various intelligent devices or systems.It not only facilitates people's lives,but also profoundly changes people's daily concepts.At the same time,this change also poses many changes and challenges to today's IP network builders.Therefore,in view of the above realities,if our institute wants to provide all kinds of high-quality products and services to government and military industry,it must carry out comprehensive functions,performance,reliability and ease of use tests for network layer devices.If the manual operation is used to configure and execute the tests in the testing process,it will inevitably lead to a lot of repetitive work in some regressive versions or capacity indicators,it will reduce the testing efficiency and bring great risks to the timely delivery of products.According to the analysis of the test efficiency of the existing network equipment,there are some problems,the following:1.In the process of testing,it is very tedious to configure the testing instruments manually,which affects the overall testing efficiency.2.Manual testing requires full-time personnel,which takes a long time and costs too much manpower.3.The proficiency of network testing instruments requires users to invest more time and energy in learning and practice,and requires relatively solid basic knowledge of network testing.In order to solve the above problems,this paper develops the Spirent Testcenter tester for secondary development,realizes automated testing to reduce the use complexity of the tester,improve the testing efficiency,accelerate the testing cycle through continuous practice,and ultimately achieves the goal of completely replacing the traditional manual testing.This paper mainly describes the following work:1.Automated test framework design: automatic configuration of test instruments,automatic execution of test cases,automaticly acquisition and analysis of test data and the feedback of results.2.Python Language Extension Interface Design: The test cases in Excel can be read and transformed automatically in the process of automation by referring to the general TCOM Extension Package of excel.3.Encapsulating control commands through API interface: automating operation by programming,thus completely replacing GUI-related configuration and operation in test instruments.4.Automatic package grabbing and result analysis: The test data are captured and analyzed automatically by programmable testing instrument,and the expected results of test cases can be compared and fed back.Finally,it summarizes the whole work,and determines the future research direction according to the results of practice,and formulates the continuous improved plan. |