跳到主要导航 跳到搜索 跳到主要内容

Generating boundary values from OCL constraints using constraints rewriting and search algorithms

  • Shaukat Ali
  • , Tao Yue
  • , Xiang Qiu
  • , Hong Lu
  • Simula Research Laboratory
  • University of Oslo
  • Beihang University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

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.

源语言英语
主期刊名2016 IEEE Congress on Evolutionary Computation, CEC 2016
出版商Institute of Electrical and Electronics Engineers Inc.
379-386
页数8
ISBN(电子版)9781509006229
DOI
出版状态已出版 - 14 11月 2016
已对外发布
活动2016 IEEE Congress on Evolutionary Computation, CEC 2016 - Part of 2016 IEEE World Congress on Computational Intelligence, WCCI 2016 - Vancouver, 加拿大
期限: 24 7月 201629 7月 2016

出版系列

姓名2016 IEEE Congress on Evolutionary Computation, CEC 2016

会议

会议2016 IEEE Congress on Evolutionary Computation, CEC 2016 - Part of 2016 IEEE World Congress on Computational Intelligence, WCCI 2016
国家/地区加拿大
Vancouver
时期24/07/1629/07/16

指纹

探究 'Generating boundary values from OCL constraints using constraints rewriting and search algorithms' 的科研主题。它们共同构成独一无二的指纹。

引用此