摘要
在计算机通信技术飞速发展的时代,计算机网络变得越来越重要。网络间实现信息共享和交换,主要是依靠网络协议,因此网络协议是各种网络类设备及系统级软件产品的重要组成部分。协议测试也是产品测试的重点。当前协议测试主要覆盖协议一致性测试,测试方法多采用静态解析的方式进行。这种测试方法存在协议异常分支难以覆盖,测试自动化程度低,且测试方法和测试工具都难以满足通用性,可移植性要求的问题。本文提供一种基于XML的协议动态测试工具设计方法,目的在于解决协议的动态测试自动化需求,该工具可完整覆盖协议一致性测试,协议级别的性能测试,具有测试用例易于维护,自动化程度高的优点,可有效提高测试质量和效率。
With the rapid development of computer communication technology,computer network becomes more and more important.The realization of information sharing and exchange between networks mainly depends on network protocol,so network protocol is an important part of various network devices and system level software products.Protocol testing is also the focus of product testing.At present,protocol testing mainly covers protocol conformance testing,and most of the testing methods are static analysis.This test method has the problems of protocol exception branch,which is difficult to cover,low degree of test automation,and test methods and tools are difficult to meet the requirements of generality and portability.This paper provides a design method of protocol dynamic testing tool based on XML,which aims to solve the requirement of protocol dynamic testing automation.The tool can completely cover protocol conformance testing and protocol level performance testing.It has the advantage of easy maintenance of test cases and high degree of automation,and can effectively improve the quality and efficiency of testing.
作者
何舒
HE Shu(The 30^(th) Research Institute of China Electronics Technology Group Corporation,Chengdu Sichuan 610041)
出处
《软件》
2021年第2期108-111,共4页
Software