Home // VALID 2011, The Third International Conference on Advances in System Testing and Validation Lifecycle // View article
Using Assertion-Based Testing in String Search Algorithms
Authors:
Ali Alakeel
Mahmoud Mhashi
Keywords: Software testing; Assertion-Based Testing; Program Assertions; String Search Algorithms
Abstract:
Software programs may contain faults that cause them to work improperly. Assertion-Based testing has been shown to be effective in detecting program faults as compared to traditional black-box and white-box software testing methods. String search algorithm problem is one of the most important problems that had been investigated by many studies to find all the occurrences of a pattern (with size m characters) occurs in text (with size n characters), where m<<n. String search algorithms are one of the main elements of Information Retrieval Systems which are found in a wide range of applications such as military applications, aircraft software, medical applications, and commercial applications. Therefore, the correctness of any string search algorithms is vital. Different errors might occur during the implementation of any of these algorithms. An example of error, if the shift distance becomes zero, then the algorithm will not move forward. In this research, we show that Assertion-Based software testing may be effective in uncovering software faults associated with string searching algorithms. Our preliminary experimentation with this approach shows that several types of errors associated with string searching algorithms are uncovered using Assertion-Based software testing.
Pages: 1 to 5
Copyright: Copyright (c) IARIA, 2011
Publication date: October 23, 2011
Published in: conference
ISSN: 2308-4316
ISBN: 978-1-61208-168-7
Location: Barcelona, Spain
Dates: from October 23, 2011 to October 29, 2011