Generating Boundary Values from OCL Constraints using Constraints Rewriting and Search Algorithms

被引:0
|
作者
Ali, Shaukat [1 ]
Yue, Tao [1 ,2 ]
Qiu, Xiang [3 ]
Lu, Hong [1 ]
机构
[1] Simula Res Lab Norway, Fornebu, Norway
[2] Univ Oslo, N-0316 Oslo, Norway
[3] Beihang Univ, Sch Comp Sci & Engn, Beijing 100191, Peoples R China
关键词
UML; Object Constraint Language; Search-based testing; Test data; Boundary Value Analysis;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A key component of model-based testing is the generation of test data from constraints (e.g., specified in the Object Constraint Language (OCL)) associated with models e.g., specified in the Unified Modeling Language (UML). The quality of test data eventually determines the effectiveness of test cases, e.g., fault detection and coverage. A simple way to generate test data from an OCL constraint is to find a set of values for all the variables that satisfies the constraint. One way of improving the quality of test data is by generating test data at the boundaries of each variable in the constraint. In this paper, we extend our search-based test data generation approach to generate test data at the boundaries of each variable involved in a constraint. We present different cases of constraints involving different types of variables and how we rewrite them in order to automatically generate boundary values using our existing OCL Solver called EsOCL based on a set of heuristics. We empirically evaluated our heuristics using three search algorithms, i.e., Genetic Algorithm, (1+1) Evolutionary Algorithm, and Alternating Variable Method, on industrial OCL constraints from our previous work. Results show that AVM on average achieved a 95% of success rate and outperformed the rest of the algorithms in finding all the boundary values of constraints in fewer generations.
引用
收藏
页码:379 / 386
页数:8
相关论文
共 50 条
  • [1] Generating Test Data from OCL Constraints with Search Techniques
    Ali, Shaukat
    Iqbal, Muhammad Zohaib
    Arcuri, Andrea
    Briand, Lionel C.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (10) : 1376 - 1402
  • [2] Improved Heuristics for Solving OCL Constraints using Search Algorithms
    Ali, Shaukat
    Iqbal, Muhammad Zohaib
    Arcuri, Andrea
    GECCO'14: PROCEEDINGS OF THE 2014 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2014, : 1231 - 1238
  • [3] Evaluating Normalization Functions with Search Algorithms for Solving OCL Constraints
    Ali, Shaukat
    Yue, Tao
    TESTING SOFTWARE AND SYSTEMS (ICTSS 2014), 2014, 8763 : 17 - 31
  • [4] Automated Refactoring of OCL Constraints with Search
    Lu, Hong
    Wang, Shuai
    Yue, Tao
    Ali, Shaukat
    Nygard, Jan F.
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, : 1243 - 1243
  • [5] Automated Refactoring of OCL Constraints with Search
    Lu, Hong
    Wang, Shuai
    Yue, Tao
    Ali, Shaukat
    Nygard, Jan F.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2019, 45 (02) : 148 - 170
  • [6] Generating OCL Constraints from Test Case Schemas For Testing Model Behavior
    Desai, Nisha
    Gogolla, Martin
    TESTING SOFTWARE AND SYSTEMS (ICTSS 2018), 2018, 11146 : 62 - 68
  • [7] Translation of Restricted OCL Constraints into Graph Constraints for Generating Meta Model Instances by Graph Grammars
    Winkelmann, Jessica
    Taentzer, Gabriele
    Ehrig, Karsten
    Kuster, Jochen M.
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2008, 211 (159-170) : 159 - 170
  • [8] Application of the Ontology Axioms for the Development of OCL Constraints from PAL Constraints
    Kalibatiene, Diana
    Vasilecas, Olegas
    INFORMATICA, 2012, 23 (03) : 369 - 390
  • [9] Application of the ontology axioms for the development of OCL constraints from PAL constraints
    Kalibatiene, D. (diana@isl.vgtu.lt), 1600, IOS Press BV (23):
  • [10] MACROSEARCH - A PROGRAM FOR GENERATING STRUCTURES FROM NMR CONSTRAINTS USING SYSTEMATIC CONFORMATIONAL SEARCH
    BEUSEN, DD
    HEAD, RD
    CLARK, JD
    SHANDS, EFB
    KARASEK, SF
    DAMMKOEHLER, RA
    JOURNAL OF CELLULAR BIOCHEMISTRY, 1993, : 250 - 250