Natural Language Requirements Testability Measurement Based on Requirement Smells
Zakeri-Nasrabadi, Morteza, Parsa, Saeed
–arXiv.org Artificial Intelligence
Requirements form the basis for defining software systems' obligations and tasks. Testable requirements help prevent failures, reduce maintenance costs, and make it easier to perform acceptance tests. However, despite the importance of measuring and quantifying requirements testability, no automatic approach for measuring requirements testability has been proposed based on the requirements smells, which are at odds with the requirements testability. This paper presents a mathematical model to evaluate and rank the natural language requirements testability based on an extensive set of nine requirements smells, detected automatically, and acceptance test efforts determined by requirement length and its application domain. Most of the smells stem from uncountable adjectives, context-sensitive, and ambiguous words. A comprehensive dictionary is required to detect such words. We offer a neural word-embedding technique to generate such a dictionary automatically. Using the dictionary, we could automatically detect Polysemy smell (domain-specific ambiguity) for the first time in 10 application domains. Our empirical study on nearly 1000 software requirements from six well-known industrial and academic projects demonstrates that the proposed smell detection approach outperforms Smella, a state-of-the-art tool, in detecting requirements smells. The precision and recall of smell detection are improved with an average of 0.03 and 0.33, respectively, compared to the state-of-the-art. The proposed requirement testability model measures the testability of 985 requirements with a mean absolute error of 0.12 and a mean squared error of 0.03, demonstrating the model's potential for practical use.
arXiv.org Artificial Intelligence
Mar-26-2024
- Country:
- North America > United States
- New York > New York County
- New York City (0.14)
- California > Santa Clara County
- Palo Alto (0.04)
- New York > New York County
- Europe
- France (0.04)
- United Kingdom > England
- Cambridgeshire > Cambridge (0.04)
- Slovenia > Drava
- Municipality of Benedikt > Benedikt (0.04)
- Czechia > Moravian-Silesian Region
- Ostrava (0.04)
- Asia > Middle East
- Iran > Tehran Province > Tehran (0.04)
- Africa > Middle East
- North America > United States
- Genre:
- Research Report
- New Finding (1.00)
- Experimental Study (0.93)
- Research Report
- Industry:
- Information Technology (0.92)
- Transportation > Ground
- Rail (0.46)
- Technology: