What test oracle should I use for effective GUI testing?

被引:64
作者
Memon, A [1 ]
Banerjee, I [1 ]
Nagarajan, A [1 ]
机构
[1] Univ Maryland, Dept Comp Sci, College Pk, MD 20742 USA
来源
18TH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS | 2003年
关键词
test oracles; oracle procedure; oracle information; GUI testing; empirical studies;
D O I
10.1109/ASE.2003.1240304
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Test designers widely believe that the overall effectiveness and cost of software testing depends largely on the type and number of test cases executed on the software. In this paper we show that the test oracle used during testing also contributes significantly to test effectiveness and cost. A test oracle is a mechanism that determines whether a software executed correctly for a test case. We define a test oracle to contain two essential parts: oracle information that represents expected output, and an oracle procedure that compares the oracle information with the actual output. By varying the level of detail of oracle information and changing the oracle procedure, a test designer can create different types of test oracles. We design l I types of test oracles and empirically compare them on four software systems. We seed faults in each software to create 100 faulty versions, execute 600 test cases on each version, for all I I types of oracles. In all, we report results of 660,000 test runs on each software. We show (1) the time and space requirements of the oracles, (2) that faults are detected early in the testing process when using detailed oracle information and complex oracle procedures, although at a higher cost per test case, and (3) that employing expensive oracles results in detecting a large number of faults using relatively, smaller number of test cases.
引用
收藏
页码:164 / 173
页数:10
相关论文
共 18 条
[1]  
[Anonymous], THESIS U PITTSBURGH
[2]  
[Anonymous], 1994, P 1994 ACM SIGSOFT I
[3]  
Baresi L., 2001, CISTR0102 U OR DEP C
[4]  
DILLON LK, 1996, P 4 ACM SIGSOFT S FD, V21, P106
[5]  
DILLON LK, 1994, P 2 ACM SIGSOFT S FD, P140
[6]  
du Bousquet L., 1999, Proceedings of the 1999 International Conference on Software Engineering (IEEE Cat. No.99CB37002), P267, DOI 10.1109/ICSE.1999.841017
[7]   An approach to fault modeling and fault seeding using the program dependence graph [J].
Harrold, MJ ;
Offutt, AJ ;
Tewary, K .
JOURNAL OF SYSTEMS AND SOFTWARE, 1997, 36 (03) :273-295
[8]   Specification-based testing of reactive software: Tools and experiments - Experience report [J].
Jagadeesan, LJ ;
Porter, A ;
Puchol, C ;
Ramming, JC ;
Votta, LG .
PROCEEDINGS OF THE 1997 INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 1997, :525-535
[9]  
KEPPLE LR, 1994, DR DOBBS J, V19, P40
[10]  
MEMON AM, 2000, P ACM SIGSOFT 8 INT, P30