首页> 外文期刊>Quality Control, Transactions >An Empirical Comparison of the Efficiency and Effectiveness of Genetic Algorithms and Adaptive Random Techniques in Data-Flow Testing
【24h】

An Empirical Comparison of the Efficiency and Effectiveness of Genetic Algorithms and Adaptive Random Techniques in Data-Flow Testing

机译:遗传算法效率和有效性及数据流动测试中自适应随机技术的实证比较

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

摘要

Software Testing depends on the execution of the tested-program against a set of test-inputs and the comparison of its outputs with the expected ones. The size of the input domain is very large that can be the set of real numbers (R). Thus, the selection of the appropriate inputs is one of the key problems in software testing. This process is time-consuming and needs a lot of effort and budget. Therefore, automatic inputs generation techniques are required to overcome these problems. Genetic algorithms (GAs) have been successfully used for generating test-inputs. Researchers proved that GAs overcame ordinary random search techniques (ORTs) in generating inputs. In addition, GAs can converge faster than ordinary random techniques and they can reduce effectively the size of the test-suite. Unfortunately, technically GAs needs time more than ORTs. Adaptive random testing technique (ART) is a form of ORT that works for distributing test-cases more evenly through the input domain to increase the efficiency of ORTs. So far, there is no study comparing the efficiency of GAs and ARTs in data-flow testing. In this paper, we introduce an empirical comparison for genetic algorithms and adaptive random techniques according to four factors: reducing the size of the test-suite, convergence speed, elapsed time, and the effectiveness in maximizing the coverage ratio of all du-pairs criterion. The experimental study, which was conducted to compare the two techniques, contains 7 Java programs. The results of the experiments showed that the GA technique defeated the ORT technique and the ART technique in reducing the size of the required test-suite to satisfy all du-pairs criterion. Where the GA technique created in total 31532 test-inputs while the ART technique generated 61841 and the ORT technique produced 32064. Further, the results showed that the GA technique converged faster than the ORT technique and the ART technique. Where the procedure of the GA technique was repeated 3153 times totally while the procedure of the ART technique was iterated 6184 times and the procedure of the ORT technique was repeated 3206 times. In addition, the convergence rate of GA-based technique D 8.25 generations/second, the convergence rate of the ORT D 11.98 generations/second, and the convergence rate of the ART D 13.27 generations/second. Moreover, the results showed that the GA technique is faster than the ART technique and slower than the ORT technique. Where the GA technique consumed in total 382 seconds while the ART technique consumed 465.9 seconds and the ORT technique consumed 267.6 seconds. Additionally, the results showed that the GA technique satisfied overall coverage ratio equals 74% of all du-pairs while the ART technique satisfied 78% and the ORT technique satisfied 73%. From these results, we concluded that GA algorithms are more effective than ORT and ART techniques in data-flow testing but ART satisfied the most coverage ratio. Therefore, we recommend hybridizing GA and ART and applying the hybrid technique in the test-data generation process.
机译:软件测试取决于对一组测试输入执行测试程序以及其输出与预期的测试的比较。输入域的大小非常大,可以是实数(R)集。因此,选择适当的输入是软件测试中的关键问题之一。这个过程是耗时的,需要很多努力和预算。因此,需要自动输入生成技术来克服这些问题。遗传算法(气体)已成功用于产生测试输入。研究人员证明了气体克服普通随机搜索技术(ORTS)在产生输入时。此外,气体可以比普通的随机技术更快地收敛,它们可以有效地减少测试套件的尺寸。不幸的是,技术上的气体需要时间超过矫身。自适应随机测试技术(ART)是ORT的形式,其用于通过输入域更均匀地分配测试情况以提高ORT的效率。到目前为止,没有研究数据流测试中的天然气和艺术效率的研究。在本文中,我们根据四个因素引入了遗传算法和自适应随机技术的经验比较:减小了测试套件,收敛速度,经过时间的尺寸,以及最大化所有DU对标准的覆盖率的有效性。进行了实验研究,以比较两种技术,包含7个Java程序。实验结果表明,GA技术在降低所需测试套件的尺寸以满足所有DU对标准时击败ORT技术和技术技术。在总共31532个测试输入中产生的GA技术,而现有技术产生的61841和ORT技术产生32064。此外,结果表明,GA技术会聚比ORT技术和技术技术更快。在迭代本领域技术的步骤6184次的同时,在全部重复3153次的情况下重复3153次,并重复3206次。此外,基于GA的技术D 8.25代/秒的收敛速率,ORT D 11.98世代的收敛速度,以及ART D 13.27世代的收敛速度为13.27代/秒。此外,结果表明,GA技术比ART技术更快,比ORT技术慢。在GA技术总计382秒的情况下,艺术技术消耗465.9秒,ORT技术消耗267.6秒。另外,结果表明,GA技术满足总体覆盖率等于所有Du-对的74%,而艺术技术满足78%,ORT技术满足73%。从这些结果中,我们得出结论,GA算法比数据流测试中的ort和艺术技术更有效,但艺术满足最多的覆盖率。因此,我们建议杂交GA和艺术并在测试数据生成过程中应用混合技术。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号