基于XML的协议动态测试工具设计
2021-08-19何舒



摘 要:在计算机通信技术飞速发展的时代,计算机网络变得越来越重要。网络间实现信息共享和交换,主要是依靠网络协议,因此网络协议是各种网络类设备及系统级软件产品的重要组成部分。协议测试也是产品测试的重点。当前协议测试主要覆盖协议一致性测试,测试方法多采用静态解析的方式进行。这种测试方法存在协议异常分支难以覆盖,测试自动化程度低,且测试方法和测试工具都难以满足通用性,可移植性要求的问题。本文提供一种基于XML的协议动态测试工具设计方法,目的在于解决协议的动态测试自动化需求,该工具可完整覆盖协议一致性测试,协议级别的性能测试,具有测试用例易于维护,自动化程度高的优点,可有效提高测试质量和效率。
关键词:XML;协议测试;性能测试;通用性;扩展性
中图分类号:TN39 文献标识码:A DOI:10.3969/j.issn.1003-6970.2021.02.033
本文著录格式:何舒.基于XML的协议动态测试工具设计[J].软件,2021,42(02):108-111
Research on Dynamic Protocol Testing Method Based on XML
HE Shu
(The 30th Research Institute of China Electronics Technology Group Corporation, Chengdu Sichuan 610041)
【Abstract】: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.
【Key words】:XML;protocol testing;performance testing;scalability
0引言
当今时代,各种网络通信设备以及系统级别的大型软件产品通过网络通信协议与外界交互。协议的稳定性是产品稳定的基础,因此协议测试是产品测试的重点之一。当今部分产品由于其本身使用场景的特性导致其通信协议不是常见的通用协议,而是根据产品需要设计的自定义协议。这类产品往往由于种类繁多,版本迭代快,导致协议测试的工作量较大,通过手工测试的方式难以满足测试效率和质量的要求。被测协议的不确定性对协议测试工具也提出了更高的要求,即需要满足通用性和可扩展性的要求。……
