计算机科学 ›› 2017, Vol. 44 ›› Issue (4): 173-176.doi: 10.11896/j.issn.1002-137X.2017.04.038
潘丽丽,王天锷,秦姣华,向旭宇
PAN Li-li, WANG Tian-e, QIN Jiao-hua and XIANG Xu-yu
摘要: 测试用例优先级排序作为一种高效实用的回归测试技术,通常以测试用例的覆盖度作为优先级排序的量化指标,忽略了测试用例的其他测试性能。针对该问题,提出一种基于DU链的测试用例优先级排序算法。该算法 综合考虑 测试用例的DU链覆盖度和回归测试的错误检测能力,对测试用例优先级进行量化。与已有算法相比,该算法基于数据流覆盖,充分利用了测试执行的历史信息和程序模块的耦合信息,在排序过程中动态计算测试用例的优先级量化值。实验结果表明,采用优先级排序算法的测试用例集能在测试过程中以较短的时间发现更多的错误,有效地提高了回归测试的检错效率。
[1] WONG W E,HORGAN J R,LONDON S,et al.A study of effective regression testing in practice[C]∥Proceedings of the 8th IEEE International Symposium on Software Reliablity Enginee-ring,1977.Albuquerque,New Mexio:IEEE Comp Soc,1997:264-274. [2] ROTHERMEL G,UNTCH R H,CHU C Y,et al.Prioritizing test cases for regression testing[J].IEEE Transactions on Software Engineering,2001,27(10):929-948. [3] RUMMEL M J,KAPFHAMMER G M,THALL A.Towards the prioritization of regression test suites with data flow information[C]∥Proceedings of the ACM Symposium on Applied Computing,2005.Santa Fe,2005:1499-1504. [4] ARAFEEN M J,DO H.Test Case Prioritization Using Requirements-Based Clustering[C]∥2013 IEEE Sixth International Conference on Software Testing,Verification and Validation,2013.Luembourg:IEEE Conference Publications,2013:312-321. [5] HONG M,DAN H,Z L Mm,et al.A static approach to prioritizing JUnit test case[J].IEEE Transactions on Software Engineering,2012,38(6):1258-1275. [6] KE Z,BO J,W K C.Prioritizing Test Cases for Regression Testing of Location-Based Services:Metrics,Techniques,and Case Study[J].IEEE Transactions on Software Engineering,2014,7(1):54-67. [7] ALESSANDRO M,MAHFUZUL I,WASEEM A,et al.A Mul-ti-Objective Technique to Prioritize Test Cases[J].IEEE Transactions on Software Engineering,2015,99:1-22. |
No related articles found! |
|