A framework for table driven testing of Java']Java classes

被引:10
作者
Daley, N
Hoffman, D
Strooper, P
机构
[1] Univ Victoria, Dept Comp Sci, Victoria, BC V8W 3P6, Canada
[2] Sun Microsyst Inc, Burlington, MA 01803 USA
[3] Univ Queensland, Software Verificat Res Ctr, Sch Informat Technol & Elect Engn, Brisbane, Qld 4072, Australia
关键词
!text type='Java']Java[!/text; automated class testing; unit testing;
D O I
10.1002/spe.452
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the advent of object-oriented languages and the portability of Java, the development and use of class libraries has become widespread. Effective class reuse depends on class reliability which in turn depends on thorough testing. This paper describes a class testing approach based on modeling each test case with a tuple and then generating large numbers of tuples to thoroughly cover an input space with many interesting combinations of values. The testing approach is supported by the Roast framework for the testing of Java classes. Roast provides automated tuple generation based on boundary values, unit operations that support driver standardization, and test case templates used for code generation. Roast produces thorough, compact test drivers with low development and maintenance cost. The framework and tool support are illustrated on a number of non-trivial classes, including a graphical user interface policy manager. Quantitative results are presented to substantiate the practicality and effectiveness of the approach. Copyright (C) 2002 John Wiley Sons, Ltd.
引用
收藏
页码:465 / 493
页数:29
相关论文
共 35 条
  • [1] [Anonymous], 1994, DESIGN PATTERNS
  • [2] [Anonymous], P 13 INT C TEST COMM
  • [3] Ardis M, 2000, SOFTWARE PRACT EXPER, V30, P825, DOI 10.1002/(SICI)1097-024X(200006)30:7<825::AID-SPE322>3.0.CO
  • [4] 2-1
  • [5] Commonality and variability in software engineering
    Coplien, J
    Hoffman, D
    Weiss, D
    [J]. IEEE SOFTWARE, 1998, 15 (06) : 37 - +
  • [6] Dalal S. R., 1999, Proceedings of the 1999 International Conference on Software Engineering (IEEE Cat. No.99CB37002), P285, DOI 10.1109/ICSE.1999.841019
  • [7] ERROR SENSITIVE TEST CASES ANALYSIS (ESTCA)
    FOSTER, KA
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1980, 6 (03) : 258 - 264
  • [8] FOSTER KA, 1984, ACM SIGSOFT SOFTWARE, V9, P120
  • [9] FOWLER M, 1999, REFACTORING IMPROVIN, pCH4
  • [10] HARVEY C, 2001, P 2001 AUSTR SOFT EN, P61