基于Django框架的软件自动化测试分布式部署系统的研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着人们对软件的依赖逐日增长,软件测试尤其是自动化软件测试问题已经成为软件开发领域要解决的最为迫切的问题之一,其关键技术已经成为各国研究的热点和重点。
     软件自动化测试分布式部署系统是自动化软件测试关键技术之
     本文在深入了解相关软件测试和分布式系统基础知识的前提下,着重研究了自动化测试的概念、特点,分析了自动化测试的局限性和不足;将自动化测试理论与Web分布式计算方法融合在一起,结合Django网络开发框架,设计并实现了一套基于Django框架的软件自动化测试分布式部署系统,满足了分布式部署不同系统、不同版本的Libreoffice.org软件系统的要求,解决了测试任务多、测试周期短的迫切需求。测试结果表明,该系统能实现自动化测试系统的分布式部署;实现了对自动化测试结果分析功能,并可以对失败的测试用例进行重新测试;同时,系统还实现了对测试任务的实时控制功能,在Web服务器上可以创建、启动、暂停、重启多个测试任务,达到分布式部署管理的目的。基于Django框架的自动化测试分布式部署系统具有实用、开源、轻量级等多个优点,可方便地移植于Windows、Linux等多种操作系统平台,为软件自动化测试系统的部署提供了一个实用的解决方案。
     本文结合实际项目工作开展研究,研究成果不仅满足了项目的迫切需求,同时,对自动化测试及分布式部署理论的应用也具有积极的促进作用,有利于改善自动化测试工作的效率,提升自动化测试工具的价值。
As the dependent of software on daily growth, software test especially automatic test problem has already become one of the most pressing issues to be solved in the field of software developing area. The key technology has become a hot spot in the study of all countries.
     This distributed deployment system for automatic software testing is one of the key technology of automatic software testing. After deeply understanding the relevant basic knowledge of software testing and distributed system, the paper focuses on the concept and characteristics of automatic testing, analyzing the limitation and defects of automatic testing; combines the theory of automatic testing and Web distributed computing method, together with Django Web development framework, designs and implements a distributed deployment systerm for automatic software testing based on Django framework. This system meets the needs of deploying different versions'Libreoffice.org on different systems and solves the urgent needs of multi-task and short test cycle. Test results show that this distributed deployment system for automatic software testing can be implemented; realizes the analysis fuction of automatic testing results and can rerun the failed test cases; at the same time, the system also can control these testing tasks in real time and create, start, pause, resume testing tasks in Web server, to reach the aim of distributed deployment management. This system has many advantages such as practical, open source and lightweight, and is portable on Windows, Linux and other operating system platforms, providing a practical solution for the deployment of automatic software testing system.
     The research of this paper is based on a actual project. The research results not only meet the urgent needs of this project, but also play a positive role in the application of automatic testing and distributed deployment theory, helping to improve the efficiency of automatic testing, to realize the value of automatic testing tools.
