Issue No. 10 - Oct. (2013 vol. 39)
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/TSE.2013.17
Shaukat Ali , Certus Software V&V Center, Simula Res. Lab., Lysaker, Norway
Muhammad Zohaib Iqbal , Dept. of Comput. Sci., Nat. Univ. of Comput. & Emerging Sci. (FAST), Islamabad, Pakistan
Andrea Arcuri , Certus Software V&V Center, Simula Res. Lab., Lysaker, Norway
Lionel C. Briand , Fac. des Sci., Univ. of Luxembourg, Luxembourg, Luxembourg
Model-based testing (MBT) aims at automated, scalable, and systematic testing solutions for complex industrial software systems. To increase chances of adoption in industrial contexts, software systems can be modeled using well-established standards such as the Unified Modeling Language (UML) and the Object Constraint Language (OCL). Given that test data generation is one of the major challenges to automate MBT, we focus on test data generation from OCL constraints in this paper. This endeavor is all the more challenging given the numerous OCL constructs and operations that are designed to facilitate the definition of constraints. Though search-based software testing has been applied to test data generation for white-box testing (e.g., branch coverage), its application to the MBT of industrial software systems has been limited. In this paper, we propose a set of search heuristics targeted to OCL constraints to guide test data generation and automate MBT in industrial applications. We evaluate these heuristics for three search algorithms: Genetic Algorithm, (1+1) Evolutionary Algorithm, and Alternating Variable Method. We empirically evaluate our heuristics using complex artificial problems, followed by empirical analyses of the feasibility of our approach on one industrial system in the context of robustness testing. Our approach is also compared with the most widely referenced OCL solver (UMLtoCSP) in the literature and shows to be significantly more efficient.
Unified modeling language, Search problems, Software algorithms, Genetic algorithms, Standards, Software testing
S. Ali, M. Zohaib Iqbal, A. Arcuri and L. C. Briand, "Generating Test Data from OCL Constraints with Search Techniques," in IEEE Transactions on Software Engineering, vol. 39, no. 10, pp. 1376-1402, 2013.