节点文献
Web系统性能测试工具的研究
Research on Web System Performance Testing Tool
【作者】 王玉龙;
【导师】 叶新铭;
【作者基本信息】 内蒙古大学 , 计算机应用技术, 2006, 硕士
【摘要】 Web因其易于部署和维护,成为当前众多电子商务、电子政务以及企业MIS开发所采用的主要技术。Web系统性能测试工具是评估Web系统性能的软件程序。Web系统性能测试工具的研究对于提高Web系统的质量具有重要的意义。 本文提出了一个Web系统性能测试工具的设计方法并以此为基础实现了名为WebTest的软件程序。WebTest包含3个关键技术:使用测试脚本记录HTTP会话;使用多线程模拟多个真实用户;使用CORBA中间件实现分布式测试。WebTest使用代理技术记录用户与Web系统之间的HTTP会话自动生成测试脚本。WebTest对多用户同时访问Web系统场景的模拟是通过局域网内多台主机上的多个线程并发运行测试脚本来实现的。实践证明,WebTest能够胜任中等规模Web系统的性能测试,可以提供非常有价值的测试结果数据。 采用IP欺骗与CORBA中间件相结合的方法来提高Web系统性能测试工具模拟Web系统使用场景的近似程度是本文的一个创新点。工作在混杂模式下的网络适配器可以使一台主机同时使用多个IP地址通信。IP欺骗技术正是利用混杂模式的这种特性来发送带有虚假IP地址的数据。本文利用IP欺骗技术,在测试过程中使用局域网内的空闲IP地址来扩展测试主机发送的测试数据的源地址,有效地降低了基于IP地址的缓存对测试结果的负面影响。CORBA中间件使得多台不同子网的使用IP欺骗技术的测试主机同步执行测试,进一步丰富了测试主机的IP地址,从而使Web系统性能测试工具构造的测试场景更加接近真实场景。
【Abstract】 Conveniently deployed and maintained, Web has become one of the most popular technologies used in e-commerce, e-government and MIS development. Web system performance testing tool is a kind of program created to evaluate the performance of web systems. Research on web system performance testing tool is very important for building high quality web systems.This paper brings forward an original design with which a new testing program named WebTest was implemented. WebTest consists of three key technolpgies. First, it records HTTP sessions with testing scripts. Second,it simulates actual multi-user conditions with multi-thread programming. Finally, it carries out distributed testing by using CORBA middleware. WebTest generates testing scripts automatically while recording HTTP sessions between users and web systems with the help of proxy technology. With WebTest, threads distributed on several hosts in the local network will execute testing scripts concurrently in order to simulate the action of multiple users simultaneously accessing the web system. In past practices, WebTest proved to be very effective in handling testing tasks for middle scale web systems by providing much valuable testing information.This paper puts forth the creative idea of combining IP-spoofing and CORBA middleware so that the testing tool can better simulate actual user actions taken against the web system. A network adapter working under promiscuous mode enables a single host to make multiple communication calls with different IP addresses at the same time. IP-spoofing is a technology that utilizes a network adapter working under promiscuous mode to send data carrying fake IP addresses. In this paper, IP-spoofing salvages unused IP address of the local network only to use them as source addresses for data sent by testing hosts. With the expanded address scale,
- 【网络出版投稿人】 内蒙古大学 【网络出版年期】2006年 12期
- 【分类号】TP393.06
- 【被引频次】6
- 【下载频次】194