期刊文献+

基于模型检测技术的变异测试用例生成方法 被引量:1

Approach of Mutation Test Case Generation Based on Model Checking
下载PDF
导出
摘要 为了进行基于模型的软件测试变异分析,文中提出了一种基于模型检测的变异测试用例生成方法。基于模型检测工具UPPAAL的形式化分析与测试框架,首先用符合规范的时间自动机模型描述被测系统;然后基于时间自动机模型的基本结构和语法,对系统模型进行一组变异操作,并模拟实现时可能出现的一些错误;对变异后的模型分别使用UPPAAL Yggdrasil工具,生成一组能覆盖变异区域的测试用例;在系统变异模型上执行生成的测试用例,根据测试执行结果(是否能"杀死"变异体)筛选出一组有效的测试用例。通过实例验证,所提方案生成的测试用例是有效的,且测试用例集变异分数优于现有的基于状态机复制的变异测试用例自动生成方法和基于模型中变换覆盖的变异测试用例生成方法。 In order to carry out mutation analysis of software testing,this paper proposed a method generating mutation test case based on model checking.Using formalized analysis of UPPAAL and test framework,the system under test is firstly described as a timed automata which conforms to its specifications.Then a set of mutation operation following timed automata’s basic structure and grammar are injected into the original model to simulate some implementation error which may occur.The mutated models and accessibility property are used as inputs to UPPAAL Yggdrasil to gene-rate test cases covering mutation area.Lastly,test cases are executed on the mutated model and a set of valid test cases is selected on the basis of test execution result(whether the test case can kill the mutation).Experimental results show that the generating test case of the proposed method is valid.Moreover,the mutation score of test case set is higher than that of the existing one based on state machine duplication and model’s transition coverage.
作者 杨红 洪玫 屈媛媛 YANG Hong;HONG Mei;QU Yuan-yuan(College of Computer Science,Sichuan University,Chengdu 610065,China)
出处 《计算机科学》 CSCD 北大核心 2018年第B11期488-493,共6页 Computer Science
基金 四川省应用基础研究项目基金(2014JY0112)资助
关键词 变异测试 变异测试用例 测试用例生成 模型检测 时间自动机 Mutation testing Mutation test case Test case generation Model checking Timed automata
  • 相关文献

参考文献2

二级参考文献115

  • 1姜瑛,辛国茂,单锦辉,张路,谢冰,杨芙清.一种Web服务的测试数据自动生成方法[J].计算机学报,2005,28(4):568-577. 被引量:50
  • 2FewsterM GranamD 舒智勇 译.软件测试自动化技术与实例详解[M].北京:电子工业出版社,2000..
  • 3Zhu H, Hall P, May J. Software unit test coverage and ade- quacy[J]. ACM Computing Survey, 1997, 29(4): 366-427.
  • 4Andrews J H, Briand L C, Labiche Y. Is mutation an appro- priate tool for testing experiments? [C]//Proceedings of the 27th International Conference on Software Engineering (ICSE '05), St Louis, Missouri, 2005. New York, NY, USA: ACM, 2005: 402-411.
  • 5Do H, Rothermel G. On the use of mutation faults in empiri- cal assessments of test case prioritization techniques[J]. IEEE Transactions on Software Engineering, 2006, 32(9): 733-752.
  • 6Hamlet R G. Testing programs with the aid of a compiler[J]. IEEE Transactions on Software Engineering, 1977, 3(4): 279-290.
  • 7DeMillo R A, Lipton R J, Sayward F G. Hints on test data selection: help for the practicing programmer[J]. Computer, 1978, 11(4): 34-41.
  • 8King K N, Offutt A J. A Fortran language system for muta- tion based software testing[J]. Software: Practice and Expe- rience, 1991, 21(7): 685-718.
  • 9Delamaro M E, Maldonado J C. Proteum-a tool for the assessment of test adequacy for C programs[C]//Proceedings of the Conference on Performability in Computing Systems (PCS '96), New Brunswick, New Jersey, 1996: 79-95.
  • 10Ma Y S, Offutt A J, Kwon Y R. MuJava: an automated class mutation system[J]. Software Testing, Verification and Reli- ability, 2005, 15(2): 97-133.

共引文献21

同被引文献7

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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