1 / 55
文档名称:

基于MS.Net的图形界面自动测试框架的设计与实现.pdf

格式:pdf   页数:55
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

基于MS.Net的图形界面自动测试框架的设计与实现.pdf

上传人:minzo 2014/3/3 文件大小:0 KB

下载得到文件列表

基于MS.Net的图形界面自动测试框架的设计与实现.pdf

文档介绍

文档介绍:上海交通大学
硕士学位论文
的图形界面自动测试框架的设计与实现
姓名:魏杰
申请学位级别:硕士
专业:计算机应用技术
指导教师:俞勇
20080101
硕士学位论文



基于的图形界面自动测试框架的设计

摘要

根据最新的研究发现,软件测试的成本已经占到了整个开发成本的 40%到
60%。人们希望能降低测试成本,同时进一步缩短软件的开发周期,测试人员也希
望摆脱简单重复的测试工作。由于在一般软件测试工程中多数工作的重复性较大,
人们迫切希望有一种自动化的图形界面测试工具,它能够替代测试工作中的重复性
部分,并且能够根据需要重复地运行。
当前的软件测试技术已经实现了在数据层的自动测试。但是对于最直接的,最
上层的图形界面自动测试还缺少研究,其中的主要原因是图形界面的复杂性,人们
很难把用户的手工操作转换成一种可序列化的,可存储的,日后可以精确回放出来
的动作序列。
本文首先阐述了自动测试的发展历程,分析了图形用户界面自动测试工具在软
件开发流程中的重要意义,分析了当前部分商用图形界面测试自动工具的优缺点,
并结合当前软件开发的实际需求,提出了一个完整的基于 的图形界面自动
测试解决方案 MicroRobert。
MicroRobert 可以自动地记录用户在图形界面上的操作,将操作信息序列化后
保存在文件中,该系统还设计了脚本回放引擎可以自动生成基于 NUnit的单元测试
代码。单元测试代码可以根据需要重复不断地运行以维护目标应用程序。
本文详细阐述了 MicroRobert 的系统结构和具体实现,并对构成系统框架的脚
本录制模块,脚本回放模块,以及验证支持函数库都进行了深入细致的研究。同时
还详细描述了 MicroRobert 在实际软件开发流程中的具体应用。


关键字:自动测试,脚本回放,图形界面,脚本录制
硕士学位论文








According to the latest investigation it is discovered that the cost on software
testing has occupied more than 40% to 60% of the whole development cost . People
want to eliminate the cost of software testing and reduce the development period.
Meanwhile the QA and testers want to get rid of the dry testing jobs. All these result
in ing of automated GUI testing tool.
The current technology has already fulfilled the automated testing for data layer.
But the most direct testing, the automated GUI testing which imitates the operation
of users is still not available yet. The reason lies in that the graphic user interface is
plex for automated testing tool. It is very hard to convert a series of user
operation on GUI into a serialized action and playback these actions exactly.
This article introduces the evolvements history of the automated testing and
analysis the importance of GUI automated testing in software development. In
addition this article investigates the disadvantage on the mercial GUI
automated testing tools and presents the solution of MicroRobert.
MicroRobe