首页> 外文会议>International Symposium on Software Reliability Engineering >Automated Generation of Pointcut Mutants for Testing Pointcuts in AspectJ Programs
【24h】

Automated Generation of Pointcut Mutants for Testing Pointcuts in AspectJ Programs

机译:AspectJ程序中测试Pointcut的自动生成PointCut突变体

获取原文

摘要

Aspect-Oriented Programming (AOP) provides new modularization of software systems by encapsulating cross-cutting concerns. AspectJ, an AOP language, uses abstractions such as pointcuts, advice, and aspects to achieve AOP’s primary functionality. Faults in pointcuts can cause aspects to fail to satisfy their requirements. Hence, testing pointcuts is necessary in order to ensure correctness of aspects. In mutation testing of pointcuts (a type of fault-based pointcut testing), the number of mutants (i.e., variations) for pointcuts is usually large due to the usage of wildcards. It is tedious to manually identify effective mutants that are of appropriate strength and resemble closely the original pointcut expression, reflecting the kind of mistakes that developers may make. To reduce developers’ effort in this process, we have developed a new framework that automatically identifies the strength of each pointcut and generates pointcut mutants with different strengths. Developers can inspect the pointcut mutants and their join points for pointcut correctness or choose the mutants for conducting mutation testing. We conducted an empirical study on applying our framework on pointcuts from existing AspectJ programs. The results show that our framework can provide valuable assistance in generating effective mutants that are close to the original pointcuts and are of appropriate strength.
机译:面向方面的编程(AOP)通过封装交叉切割问题提供软件系统的新模块化。 AspectJ,AOP语言,使用CONTECUT,ACTION和ASPOC等抽象来实现AOP的主要功能。 Pointcuts中的故障可能导致方面无法满足其要求。因此,为了确保方面的正确性,需要测试切割液。在切割点的突变测试中(一种基于故障的积分刻录),由于使用通配符的使用量,皮点的突变体(即变化)的数量通常很大。手动识别具有适当强度的有效突变体的令人疑惑,并且密切关注原始的皮层表达,反映了开发商可能产生的那种错误。为了减少开发人员在此过程中的努力,我们开发了一个新的框架,它会自动识别每个切点的强度,并产生具有不同优点的切口突变体。开发人员可以检查Pointcut突变体及其加入点,以便切入点正确性,或选择用于进行突变测试的突变体。我们对从现有的Aspectj计划应用于Pointcuts的框架进行了实证研究。结果表明,我们的框架可以在生成靠近原始切点的有效突变体中提供有价值的帮助,并且具有适当的实力。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号