数据移植自动化测试的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着现代信息技术的飞速发展,企业级应用系统的更新速度越来越快,当一个企业进行收购、整合不同系统中的数据或升级到新的应用程序时,最重要的是集成系统的数据并确保其质量,因此数据移植测试越来越多的受到人们的重视。
     传统的数据移植测试主要是依靠测试人员的手工测试,对于验证数据的选取只能简单的选取部分数据,从而影响测试质量。自动化测试技术的出现为其提供了良好的解决方案,自动化测试的最大优势就是高效率、低成本,但是自动化测试如果没有经过良好的设计,不但耗资大,而且后续还有大量的维护工作。因此对自动化测试框架的研究具有很重要的意义。
     正是在这个前提之下,本文对现有的自动化测试技术进行了研究,结合已有的测试项目经验,在关键字驱动和数据驱动的自动化测试框架基础之上,提出了数据移植自动化测试框架DMTestAuto(DataMigration Testing Automated),并应用到了实际项目中。该框架不但实现了测试对象、测试用例和测试脚本之间的关联,而且实现了测试脚本、测试数据、业务逻辑和测试对象的分离。在DMTestAuto框架的指导下,成功实现了一个健壮的、易扩展、易维护的自动化测试系统。
     在自动化测试实施之后,通过对测试结果的分析,并与手工测试进行了比较,充分体现了此次自动化测试框架在数据移植过程中的实用性,解决了传统测试过程中遇到的难题。最后,本文总结了课题研究的主要工作,并对后续工作进行了展望。
With the development of information science and technology, the enterprise-class applications update more and more fast. When an enterprise integrates the data of different systems or upgrades to the new application, the most important work is to integrate the data of different systems and to ensure its quality. So the data migration testing is attached more and more people's attention.
     The traditional data migration testing is mainly relying on the manual test, for the data validation can only select part of the data, which impact on the test quality. The automated testing technology is providing a good solution for this situation. Higher efficiency and lower cost are the most advantages of automation testing. But if the automation testing is not designed well, not only it will cost more, but also there is huge maintenance work to do the next time. So it's meaningful to do some research for the software automation testing framework.
     On the condition, according to some research about the popular automation technology and real project experience, finally in this paper we put forward a new automation framework named Data Migration Testing Automated (DMTestAuto) which based on keyword-driven and data-driven testing framework. And we also apply this framework into a real project. This framework not only realizes the correlations among test object, test case and teat script, but also implements the division among test script, test data, business logic and test object. Base on the DMTestAuto framework, we implement a automation testing system which is robust、easy to expand and maintenance successfully.
     After the implement of automation testing, through the analysis of the test results and compare with the manual test, it fully reflects the feasibility of the DMTestAuto framework, and resolves the difficulties encountered in the traditional testing. In the end, the paper summarizes the main researched task and prospects the following work.
引文
[1]陈计喜,姜丽红.自动化功能测试的方法与实现.计算机工程,2004.
    [2]PARTUM.From Regression Testing to Regression Benchmarking.http://www.ercim.Org/publication/ErcimNews/enw58/tuma.html,2004.
    [3]MARIO W.Managing Object-Orientcd Integration and Regression Testing.http://arxiv.org/abs/cs 19902008.pdf,1998.
    [4]舒智勇,包晓露,焦跃等.软件测试自动化技术与实例评解.电子工业出版社,2000.
    [5]邓波,黄丽娟,曹青春等.软件测试自动化.机械工业出版社,2003.
    [6]Elfriede Dustin,Jeff Rashka,John Paul.Automated Software Testing Introduction,Management,and Performance Pearson Education.2003.
    [7]KELYM,CHOOSINGA.Test Automation Framework.http://www.128.ibm.com/developerworks/rational/library/591.html,2003.
    [8]冯玉才,唐艳,周淳.关键字驱动自动化测试的原理和实现.计算机应用,2004.
    [9]李旦.软件回归测试及其实践.信息产业部第五研究所,2007.
    [10]IBM Rational.使用IBM Rational Functional Tester 6.1进行功能测试.http://www.ibm.com/ developerworks/cn/rational/r-rft/index1.html,2007.
    [11]冰云.Dom4j简介.http://blogs.xmu.edu.cn/rhythm/archives/002239.html,2004.
    [12]单锦辉,姜瑛.软件测试研究进展.北京大学学报,2005.
    [13]李永忠.软件测试中有效利用自动化测试方法的研究.长沙交通学院学报,2006.
    [14]高海吕,贺晓红.软件结构测试自动化关键技术研究.微电子学与计算机,2005.
    [15]MIKE KELLY.Choosing a Test Automation Framework.IBM Developer Works,2003.
    [16]郑人杰.计算机软件测试技术.清华大学出版社,1990.
    [17]朱菊.软件自动化测试框架TAF及其应用.河海大学,2005.
    [18]朱菊,王志坚,杨雪.基于数据驱动的软件自动化测试框架.计算机技术与发展,2006.

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

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

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