DocumentCode :
1572753
Title :
Enhancing Data Flow Testing of Classes through Design by Contract
Author :
Singh, Yogesh ; Saha, Anju
Author_Institution :
Sch. of IT, GGSIP Univ., Delhi
fYear :
2008
Firstpage :
567
Lastpage :
574
Abstract :
Design by contract (DbC) is a methodology to construct quality software. DbC associates the contract specification (pre and postconditions of methods of class and class invariant) with the design of a class. In this paper, we combine dataflow testing and Design by Contract to develop a testing technique called "Data flow testing using Contract". In this technique a class flow graph is generated from the contract specification of the class and then conventional data flow testing is applied to find the test cases. The advantage of using contract specification is that: it is executable and hence a method in a test case is only executed if its precondition and class invariant are satisfied. If they are not satisfied then it leads to an infeasible sequence. Also, if after executing a method its postcondition is not satisfied then it leads to implementation error in the method. We also compare the testing of a DbC class with a conventional class and find that the number of du pairs is reduced in a DbC class because some of the conditions in conventional class become the part of the precondition in a DbC class.
Keywords :
data flow analysis; data flow graphs; formal specification; program testing; software quality; DbC class testing; class flow graph; contract specification; data flow testing; design by contract methodology; quality software construction; Contracts; Data flow computing; Flow graphs; Information science; Software quality; Software testing; data flow testing; design by contract; object oriented testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Computer and Information Science, 2008. ICIS 08. Seventh IEEE/ACIS International Conference on
Conference_Location :
Portland, OR
Print_ISBN :
978-0-7695-3131-1
Type :
conf
DOI :
10.1109/ICIS.2008.70
Filename :
4529878
Link To Document :
بازگشت