REST架构应用软件测试系统的研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
REST架构风格是全新的针对网络应用的开发风格,是当今世界一个成功的互联网超媒体分布式系统架构。近年来,REST架构应用软件的使用日益广泛,特别是在企业的内容协作应用中,REST架构应用软件以其特有的性质获得了人们的青睐。同时,人们对其质量也提出了更高的要求。
     软件测试作为软件生命周期的一个重要阶段,是保障软件质量的有效手段。软件测试问题的研究越来越引起人们的重视。传统的网络测试技术集中在网络的UI(用户界面)层,不易发现深层次的软件错误且效率低下。由于REST架构软件对外提供统一规范的接口,因此对REST架构应用软件的测试可以集中在API接口层,再引入先进的自动化测试技术,可以大大提高REST的架构应用软件的开发效率。
     本文首先介绍了软件测试技术的发展,其中包括软件测试的基本概念、软件测试模型、自动化测试以及当前广为应用的JUnit自动化测试框架;其次分析了REST架构应用软件的特点,并在此基础上提炼出REST架构应用软件的公共测试点、测试方法和验证点;最后,设计并实现了一套REST架构应用软件测试系统。
REST style, which is a new framework for the development of network software, is the most successful Internet distributed hypermedia system architecture in the world. In recent years, the software based on REST framework has been used increasingly, especially in the enterprises for content collaboration by virtue of its nature. Meanwhile, the users also required high quality of this kind of software.
     As an important phase in software lifecycle, software testing is effective to ensure software quality, and the software developers are paying more and more attention to software testing at present. Traditional testing technology for network software focused on the UI (User Interface) layer, which is difficult to find the deep software bugs and inefficient. Since the software based on REST framework provides a standardized interface, the testing technology for it should focus on API interface layer, and introduce the advanced automation testing technology, as a result, this technology can enhance the efficiency of development for the software based on REST framework.
     In this paper, the current software testing technology is reviewed, including the basic testing conception, testing model, automation testing and JUnit testing framework; Then we analyze the feature of REST software, and on the basic of it we get the common testing points, testing methods and verification points; At last, we design a REST software testing system and put it into practice.
引文
[1]Roy Thomas Fielding Architectural Styles and the Design of Network-based Software Architectures 2000
    [2]朱鸿 金陵紫著 软件测试和质量保障技术 科学出版社 1997
    [3]软件不当测试的经济学影响http://www.com.cn/htm/center/tech/02_7_19_4.asp
    [4]M.J.Harrold and M.L.Sofia Inter-procedural Data Flow Testing In.Proc.Of the Third Testing,Analysis and Verification Symposium ACM Press Dec.1989 158-167
    [5]H.Pande W.Landi B.G Ryder Inter-procedural Def- se Associations for C Systems w ith Single Level Pointers IEEE Transon Software Engineering Vol.20 No.5 May 1994:385-403
    [6]David Chenho Kung Jerry Gao Pei Hsiaetal Design Recovery for Software Testing of Object-Oriented Programs In Proc.of the Working Conference on Reverse Engineering.Baltimore Maryland:IEEE Computer Society Press,May 1993,202-211
    [7]GP our.Component-Based software Development Approach:New Opportunities and Challenges.In:Proc.of2 6"'International Conference on Technology of Object-Oriented Sys tems and Languages(TOOLSUSA).Santa Barbara California:IEEE Computer Society Press August 1998,375-383
    [8]舒智勇 软件测试自动化技术与实例详解 电子工业出版社2000
    [9]RonPatton 软件测试 机械工业出版社2002
    [10]宋艳芳等 自动化软件测试 应用科技Vol.28 No.4 2001.4.7
    [11]达斯廷(Dustin)软件自动化测试:引入、管理与实施 电子工业出版社2003
    [12]Mark Fewster软件测试自动化技术及实例详解 舒智勇译 2001电子工业出版社,北京
    [13]张克尔 庄燕滨著 软件工程与软件测试自动化教程 电子工业出版社2002
    [14]Cem Kaner Jack Falk等著 王峰等译 计算机软什测试 机械工业出版社 2004
    [15]王东刚 软件测试与JUnit实践 人民邮电出版社2004
    [16]Vincent Massol JUnit in Action北京电子工业出版社2005
    [17]Chin C K,McCluskey E D Test Length for pseudo random testing.Intemation Test Conference,1985.94-99
    [18]Voas JM,MorelI L Miller K.Predicting Where Faults Can Hide From Testing,IEEE Software,1991,8(2):41-48

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

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

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