Title :
Generating Test Cases of Object-Oriented Software Based on EDPN and Its Mutant
Author :
Gong, Hongfang ; Li, Junyi
Author_Institution :
Sch. of Math. & Comput., Changsha Univ. of Sci. & Technol., Changsha
Abstract :
In object-oriented software testing, a class is considered to be a basic unit of testing. The state of the objects may cause faults that cannot be easily revealed with traditional testing techniques. In this paper, we propose a new technique for class testing by using event-driven Petri nets (EDPN), which is an extended version of Petri Nets, one of techniques having the ability to analyze and test the behavior for the interaction between data members and member functions in class. We demonstrate how to specify a class specification by EDPNs and a given fault model by mutant of EDPNs, which is a theoretical model to describe the dynamic behaviors of EDPNs. A test case generation technique is presented to detect the given faults by analyzing the differences of test scenario in the dynamic behaviors of both EDPNs. The presented algorithm can select a test case that detects errors described in the fault models.
Keywords :
Petri nets; formal specification; object-oriented programming; program testing; software fault tolerance; EDPN; class specification; event-driven Petri nets; fault models; object-oriented software testing; test case generation technique; Automata; Automatic testing; Computer errors; Error correction; Fault detection; Mathematics; Object oriented modeling; Petri nets; Software quality; Software testing; Class testing; Event-Driven Petri Nets; class specification; fault model; test case generation;
Conference_Titel :
Young Computer Scientists, 2008. ICYCS 2008. The 9th International Conference for
Conference_Location :
Hunan
Print_ISBN :
978-0-7695-3398-8
Electronic_ISBN :
978-0-7695-3398-8
DOI :
10.1109/ICYCS.2008.224