文档介绍:华中科技大学
硕士学位论文
基于Robot技术的GUI自动化测试系统的设计与实现
姓名:邓楠
申请学位级别:硕士
专业:软件工程
指导教师:黄立群
20091107
华中科技大学硕士学位论文
摘要
随着 GUI 软件的种类和功能的日益增多,在带给用户更强大的功能同时也给软
件的质量保证带来了挑战。GUI 自动化测试系统的测试目的包括两个主要方面:界
面的可用性测试和功能测试。可用性测试主要测试界面是否是用户想要的,是否按
照用户的思路设计,是否能建立一个和谐的交互环境。功能测试主要测试软件是否
达到了用户期望的功能,且不出现异常情况。
GUI 自动化测试系统结构可以分为三个功能层次,应用层,调度层,执行层。
应用层给测试人员提供了一个良好的交互平台,用于编辑测试任务规划整个测试规
程,调度层解析应用层编辑好的测试任务,以测试项的形式发送给执行层中的每个
测试子系统,执行层是整个自动化测试系统的执行体,接收调度层分发下来的测试
项,并且对测试项解析最终以测试关键字的形式作用于被测对象上,模拟本来需要
测试人员手工测试的操作过程。
详细说明了执行层中的关键字模块,根据自动化测试系统的统一结构设计和执
行流程,分析了关键字模块核心技术。详细介绍了事件触发器,原子操作层,测试
公用类,测试关键字的设计以及实现,这四个部分以层层封装的形式表现在关键字
模块里,测试关键字是测试公用类的业务逻辑体现,测试公用类是原子操作层的业
务功能扩展,原子操作层是事件触发器在控件形式层面的封装,事件触发器最终模
拟测试人员的测试行为。
关键词:软件测试 GUI自动化测试系统测试关键字
II
华中科技大学硕士学位论文
Abstract
More and more categories and the functions of GUI software have been developing
as the time goes on, which provide many useful functions for customers and bring more
challenges to software quality. The purpose of java GUI automated testing system
development will be described into two parts as follow: usability test and functional test
for GUI. Test if the GUI really match the customer's thought is the main purpose of
usability test, if the GUI suit the original design of customer and whether fortable
exchange environment' is built up or not is the main point of this test; if the functions meet
the customer's expect is the main purpose of functional test, and also without exception.
The structure of GUI automated testing system could be divided into 3 functional
parts: application level, control level, execution level. The application level will provide a
good exchange platform to design the workflow of testing missions; control level explain
these missions; these missions will be assigned to every branch system of execution level,
the execution level will receive and execute every mission from control level. During the
test execution, these testing objects will be tested by key words of te