An experimental assessment of module documentation-based testing

Context: Testing a module that has memory using the black-box approach has been found to be expensive and relatively ineffective. Instead, testing without knowledge of the specifications (white-box approach) may not be effective in showing whether a program has been properly implemented as stated in...

Full description

Bibliographic Details
Main Authors: Baharom, Salmi, Shukur, Zarina
Format: Article
Language:English
Published: Elsevier 2011
Online Access:http://psasir.upm.edu.my/id/eprint/22455/
http://psasir.upm.edu.my/id/eprint/22455/1/An%20experimental%20assessment%20of%20module%20documentation-based%20testing.pdf
_version_ 1848844489234317312
author Baharom, Salmi
Shukur, Zarina
author_facet Baharom, Salmi
Shukur, Zarina
author_sort Baharom, Salmi
building UPM Institutional Repository
collection Online Access
description Context: Testing a module that has memory using the black-box approach has been found to be expensive and relatively ineffective. Instead, testing without knowledge of the specifications (white-box approach) may not be effective in showing whether a program has been properly implemented as stated in its specifications. We propose instead a grey-box approach called Module Documentation-based Testing or MD-Test, the heart of which is an automatic generation of the test oracle from the external and internal views of the module. Objective: This paper presents an empirical analysis and comparison of MD-Test against three existing testing tools. Method: The experiment was conducted using a mutation-testing approach, in two phases that assess the capability of MD-Test in general and its capability of evaluating test results in particular. Results: The results of the general assessment indicate that MD-Test is more effective than the other three tools under comparison, where it is able to detect all faults. The second phase of the experiment, which is significant to this study, compares the capabilities of MD-Test and JUnit-black using the test evaluation results. Likewise, an analysis of the test evaluation results shows that MD-Test is more effective and efficient, where MD-Test is able to detect at least the same number of faults as, or is at par with, the black-box approach. Conclusion: It is concluded that test evaluation using grey-box approach is more effective and efficient that the black-box approach when testing a module that has memory.
first_indexed 2025-11-15T08:31:44Z
format Article
id upm-22455
institution Universiti Putra Malaysia
institution_category Local University
language English
last_indexed 2025-11-15T08:31:44Z
publishDate 2011
publisher Elsevier
recordtype eprints
repository_type Digital Repository
spelling upm-224552016-06-08T08:33:58Z http://psasir.upm.edu.my/id/eprint/22455/ An experimental assessment of module documentation-based testing Baharom, Salmi Shukur, Zarina Context: Testing a module that has memory using the black-box approach has been found to be expensive and relatively ineffective. Instead, testing without knowledge of the specifications (white-box approach) may not be effective in showing whether a program has been properly implemented as stated in its specifications. We propose instead a grey-box approach called Module Documentation-based Testing or MD-Test, the heart of which is an automatic generation of the test oracle from the external and internal views of the module. Objective: This paper presents an empirical analysis and comparison of MD-Test against three existing testing tools. Method: The experiment was conducted using a mutation-testing approach, in two phases that assess the capability of MD-Test in general and its capability of evaluating test results in particular. Results: The results of the general assessment indicate that MD-Test is more effective than the other three tools under comparison, where it is able to detect all faults. The second phase of the experiment, which is significant to this study, compares the capabilities of MD-Test and JUnit-black using the test evaluation results. Likewise, an analysis of the test evaluation results shows that MD-Test is more effective and efficient, where MD-Test is able to detect at least the same number of faults as, or is at par with, the black-box approach. Conclusion: It is concluded that test evaluation using grey-box approach is more effective and efficient that the black-box approach when testing a module that has memory. Elsevier 2011 Article PeerReviewed application/pdf en http://psasir.upm.edu.my/id/eprint/22455/1/An%20experimental%20assessment%20of%20module%20documentation-based%20testing.pdf Baharom, Salmi and Shukur, Zarina (2011) An experimental assessment of module documentation-based testing. Information and Software Technology, 53 (7). pp. 747-760. ISSN 0950-5849; ESSN: 1873-6025 http://www.sciencedirect.com/science/article/pii/S0950584911000164 10.1016/j.infsof.2011.01.005
spellingShingle Baharom, Salmi
Shukur, Zarina
An experimental assessment of module documentation-based testing
title An experimental assessment of module documentation-based testing
title_full An experimental assessment of module documentation-based testing
title_fullStr An experimental assessment of module documentation-based testing
title_full_unstemmed An experimental assessment of module documentation-based testing
title_short An experimental assessment of module documentation-based testing
title_sort experimental assessment of module documentation-based testing
url http://psasir.upm.edu.my/id/eprint/22455/
http://psasir.upm.edu.my/id/eprint/22455/
http://psasir.upm.edu.my/id/eprint/22455/
http://psasir.upm.edu.my/id/eprint/22455/1/An%20experimental%20assessment%20of%20module%20documentation-based%20testing.pdf