节点文献
IP网管系统的测试设计与实现
The Testing Design for IP Network Management System and Its Implementation
【作者】 李群慧;
【导师】 李旭伟;
【作者基本信息】 四川大学 , 计算机应用, 2004, 硕士
【摘要】 软件产品质量的度量、评估和保证始终是开发商和用户十分关注的焦点之一,软件测试是保证软件质量的重要手段。本文以“重庆信息港”IP网管项目为背景,设计和完成了IP网管系统的测试。IP网管系统是一个电信级管理系统,只有通过完整有效的测试,才能保证系统的高可用性和高可靠性。本文首先介绍了软件测试的基本理论,然后重点讨论了网管系统的测试方案和单元测试的设计与实现。测试方案采用V模型和X模型相结合的方式,提高了测试的效率。单元测试分析了划分单元的粒度问题、测试用例的编写方法、JUnit的体系结构和设计模式,研究了如何将JUnit中各设计模式结合起来设计测试类以达到高效快速的测试效果,并给出了单元测试的设计框架。针对测试过程中发现的网管系统中内存泄漏的问题,文章分析了Java的内存管理机制,Java的内存泄漏以及Java设计模式中的单例模式和多例模式,并根据产生内存泄漏的不同原因给出不同解决方案,解决了内存泄漏问题。针对网管系统运行速度过慢的问题,分析了win32下的多线程机制、Java中的多线程服务以及Java中控制窗口事件的线程机制,将windows处理窗口事件的思想引入到Java中,解决了网管系统速度过慢且只能等待的问题,提高了系统的运行速度。本文描述的测试设计具有高度的灵活性和通用性,在解决测试中发现的网管系统内存泄漏和性能问题时不会影响网管系统原有的功能和性能,保证<WP=3>了IP网管系统的完整性,一定程度提高了IP网管系统的质量。
【Abstract】 Measurement, assessment and assurance of the quality of software product are one of the issues which the developers and users concern. Software testing is an important mean for software quality assurance. In this paper, the testing design and its implementaion for IP network management system are described. The IP network management system is a telecom enterprise application, the complete and effective testing will improve its high usability and dependability effectively.The basic theory about software testing is introduced first in this paper, and then the testing design for IP Network Management System is analysised, and the implementation of the unit testing is given. The testing design combines V model and X model, which will improves the testing efficiency. The unit testing consists of the principle how to determine a unit, the method of writing test case, the structure and design pattern of the JUnit technology, and how to combine all design patterns of JUnit in detail. For the problem of memory leak found by testing, the mechanism of Java memory management, Java’s memory leak, Singleton pattern and multi-pattern of Java’s design pattern are analysed and discussed. It provides different solutions for the different reasons that cause memory leak. As the problem that the network management system runs too slowly, the paper also analyses the mechanism of multithread in win32, multithread service and the thread mechanism of window event of Java, the idea of Windows’ handling window event is introduced to Java, the problem is well solved and the system executing speed is improved. <WP=5>The testing design described in this paper has high flexibility and compatibility, and the solutions for memory leak and performance problem don’t affect the functions and performance of the tested system, it will also assure the integrity of the tested system and improve the quality of the Network Management System.
- 【网络出版投稿人】 四川大学 【网络出版年期】2005年 01期
- 【分类号】TP393.07
- 【被引频次】2
- 【下载频次】111