NLForSpec: Translating Natural Language Descriptions into Formal Test Case Specifications

This paper describes the NLForSpec, a Natural Language (NL) processing tool to translate software test cases descriptions in NL into a formal representation in CSP specification language. NLForSpec is part of a larger project which aims to automate test case generation, selection and evaluation for mobile phone applications. Our tool can be used in the process of update or partially generate requirements documents from test cases (one of the project’s main goals). The NLForSpec architecture follows the traditional pipeline NL interpretation approach, counting on a lexicon, a case grammar (to represent semantic information) and a domain ontology. The prototype was tested with a corpus of 100 test cases descriptions, obtaining a performance rate of 91%. This is an original and innovative work.