Fault localization is an expensive technique in software testing. Fault localization means finding the error or faults. In order to locate the faults the developer identifies the statements involved in failure and select suspicious statements which contain fault. In this paper we proposed a spectrum based fault localization. This technique can improve the regression testing by reducing the number of tests that needed to be run. Spectrumbased fault localization uses various program spectra to identify the behavioural differences between old and new version of the program under test. This comparison is useful for finding the cause of failures or errors and presence of difference in program spectra may indicate those test cases for which the construction of expected output .The developer can easily identify whether the differences recorded in modified version of code is due to regression faults or due to changes made in the code.
展开▼