Loading...
Generating semantically valid test inputs using constrained input grammars
Keramati, H ; Sharif University of Technology | 2015
797
Viewed
- Type of Document: Article
- DOI: 10.1016/j.infsof.2014.09.007
- Publisher: Elsevier , 2015
- Abstract:
- Context: Generating test cases based on software input interface is a black-box testing technique that can be made more effective by using structured input models such as input grammars. Automatically generating grammar-based test inputs may lead to structurally valid but semantically invalid inputs that may be rejected in early semantic error checking phases of a system under test. Objective: This paper aims to introduce a method for specifying a grammar-based input model with the model's semantic constraints to be used in the generation of positive test inputs. It is also important that the method can generate effective test suites based on appropriate grammar-based coverage criteria. Method: Formal specification of both input structure and input semantics provides the opportunity to use model instantiation techniques to create model instances that satisfy all specified constraints. The input interface of a subject system can be specified using a high-level specification scheme such as attribute grammars, and a transformation function from this scheme to an instantiable formal modeling language can generate the desired model instances. Results: We propose a declarative grammar-based input specification method that is based on a variation of attribute grammars and allows the user to specify input constraints in addition to input structure. The model can be instantiated automatically to generate structurally and semantically valid test inputs. The proposed method has the capability to specify test requirements and coverage criteria and use them to generate valid test suites that satisfy test coverage criteria requirements. Conclusion: The work presented in this paper provides a black-box test generation method for grammarbased software inputs that can automatically generate criteria-covering test suites
- Keywords:
- Test input generation ; Automatic test pattern generation ; Black-box testing ; Context sensitive grammars ; Formal specification ; High level languages ; Modeling languages ; Semantics ; Specifications ; Testing ; Attribute grammars ; Formal modeling language ; Grammar-based software ; High level specification ; Semantic constraints ; Test coverage criteria ; Test inputs ; Transformation functions ; Software testing
- Source: Information and Software Technology ; Volume 57, Issue 1 , January , 2015 , Pages 204-216 ; 09505849 (ISSN)
- URL: http://www.sciencedirect.com/science/article/pii/S0950584914002067
