Font Size: a A A

Design And Implementation Of VSR's Automatic Testing Plan Based On KVM

Posted on:2016-03-21Degree:MasterType:Thesis
Country:ChinaCandidate:C ZhangFull Text:PDF
GTID:2348330479454371Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Along with the advance of virtualization technology and the growing popularity of cloudcomputing technology, in recent years, major communications companies and cloudservice providers have launched their first virtual router products. Automated testing is an important guarantee for the new product; the quality of automated testing solutions directly affect the quality of the virtual router. Virtual router is a virtual product which is deployed on a virtual machine, it has unique characteristics different from traditional router. In addition, there are many types of virtual machines, different virtual routers are deployed in different ways on the virtual machines. Aimed to these products' characteristics,under the background of KVM virtual machine, a set of ATF automated testing framework and ATP test platform for automated testing core program have been proposed.Designing program includes two parts :the design of automated test environment and the design of automated testing scripts. In the design of automated test environment,many virtual low-speed network cards need to be tested for the VSR virtual routing. So that we can divide network cards into three areas which to communicate with the test equipment and test platform by using bridge mode and macvtap mode of virtual switch to bind the network cards,this can effectively avoid the traffic disturbance between multiple network cards. The high-speed network cards of VSR cannot use the bridge mode and the macvtap mode to bind VLAN, Therefore, the use of automated binding VLAN with high-speed network cards can divide the test area. In addition, the use of virtual PC and virtual serial port technology is a good way to solve the lack of automated test equipment resources issues. In automated testing framework, we choose TCL scripting language as a scripting language, Then has used it to develop a set of library function for KVM environment, and solved the difficulty in adding and removing equipment of KVM environment automatic. Finally, we put forward the method of topological graph extraction in the compiling of script, that simplifies the difficulty of writing script.Through the test environment design and script design, we come up with a set of fast and efficient automated testing methods, greatly improving the product quality, it is just the important guarantee of product can quickly upgrade.
Keywords/Search Tags:Virtual machine, Virtual router, Automated test, Tcl test script
PDF Full Text Request
Related items