Test case generation from natural language requirements based on SCR specifications

  • Authors:
  • Gustavo Carvalho;Diogo Falcão;Flávia Barros;Augusto Sampaio;Alexandre Mota;Leonardo Motta;Mark Blackburn

  • Affiliations:
  • UFPE Centro de Informática, PE, Brazil;UFPE Centro de Informática, PE, Brazil;UFPE Centro de Informática, PE, Brazil;UFPE Centro de Informática, PE, Brazil;UFPE Centro de Informática, PE, Brazil;Embraer, SP, Brazil;Stevens Institute, NJ

  • Venue:
  • Proceedings of the 28th Annual ACM Symposium on Applied Computing
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Formal models are increasingly used as input for automated test generation strategies. As an example, Software Cost Reduction (SCR) has been designed to detect and correct errors during the requirements phase, also allowing test generation. However, SCR syntax is not trivial for those who are unfamiliar with it. We propose here a strategy to generate test cases from natural language requirements using SCR as an intermediate and hidden formalism. To avoid textual ambiguity, the requirements are written according to a Controlled Natural Language. Each syntactically valid requirement is mapped into a semantic representation from which an SCR specification is derived. We then use the T-VEC tool to generate tests from SCR. We evaluated our strategy based on requirements and manually written test vectors provided by our partner from the Aviation Industry. Our strategy generated 85% of the vectors in the original set, with 100% of precision. The generation time was 2s. Yet, we obtained a mutation score of 84%.