Abstract
Generating Test Cases from natural language requirements pose a formidable challenge as requirements often do not follow a defined structure. In this paper, we present a tool to generate Test Cases from a functional requirement document. No restriction on the structure of the sentence is imposed. The tool works on each requirement sentence and generates one or more Test Cases through a five step process – 1) The sentence is analyzed through a syntactic parser to identify whether it is testable; 2) A compound or complex testable sentence is split into individual simple sentences; 3) Test Intents are generated from each simple sentence (Test Intents map to the aspects on which the requirement is to be tested); 4) The Test Intents are grouped and sequenced in temporal order to generate Positive Test Cases. A Positive Test Case verifies the affirmative action of the system; 5) Wherever applicable, Boundary Value Analysis and other techniques are used generate Negative Test Cases. Negative Test Cases verifies the behavior of the system in exception conditions. The automated generation of the Test Cases has been implemented in a tool called Litmus. We provide experimental results of our tool on actual requirement documents across domains and discuss the advantages and shortcomings of our approach.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Neill, C.J., Laplante, P.A.: Requirements engineering: The state of the practice. IEEE Software 20(6), 40–45 (2003)
Sleator, D.D.K., Temperley, D.: Parsing English with a Link Grammar. In: Third International Workshop on Parsing Technologies (1993)
Sneed, H.M.: Testing against Natural Language Requirements. In: Seventh International Conference on Quality Software, pp. 380–387 (2007)
IEEE-829-2008, IEEE Standard for Software and System Test Documentation
Stoer, J., Bulirsch, R.: Introduction to Numerical Analysis. Springer (2002)
Link Grammar, http://www.abisource.com/projects/link-grammar/dict/ph-explanation.html
Luisa, M., Mariangela, F., Pierluigi, I.: Market Research for Requirements Analysis using Linguistic Tools. Requirements Engineering 9(1), 40–56 (2004)
Ilieva, M.G., Ormandjieva, O.: Automatic Transition of Natural Language Software Requirements Specification into Formal Presentation. In: Montoyo, A., Muńoz, R., Métais, E. (eds.) NLDB 2005. LNCS, vol. 3513, pp. 392–397. Springer, Heidelberg (2005)
Howden, W.: Functional Program Testing & Analysis. McGraw Hill, New York (1987)
IEEE-830-1998: IEEE Recommended Practice for Software Requirements Specifications
Sutton, S.M., Sinha, A., Paradkar, A.: Text2Test: Automated Inspection of Natural Language Use Cases. In: Third International Conference on Software Testing, Verification and Validation, pp. 155–164 (2010)
Kof, L.: Faster from Requirements Documents to System Models: Interactive Semi-Automatic Translation. In: First International Requirements Engineering Efficiency Workshop (2011)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Dwarakanath, A., Sengupta, S. (2012). Litmus: Generation of Test Cases from Functional Requirements in Natural Language. In: Bouma, G., Ittoo, A., Métais, E., Wortmann, H. (eds) Natural Language Processing and Information Systems. NLDB 2012. Lecture Notes in Computer Science, vol 7337. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-31178-9_6
Download citation
DOI: https://doi.org/10.1007/978-3-642-31178-9_6
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-31177-2
Online ISBN: 978-3-642-31178-9
eBook Packages: Computer ScienceComputer Science (R0)