节点文献
基于网络接口的软件健壮性测试模型建立与实现
Establishment and Implementation of a Software Robustness Testing Model Based on Network Interface
【作者】 郝刚;
【导师】 王宇颖;
【作者基本信息】 哈尔滨工业大学 , 计算机科学与技术, 2006, 硕士
【摘要】 软件测试是软件质量保证的重要手段。随着互联网技术的普及,软件产品已从传统的单机环境迁移到复杂多变的网络环境。因此,研究如何对网络软件进行测试是软件测试领域的一个重要课题。目前对网络软件的测试主要集中在功能、性能方面,而对网络软件健壮性测试进行得比较少。许多网络软件出现质量问题都是由网络软件本身的非健壮性引起的,因此,进行健壮性测试是保障网络软件质量的有效途径。网络软件与单机软件最大的区别在于各部分之间通过网络接口存在各种数据交换,这是一切网络环境复杂化的根源。由此,本文提出一种基于网络接口的软件健壮性测试方法。通过网络接口的负载测试和容错性测试,可以对接口的健壮性进行检验,从而确保各种异常输入的正确处理,提高系统的安全性以及可靠性。针对这种新思路,本文研究了网络软件健壮性的测试方法,建立并实现了一个基于网络接口的软件健壮性测试模型。这个模型以测试过程的自动控制为指导思想,以测试用例的自动生成为核心,其中包含了测试用例自动生成模型、测试用例生成算法、测试用例的精化技术等内容。并且,在此模型的基础上开发出了一个可对网络软件健壮性进行自动测试的原型系统——网络软件健壮性测试系统(NSRTS)。该原型系统采用Windows的NDIS技术截获数据包,将包过滤规则形式化后,利用推理机实现了数据包的采集。最后,利用NSRTS对测试用例生成的几个主要算法进行了验证。测试结果表明,这些算法是可行的。
【Abstract】 Testing is an important way to assure software quality. With the development of network and communication techniques, software products often work in the complicated network environment. So the study of new testing techniques and approaches specific to network software is an important subject. Nowadays, testing of network software is mainly concentrated on function and performance, while there are few concerns about the robustness testing. Robustness testing is an effective way to assure the quality of network software.It is the most different between network software and individual one that every parts of network system exchange data through the network interface, which is the source of the complex network environment. Accordingly, the method of robustness testing based on network interface is proposed in this paper. Through the load test and tolerance test to network interface, we can inspect the robust performance of interface, it assures the system of dealing with the abnormal input correctly and improves the system’s security and credibility.With the new idea, we studied the method of network software robustness testing, established and implemented a software robustness testing model based on network interface. It takes the test process automatic control as its polestar, the test case automatic generation as its core, and contains test case automatic generation model, test case generation algorithms, and test case refinement techniques. And we developed a prototype system, Network Software Robustness Testing System (NSRTS) that can test network software robustness automatically. The prototype system captures data packets with NDIS technique of Windows, and it realizes data packets collecting with inference machine after formalizing the packet filtering rules.Finally, we used NSRTS to verify several main test case generation algorithms, and the test result indicated that the algorithms of testing are feasible.
【Key words】 network interface; robustness testing; test case generation; packet filtering;
- 【网络出版投稿人】 哈尔滨工业大学 【网络出版年期】2006年 12期
- 【分类号】TP311.52
- 【被引频次】1
- 【下载频次】131