首页> 外文期刊>Expert Systems with Application >Search based constrained test case selection using execution effort
【24h】

Search based constrained test case selection using execution effort

机译:使用执行力来进行基于搜索的受限测试用例选择

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

摘要

Software testing is essential to guarantee high quality products. However, it is a very expensive activity, particularly when manually performed. One way to cut down costs is by reducing the input test suites, which are usually large in order to fully satisfy the test goals. Yet, since large test suites usually contain redundancies (i.e., two or more test cases (TC) covering the same requirement/piece of code), it is possible to reduce them in order to respect time/people constraints without severely compromising coverage. In this light, we formulated the TC selection problem as a constrained search based optimization task, using requirements coverage as the fitness function to be maximized (quality of the resultant suite), and the execution effort (time) of the selected TCs as a constraint in the search process. Our work is based on the Particle Swarm Optimization (PSO) algorithm, which is simple and efficient when compared to other widespread search techniques. Despite that, besides our previous works, we did not find any other proposals using PSO for TC selection, neither we found solutions treating this task as a constrained optimization problem. We implemented a Binary Constrained PSO (BCPSO) for functional TC selection, and two hybrid algorithms integrating BCPSO with local search mechanisms, in order to refine the solutions provided by BCPSO. These algorithms were evaluated using two different real-world test suites of functional TCs related to the mobile devices domain. In the performed experiments, the BCPSO obtained promising results for the optimization tasks considered. Also, the hybrid algorithms obtained statistically better results than the individual search techniques.
机译:软件测试对于保证高质量的产品至关重要。但是,这是非常昂贵的活动,尤其是在手动执行时。降低成本的一种方法是减少输入测试套件,这些套件通常很大以完全满足测试目标。但是,由于大型测试套件通常包含冗余(即,两个或多个测试用例(TC)覆盖相同的需求/一段代码),因此有可能在不严重影响覆盖范围的情况下减少它们以遵守时间/人员约束。因此,我们将TC选择问题公式化为基于约束的搜索优化任务,使用需求覆盖率作为要最大化的适应度函数(结果套件的质量),并将选定TC的执行工作量(时间)作为约束条件在搜索过程中。我们的工作基于粒子群优化(PSO)算法,与其他广泛的搜索技术相比,该算法简单高效。尽管如此,除了我们以前的工作之外,我们没有找到任何其他使用PSO进行TC选择的建议,也没有找到将这一任务视为约束优化问题的解决方案。我们实施了用于功能TC选择的二进制约束PSO(BCPSO),以及将BCPSO与本地搜索机制集成在一起的两种混合算法,以完善BCPSO提供的解决方案。使用与移动设备领域相关的功能TC的两个不同的实际测试套件对这些算法进行了评估。在进行的实验中,BCPSO对于所考虑的优化任务获得了可喜的结果。同样,混合算法在统计上比单独的搜索技术获得更好的结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号