首页> 外文期刊>International journal of software engineering and knowledge engineering >A Modified Similarity Metric for Unit Testing of Object-Oriented Software Based on Adaptive Random Testing
【24h】

A Modified Similarity Metric for Unit Testing of Object-Oriented Software Based on Adaptive Random Testing

机译:基于自适应随机测试的面向对象软件单元测试的改进相似度量

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

摘要

Finding an effective method for testing object-oriented software (OOS) has proven elusive in the software community due to the rapid development of object-oriented programming (OOP) technology. Although significant progress has been made by previous studies, challenges still exist in relation to the object distance measurement of OOS using Adaptive Random Testing (ART). This is partly due to the unique features of OOS such as encapsulation, inheritance and polymorphism. In a previous work, we proposed a new similarity metric called the Object and Method Invocation Sequence Similarity (OMISS) metric to facilitate multi-class level testing using ART. In this paper, we broaden the set of models in the metric (OMISS) by considering the method parameter and adding the weight in the metric to develop a new distance metric to improve unit testing of OOS. We used the new distance metric to calculate the distance between the set of objects and the distance between the method sequences of the test cases. Additionally, we integrate the new metric in unit testing with ART and applied it to six open source subject programs. The experimental result shows that the proposed method with method parameter considered in this study is better than previous methods without the method parameter in the case of the single method. Our finding further shows that the proposed unit testing approach is a promising direction for assisting software engineers who seek to improve the failure-detection effectiveness of OOS testing.
机译:由于面向对象编程(OOP)技术的飞速发展,在软件界发现一种有效的测试面向对象软件(OOS)的方法已被证明是遥不可及的。尽管先前的研究已经取得了重大进展,但是在使用自适应随机测试(ART)进行OOS的物距测量方面仍然存在挑战。这部分是由于OOS的独特功能,例如封装,继承和多态性。在先前的工作中,我们提出了一种新的相似性度量,称为对象和方法调用序列相似性(OMISS)度量,以促进使用ART进行多类级别的测试。在本文中,我们通过考虑方法参数并在度量标准中增加权重来扩展度量标准(OMISS)中的模型集,以开发新的距离度量标准以改进OOS的单元测试。我们使用新的距离度量来计算对象集之间的距离以及测试用例的方法序列之间的距离。此外,我们将新的度量标准与ART集成到了单元测试中,并将其应用于六个开源主题程序。实验结果表明,在单一方法的情况下,本研究中考虑的方法参数所提出的方法要优于以前没有方法参数的方法。我们的发现进一步表明,所提出的单元测试方法是协助寻求提高OOS测试故障检测效率的软件工程师的有希望的方向。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号