作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2003, Vol. 29 ›› Issue (15): 26-28.

• 论文 • 上一篇    下一篇

基于Java的捕获/回放测试工具的实现

姚砺,束永安   

  1. 东华大学计算机系,中国科技大学电子工程与信息科学系 上海 200051
  • 发布日期:2003-08-15

Implementation of a Java-based Capture/Playback Testing Tool

YAO Li1,SHU Yong'an2   

  1. (1. Department of Computer Science, Donghua University, Shanghai 200051; 2. Dept. of Electronic Engineering & Information Science, USTC, Hefei 230027)
  • Published:2003-08-15

摘要: 目前,越来越多的应用程序需要和图形用户界面一起工作,一个优秀的软件测试工具必须提供捕获(Capture)用户操作(如击键、鼠标活动等)的能力并在代码被修改之后能够自动回放(Playback)用户的操作。文章结合自主开发的面向Java的事件捕获/回放工具JPlayer (Swing/AWT 事件记录器/回放器),介绍了基于事件源识别的捕获/回放技术,以及基于事件跟踪的回放同步技术。

关键词: 软件测试, 捕获/回放, Java事件

Abstract: Today more and more application programs work with graphic user interface (GUI). In order to support the test of those applications, a software testing tool must provide the capability to capture user's operations (keystrokes, mouse activity, etc.) and then be able to automatically replay them after the code has been modified for efficient regression testing of the applications. This paper discusses the technique for capturing and playbacking Java input events.

中图分类号: