Title :
Mining Test Oracles for Test Inputs Generated from Java Bytecode
Author :
Weifeng Xu ; Tao Ding ; Hanlin Wang ; Dianxiang Xu
Author_Institution :
Comput. & Inf. Sci. Dept., Gannon Univ., Erie, PA, USA
Abstract :
Search-based test generation can automatically produce a large volume of test inputs. However, it is difficult to define the test oracle for each of the test inputs. This paper presents a mining approach to building a decision tree model according to the test inputs generated from Java bytecode. It converts Java bytecode into the Jimple representation, extracts predicates from the control flow graph of the Jimple code, and uses these predicates as attributes for organizing training data to build a decision tree. Our case studies show that the mining approach generated accurate behavioral models and that test oracles derived from these models were able to kill 94.67% of the mutants with injected faults.
Keywords :
Java; data mining; decision trees; program testing; Java bytecode; Jimple representation; control flow graph; decision tree model; mining approach; search-based test generation; test oracles; Accuracy; Buildings; Data mining; Decision trees; Input variables; Java; Training data; Jimple; Software testing; decision tree; mining; test oracle;
Conference_Titel :
Computer Software and Applications Conference (COMPSAC), 2013 IEEE 37th Annual
Conference_Location :
Kyoto
DOI :
10.1109/COMPSAC.2013.8