SEJul 19, 2019

Automatic Generation of Acceptance Test Cases from Use Case Specifications: an NLP-based Approach

arXiv:1907.08490v244 citations
AI Analysis

This addresses the challenge of reducing manual effort and ensuring requirements coverage in acceptance testing for software systems, particularly in safety-critical domains, though it is incremental as it builds on existing NLP advances.

The paper tackles the problem of generating acceptance test cases from natural language requirements, which is expensive and error-prone, by presenting UMTG, an NLP-based approach that automatically translates use case specifications into formal constraints for test data generation. In industrial case studies, UMTG correctly translated 95% of steps and generated test cases covering all expert-implemented scenarios and additional critical ones.

Acceptance testing is a validation activity performed to ensure the conformance of software systems with respect to their functional requirements. In safety critical systems, it plays a crucial role since it is enforced by software standards. Test engineers need to identify all the representative test execution scenarios from requirements, determine the runtime conditions that trigger these scenarios, and finally provide the input data that satisfy these conditions. Given that requirements specifications are typically large and often provided in natural language, the generation of acceptance test cases tends to be expensive and error-prone. In this paper, we present UMTG, an approach that supports the generation of executable, system-level, acceptance test cases from requirements specifications in natural language, with the goal of reducing the manual effort required to generate test cases and ensuring requirements coverage. More specifically, UMTG automates the generation of acceptance test cases based on use case specifications and a domain model for the system under test, which are commonly produced in many development environments. Unlike existing approaches, it does not impose strong restrictions on the expressiveness of use case specifications. We rely on recent advances in natural language processing to automatically identify test scenarios and to generate formal constraints that capture conditions triggering the execution of the scenarios, thus enabling the generation of test data. In two industrial case studies, UMTG automatically and correctly translated 95% of the use case specification steps into formal constraints required for test data generation; furthermore, it generated test cases that exercise not only all the test scenarios manually implemented by experts, but also some critical scenarios not previously considered.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes