摘要
在大规模的采用面向对象技术的软件开发过程中,自动化测试能起到重要作用.面向对象的程序设计方法对软件的自动化测试提出了新的问题.例如,多态、继承和动态绑定等在过程式的程序设计中不存在的问题.提出了一种支持面向对象软件测试的自动化测试方法.其中,首先提出了一种面向对象测试模型;对一个被测软件,基于该模型描述其测试特征,并基于反射机制获得对象的结构,可自动生成测试代码;并在此基础上实现了一个微软平台上的对象测试自动化工具.
Automated testing for object-oriented software system plays an important role in large-scale software development process. Object-oriented programming brings new problems for automated testing. Some problems are not to be found in procedural programming, such as polymorphism, inheritance, and dynamic binding. In this paper, an automated test method supporting object-oriented software testing is introduced. An object-oriented test model has been constructed firstly. Based on the model, the characteristics of the software structure are to be presented through reflection technologies and the test script can be generated automatically. Finally, an automated testing tool on Microsoft net platform is implemented.
出处
《计算机研究与发展》
EI
CSCD
北大核心
2008年第z1期336-340,共5页
Journal of Computer Research and Development
基金
国家科技支撑计划课题基金项目(2006BAH02A00)
国家自然科学基金项目(60473059)
关键词
代码生成
软件测试自动化
自动化测试工具
code generation
software testing automation
automatic testing tool
作者简介
谢冰 男,1970年生,博士,教授,硕士生导师,主要研究方向为软件工程、计算机理论科学. (xiebing@sei.pku.edu.cn)
张晨东 男,1960年生,博士,主要研究方向为软件工程及其工具研发(zhangcd@beidasoft.com).