期刊文献+

一种基于优先级的迭代划分测试方法 被引量:3

An Approach of Iterative Partition Testing Based on Priority Sampling
下载PDF
导出
摘要 随机测试和划分测试是两种重要的测试方法,关于两者在失效检测能力和效率方面的比较一直是软件测试领域的研究热点之一.适应性随机测试是对随机测试的一种增强,通过实现测试用例在输入域上的均匀分布,提高了随机测试的失效检测能力.该文从划分测试出发,借鉴了均匀分布的思想,提出了一种基于优先级的迭代划分测试方法(Iterative Partition Testing based on Priority Sampling,IPT-PS).首先迭代划分输入域并选取划分后子域的中心点作为待执行的测试用例,随后采取优先级策略,将待执行的测试用例分为3种不同优先等级并依次执行.迭代划分和中心采样仅需要已知输入域的空间信息,优先级执行则考虑了测试用例的不同空间特性,上述3种操作均仅需要很少的时间开销并力求实现测试用例在输入域上的均匀分布,以提高失效检测能力.该文通过理论分析给出了IPT-PS检测出对应失效所需测试用例数量的上界,并通过一系列实验结果表明:IPT-PS在仅使用接近随机测试时间开销的情况下,可以获得与适应性随机测试相近甚至更好的失效检测能力,是一种高效的测试方法. Random testing and partition-based testing are two important test case generation methods.Comparisons on the efficiency and effectiveness between these two methods have been a popular research area.As an enhanced version of random testing,Adaptive Random Testing(ART)aims to evenly spread test cases within the input domain,in order to achieve better failure detection effectiveness.This paper follows the intuition of ART that high diversity is helpful in detecting failures,and proposes a novel algorithm,named Iterative Partition Testing based on Priority Sampling(IPT-PS).IPT-PS iteratively divides the input domain into grids,and selects the center point of each grid as test case.Priority-based execution strategy is then applied on newly generated test cases in each round of iteration.Iterative partition and fixed-center-point sampling only require information of the input domain,while priority-based execution considers different spatial characteristics of test cases.All these three steps need trivial time cost,and help to sample test cases much more even than traditional fixed-size partition testing,such that betterfailure detection effectiveness can be achieved.We theoretically prove the upper bound of the effectiveness for our method,and conduct comprehensive empirical analysis.Our experimental results show that IPT-PS can achieve effectiveness as high as ART,but with time cost as low as random testing.
出处 《计算机学报》 EI CSCD 北大核心 2016年第11期2307-2323,共17页 Chinese Journal of Computers
基金 国家自然科学基金(61103045 61502329 61502323 61572375) 软件新技术与产业化协同创新中心部分资助~~
关键词 软件测试 划分测试 随机测试 适应性随机测试 测试用例生成 失效率 F-度量 software testing partition testing random testing adaptive random testing test case generation failure rate F-measure
  • 相关文献

参考文献1

二级参考文献36

  • 1Armour P G. Not-defect, the mature discipline of testing. Commun ACM, 2004, 47:15-18.
  • 2Chen T Y, Cheung S C, Yiu S M. Metamorphic Testing: a New Approach for Cenerating Next Test Cases. Technical Report HKUST-CS98-01. Hong Kong University of Science and Technology, 1998.
  • 3Pacheco C, Lahiri S K, Ernst M D, et al. Feedbackqdirected random test generation. In: Proceedings of the 29th International Conference on Software Engineering, Washington, DC, 2007. 75-84.
  • 4Groce A, Holzmann G J, Joshi R. Randomized differential testing as a prelude to formal verification. In: Proceedings of the 29th International Conference on Software Engineering, Washington, DC, 2007. 621-631.
  • 5Bati H, Giakoumakis L, Herbert S, et al. A genetic approach for random testing of database systems. In: Proceedings of the 33rd International Conference on Very Large Data Bases, Vienna, 2007. 1243-1251.
  • 6Arcuri A, Iqbal M Z, Briand L. Black-box system testing of real-time embedded systems using random and search- based testing. In: Proceedings of the 22rid IFIP WG 6.1 International Conference on Testing Software and Systems Natal, 2010. 95-110.
  • 7Regehr J. Random testing of interrupt-driven software. In: Proceedings of the 5th International Conference on Embedded Software, Jersey City, 2005. 290-298.
  • 8Chen T Y, Yu Y T. On the relationship between partition and random testing. IEEE Trans Softw Eng, 1994, 20: 977-980.
  • 9Chen T Y, Tse T H, Yu Y T. Proportional sampling strategy: a compendium and some insights. J Syst Softw, 2001, 58:65-81.
  • 10Chen T Y, Yu Y T. The universal safeness of test allocation strategies for partition testing. Inform Sci, 2000, 129: 105-118.

共引文献2

同被引文献8

引证文献3

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部