首页> 外文学位 >Automatic data generation for MC/DC test criterion using metaheuristic algorithms.
【24h】

Automatic data generation for MC/DC test criterion using metaheuristic algorithms.

机译:使用元启发式算法自动生成MC / DC测试标准的数据。

获取原文
获取原文并翻译 | 示例

摘要

Testing has traditionally been one of the main techniques contributing to high software dependability and quality. Testing activity consumes about 50% of software development resources, so any technique aiming at reducing software-testing costs is likely to reduce software development costs. Indeed, exhaustive and thorough testing is often unfeasible because of the possibly infinite execution space or high cost with respect to tight budget limitations. High dependability computerized systems are often software intensive systems belonging to regulated domains such as aerospace and medical application domain. In such domains, quality assurance and testing activities are enforced by law or required by mandatory standards, such as DO-178B, DO-254, EN-50128, IEEE/EIA 12207, or ISO/IEC i2207. These standards and regulations enforce verification and validation activities and they specify the required testing coverage criteria.;This work explores the way search techniques can be integrated with branch distance, control and data dependencies to generate MC/DC test input data at method level. Our approach is organized in two steps. First, for any given predicate, we compute the sets of test cases that would cover the MC/DC criterion for this predicate. In the second step, we apply meta-heuristic search strategies to generate test input data assigning true and false Boolean values to clauses so that one of the MC/DC test case computed in step one is satisfied.;We propose a novel fitness function to efficiently generate test input data satisfying the MC/DC criterion. In particular we draw inspiration from the Chaining approach integrating data dependencies in the fitness design and evaluation. We extended the algorithm proposed by McMinn for the branch distance fitness adapting it to MC/DC.;To assess the feasibility of our approach we implemented a prototype of a test automation tool for code written in Java and applied it to the well-known 'Triangle' and 'NextDate' programs. We report evidence of the superiority of the new fitness function that is able to avoid plateau leading to the degradation of the optimisation search techniques to a random search as in the case of traditional white box fitness functions. The primary contribution of this work can be summarized as follows: (1) We propose a search based approach to generate MC/DC test input data; applying the Search Based Software Engineering problem techniques to testing. (2) We propose a novel fitness function in which we integrate data dependencies via control dependencies in a new fitness function tailored for MC/DC. (3) We extend the algorithm to define the fitness function to cope with mutually interacting data and control dependencies.;Proposed by NASA in 1994, the Modified Condition/Decision Coverage (MC/DC) criterion is a testing strategy required, among other practices, by the RTCA DO-178B. MC/DC is a white box testing criterion aiming at proving evidence that all clauses (Boolean expression not containing any logical operator such as z > x + y) involved in a predicate can influence the predicate value in the required way. It subsumes other well-known coverage criteria such as statement and decision coverage.
机译:传统上,测试是提高软件可靠性和质量的主要技术之一。测试活动消耗了大约50%的软件开发资源,因此任何旨在降低软件测试成本的技术都可能降低软件开发成本。实际上,由于严格的预算限制可能存在无限的执行空间或高昂的成本,因此详尽而彻底的测试通常是不可行的。高可靠性的计算机化系统通常是属于诸如航空航天和医疗应用领域之类的受管制领域的软件密集型系统。在此类领域中,质量保证和测试活动是由法律强制执行或由强制性标准(例如DO-178B,DO-254,EN-50128,IEEE / EIA 12207或ISO / IEC i2207)强制要求的。这些标准和法规强制执行验证和确认活动,并指定所需的测试覆盖范围标准。该工作探讨了将搜索技术与分支距离,控制和数据依赖项进行集成以在方法级别生成MC / DC测试输入数据的方式。我们的方法分为两个步骤。首先,对于任何给定谓词,我们计算将覆盖该谓词的MC / DC标准的测试用例集。第二步,我们应用元启发式搜索策略来生成为子句分配真和假布尔值的测试输入数据,从而满足第一步中计算的MC / DC测试用例之一。有效地生成满足MC / DC标准的测试输入数据。特别是,我们从链接方法中汲取了灵感,该方法将数据依赖项整合到适应性设计和评估中。我们扩展了McMinn提出的针对分支距离适合度的算法,以使其适合MC / DC。为评估我们方法的可行性,我们为Java编写的代码实现了测试自动化工具的原型,并将其应用于著名的“三角形”和“ NextDate”程序。我们报告了新的适应度函数的优越性的证据,与传统的白盒适应度函数一样,该函数能够避免平稳状态,从而导致优化搜索技术退化为随机搜索。这项工作的主要贡献可以概括如下:(1)我们提出了一种基于搜索的方法来生成MC / DC测试输入数据;将基于搜索的软件工程问题技术应用于测试。 (2)我们提出了一种新颖的适应度函数,其中我们通过控制依赖项将数据依赖项集成到为MC / DC量身定制的新适应性函数中。 (3)我们扩展了算法,以定义适应度函数以应对相互交互的数据和控制依赖项; 1994年NASA提出,修改条件/决策覆盖率(MC / DC)标准是除其他实践外还需要的测试策略,由RTCA DO-178B提供。 MC / DC是一个白盒测试标准,旨在证明证据包含在谓词中的所有子句(不包含任何逻辑运算符,例如z> x + y的布尔表达式)都可以按要求的方式影响谓词值。它包含其他众所周知的覆盖标准,例如声明和决策覆盖。

著录项

  • 作者

    Awedikian, Zeina.;

  • 作者单位

    Ecole Polytechnique, Montreal (Canada).;

  • 授予单位 Ecole Polytechnique, Montreal (Canada).;
  • 学科 Engineering Aerospace.;Engineering Electronics and Electrical.
  • 学位 M.Sc.A.
  • 年度 2009
  • 页码 157 p.
  • 总页数 157
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号