期刊文献+

基于故障定位的测试用例优先排序方法 被引量:6

Priority Ranking Method of Test Cases Based on Fault Location
下载PDF
导出
摘要 协议一致性测试是检验被测实现是否与标准协议规范相一致的方法,可确保符合协议的设备或者系统互联与互通。在被测设备调试、升级和修复等过程中,往往需要重新执行所有测试案例,以确保协议一致性测试的完备性。在协议实现的过程中,需要频繁地进行测试和修复,直至被测设备的协议完全符合协议的标准规范。而在每次的回归过程中,没有策略地执行测试案例集中所有的测试案例会增加测试的工作量。只有所有的测试案例执行结束,才能确定测试故障是否被正确修复,或者检测出其他新出现的故障。这导致了某些可以检测到故障的测试案例不能尽早执行,无法将测试重点放在易出错的部分,测试执行开销较大,会影响测试效率。因此在协议一致性测试过程中,如何对庞大的测试案例集进行优化并减少测试成本?在保证测试需求的前提下,使用尽可能少的测试案例尽快检测出系统中存在的故障以提高测试的故障检测率,成为了亟待解决的问题。文中在对现有的测试用例优先排序方法进行研究的基础上,对基于故障定位的测试用例优先排序算法进行了改进,以提高故障检测效率。该方法结合测试需求间的依赖关系、执行序列进行动态调整,对检错概率高的测试案例进行动态选取。在搭建的无线传感器网络的协议一致性测试系统上,对该算法进行了有效性验证。相较于Additional和FTP算法,所提方法的故障检测平均百分比APFD和测试效率TCFD分别至少提高了9.2%和7.6%。 Protocol conformance testing is a method to verify whether the tested implementation is consistent with the standard protocol specification,which can ensure the interconnection and interworking of the equipment or system in accordance with the protocol.In the process of debugging,upgrading and repairing the tested equipment,it is often necessary to re-execute all test cases to ensure the completeness of protocol conformance testing.In the process of protocol implementation,it is necessary to test frequently and repairs this process until the protocol implementation of the tested equipment fully conforms to the protocol standard specification.In each regression process,the unstrategic execution of all test cases in the test case set will increase the workload of the test.Only at the end of all test cases,whether the test failure has been repaired correctly,or if other new failures have been detected,can be determined.As a result,some test cases that can detect faults can not be executed as soon as possible,and the test can not focus on the error-prone parts.The cost of test execution is large,which affects the test efficiency.Therefore,in the process of protocol conformance testing,how to optimize the huge test case set and reduce the test cost.Under the premise of ensuring the test requirements,using as few test cases as possible to detect the faults in the system as soon as possible,and improving the test fault detection rate has become an urgent problem to be solved.In this paper,based on the research of the existing test case priority sorting methods,the test case priority sorting algorithm based on fault location was improved,so as to improve the efficiency of fault detection.Combined with the dependence between test requirements,the dynamic adjustment of sequence is performed,and the test cases with high error detection probability are selected dynamically.The algorithm is verified effectively on the protocol conformance test system of wireless sensor networks.Compared with the Additional and FTP algorithms,its average percentage of fault detection APFD and test cost TCFD increases by at least 9.2%and 7.6%respectively.
作者 陈静 舒强 谢昊飞 CHEN Jing;SHU Qiang;XIE Hao-fei(School of Economics and Business Administration,Chongqing University of Education,Chongqing 400067,China;Chongqing University of Posts and Telecommunications,Chongqing 400065,China;School of Automation,Chongqing University of Posts and Telecommunications,Chongqing 400065,China)
出处 《计算机科学》 CSCD 北大核心 2019年第8期239-243,共5页 Computer Science
关键词 协议一致性测试 故障检测 排序方法 效率提升 方法改进 Protocol conformance test Fault detection Sort method Efficiency improvement Method improvement
  • 相关文献

参考文献3

二级参考文献25

  • 1肖金声.骑士巡游问题的解[J].中山大学学报(自然科学版),1994,33(3):15-18. 被引量:1
  • 2Stuart J R,Peter N.人工智能——一种现代的方法[M].2版.北京:清华大学出版社,2006.
  • 3梅尔斯.软件测试的艺术[M].2版.王峰,陈杰,译.北京:机械工业出版社,2006.
  • 4西格兰.集体智慧编程[M].南京:东南大学出版社,2009.
  • 5Tom M Mitchell.曾华军 张银奎译.机器学习[M].北京:机械工业出版社,2003..
  • 6Jones JA, Harrold MJ.Stasko J. Visualization of test informa-tion to assist fault localization[C] // 24th International Confe-rence on Software Engineering(ICSE2002). 2002:467-477.
  • 7Wong WE, Debroy V. A survey of software fault localization.Technical report[R]. The University of Texas at Dallas,2009.
  • 8Chen Zhen-yu.Xu Bao-wen.Zhang Xiao-fang, et al. A novel ap-proach for test suite reduction based on requirement relationcontraction[C] // 23rd ACM symposium on Applied computing(SAC2008) Fortaleza,Ceara,Brazil, 2008 : 390-394.
  • 9Hao Dan,Xie Tao,Zhang Lu,et al. Test input reduction for re-sult inspection to facilitate fault localization [ J ]. AutomatedSoftware Engineering,2010,17:5-31.
  • 10Yu Yan-bing,Jones J A,Harrold M J. An empirical study of theeffects of test suite reduction on fault localization[C] // Procee-ding of 30th International Conference on Software Engineering(ICSE2008). Leipzig,2008:201-210.

共引文献4

同被引文献67

引证文献6

二级引证文献11

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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