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

计算机工程 ›› 2006, Vol. 32 ›› Issue (17): 118-120. doi: 10.3969/j.issn.1000-3428.2006.17.041

• 软件技术与数据库 • 上一篇    下一篇

Java构件的测试脚本生成技术

刘冬懿;潘 越;潘秋菊;金茂忠;柳永坡   

  1. 北京航空航天大学计算机学院,北京100083
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-09-05 发布日期:2006-09-05

Techniques of Generating Test Script for Java Component

LIU Dongyi;PAN Yue;PAN Qiuju;JIN Maozhong;LIU Yongpo   

  1. Department of Computer Science and Engineering, Beijing University of Aeronautics and Astronautics, Beijing 100083
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-09-05 Published:2006-09-05

摘要: QESat/Java中的构件测试工具辅助用户生成测试脚本,通过测试脚本的执行获得功能测试结果以及程序覆盖信息。测试脚本生成技术是Java构件测试工具中的核心和难点部分,该文根据JUnit、Mock object、In Container等技术规范提出模板关键域替换方法生成测试脚本。

关键词: 构件测试, JUnit, Mock object, In Container, 测试脚本

Abstract: A testing tool that allows component developer to validate component interfaces, functions and behaviors in the simulated or real operation environments is introduced which also leads testers to create, manage and execute test case. The generation of test script is one of the most tough problem of the tool, and according to specification of JUnit, Mock object and In Container, testscript template & field mechanism is proposed for Java component to semiautomatically generate test script. The tool’s validity is proved via practical test routines for Java component.

Key words: Component test, JUnit, Mock object, In Container, Test script

中图分类号: