The Community for Technology Leaders
Green Image
Issue No. 10 - Oct. (2013 vol. 39)
ISSN: 0098-5589
pp: 1376-1402
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
ABSTRACT
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.
INDEX TERMS
Unified modeling language, Search problems, Software algorithms, Genetic algorithms, Standards, Software testing,model-based testing, OCL, search-based testing, test data generation, empirical evaluation, search-based software engineering
CITATION
Shaukat Ali, Muhammad Zohaib Iqbal, Andrea Arcuri, Lionel C. Briand, "Generating Test Data from OCL Constraints with Search Techniques", IEEE Transactions on Software Engineering, vol. 39, no. , pp. 1376-1402, Oct. 2013, doi:10.1109/TSE.2013.17
567 ms
(Ver 3.1 (10032016))