引文
[1]郑人杰.软件工程概论.北京:清华大学出版社,1999-8
    [2]I Foster, C Kesselman eds.The Grid:Blueprint for a New Computing Infrastructure[M].San Mateo, CA:Morgan Kaufmann,1999
    [3]肖连兵,黄林鹏.网格计算综述[J].计算机工程,2002;28(3):1-4
    [4]飞思科技产品研发中心.实用软件测试方法与应用.北京:电子工业出版社,2003
    [5]Daniel J.Mosley, Bruce A.Posey.软件测试自动化.北京:机械工业出版社,2002-09
    [6]Dana Moore,Raymond Budd and William. Web 2.0 Programming with Django and TurboGears Wright 2007[M]. USA:Wiley Publishing, Inc.2007
    [7]Martin R. Woodward. Insights into software testing. Software Focus,2001,2(3):93-103
    [8]Cem Kaner. The Past&Future of Software Testing:How Many Lightbulbs Does It Take To Change A Tester? Software Testing Day Tampere University of Technology,2004
    [9]Boris Beizer. Sofeware System Testing and Quality Assurance. Van Nostrand Reinhold, 1984.56-58
    [10]朱菊,软件自动化测试框架TAF及其应用,河海大学,2006
    [11]KELYM, CHOOSINGA. Test Automation Framework[EB/OL]. http://www.128.ibm.com/developerworks/rational/library/591.html.2003-11-20/2006-10-18
    [12]Chung C, Shih T, Wang C. Object-Oriented Software Testing and Metrics in Z Specification. Information Sciences,1997,98(1):175-202
    [13]谢桂芹,网络安全软件的自动化测试系统的研究与应用,南京邮电大学,2009
    [14]程华琦,软件开发工具包测试方法,南开大学,2004
    [15]古乐,史九林,软件测试技术概论。北京,清华大学出版社,2004
    [16]郑人杰。计算机软件测试技术。北京:清华大学出版社,1990
    [17]Pressman Roger.软件工程实践者的研究方法。北京:机械工业出版社
    [18]Myer G. The Art of Software Testing. Wiley,1989
    [19]软件开发规范,航空工业标准6464—90
    [20]朱三元,软件工程指南,上海翻译出版社,1985
    [21]Norm Brown. Little Book of Testing Vol 1. Airlie Software Council
    [22]张斌,精通QTP与自动化测试框架设计实践,北京,人民邮电出版社,2010,4
    [23]M.L.Liu分布式计算原理与应用.第1版.顾铁成等译。北京:清华大学出版社,2004.P1-36
    [24]梅皓、沈志宇、廖湘科,基于Java的分布式并行计算相关技术,《计算机工 程与科学》,2000年,Vo1.22(2),103—106
    [25]Leon Erlanger.Distributed Computing:An Introduction.PC Magazine,2002.
    [26]宁葵,严毅.分布式计算技术发展研究.微机发展,2004,14(8):P14-16
    [27]塔依尔.艾力。基于OpenOffice.org的维吾尔文办公套件的研究与实现。新疆大学。2007
    [28]朱道雨,基于Django的旅游管理信息系统的建设,中国地质大学(北京),2011年5月
    [29]肖杰,陈翔,何海江。基于AJAX和Struts的Web应用的设计与实现。计算机工程与设计。2009,30(8):1934-1937.
    [30]王冉阳,基于Django和Python的Web开发,电脑编程技巧与维护,2008年10月29日,P56-P58。
    [31]李迎辉,Python开发Rails框架—Django框架介绍,程序员,2006-11-1,P107-P110
    [32]张金霞,HTML网页设计参考手册,北京,清华大学出版社,2006-9
    [33]Extensible markup language(xml)1.0 (fourth edition).W3C,2006. Http://www. w3.org/TR/2006/REC-xml-20060816.
    [34]孙宝军,JSON与XML的比较研究,内蒙古科技与经济,2009-12,24期,P126
    [35]JSON.json.org. Http://www.json.org
    [36]胡千里,比较XML与JSON在Web中的应用,中小企业管理与科技(下旬刊),2011-07-25,P268-P270
    [37]付胜利,钟方伟,傅仲逑,基于嵌入式Linux的HTTP代理服务器的研究,2006北京地区高校研究生学术交流会—通信与信息技术会议论文集(下),2006-12-01。
    [38]查志琴,李慧,HTTP协议的发展对Web服务器性能的影响,常州工学院学报,2003-04-15
    [39]张海俊,嵌入式监控系统Web服务器设计,浙江大学,2008-05-10
    [40]Deborah S.Ray等著,邱仲潘等译。HTML4.0从入门到精通[M].北京,电子工业出版社,1998,7
    [41]Andrives P.Engelbrecht计算机智能导论(第2版,谭营等译),北京:清华大学出版社,2010.274-312

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700