期刊文献+

一种基于约束的变异测试数据生成方法 被引量:11

An Approach for Constraint-Based Test Data Generation in Mutation Testing
下载PDF
导出
摘要 作为衡量测试用例集完备性的测试策略,变异测试是一种"面向缺陷"的单元测试技术,主要用来生成完备的测试用例集.其中面向路径测试数据生成技术通过约束系统构造和求解过程实现用例集生成,是一种高效的测试用例生成技术.但目前大部分面向路径测试用例生成技术只考虑了程序语句间的控制依赖,即通过对控制流图的分析来构建约束系统,而忽略了语句间的数据依赖对约束系统的影响.充分考虑两种依赖关系,针对域削减的测试数据生成技术进行了改进,提出了一种考虑数据依赖的域削减方法.实验表明,这种方法在变异测试数据生成的成功率和执行效率上都有较大程度的提高. As a testing strategy to evaluate the completude of test cases,mutation testing has been identified as a "fault-oriented" technique for unit testing,which is mainly used to generate complete test cases.By applying mutation operators to simulate software defects,mutation testing generates mutants and constructs a test suit to kill them.Test data generation for the test suit constructing includes random method,path-wise method and goal-oriented test data generators.Among them,the path-wise technique of test data generation is a high-efficiency technique for test cases generation,implements test data generation by building and solving constraint systems.However,most of path-wise generation techniques only take the control dependence among statements into consideration,viz,build constraint system by analyzing the control flow graph but neglecting the data dependence among statements.Considering both of them,a new domain reduction method named domain reduction approach with data dependence(DRD) is proposed to improve the test data generation technique of domain reduction.Using path with data dependence,DRD combines the constraint-based test data generation technique with the chaining approach for test data generation to build constraint system.As an automation technology for test data generation,DRD solves the constraint system by domain reduction technique and verifies test data with back substitution method.Experimental results showed that this method improves the successful rate and execution efficiency of test data generation in mutation testing at a large extent.
出处 《计算机研究与发展》 EI CSCD 北大核心 2011年第4期617-626,共10页 Journal of Computer Research and Development
基金 国家"八六三"高技术研究发展计划基金项目(2007AA01Z123)
关键词 变异测试 约束系统 软件自动化测试 测试数据生成 面向路径测试 mutation testing constraint system automated software testing test data generation path-wise testing
  • 相关文献

参考文献17

  • 1DeMillo R A, Lipton R J, Sayward F G. Hints on test data selection: Help for the practicing programmer [J]. IEEE Computer, 1978, 11(4): 34-41.
  • 2Hamlet F G. Testing programs with the aid of a compiler [J]. IEEE Trans on Software Engineerirlg, 1977, 3 (4): 279-290.
  • 3Korel B, Al-Yami A M. Assertion-oriented automated test data generation [C] //Proc of the 18th Int Conf on Software Engineering. Washington, DC: IEEE Computer Society, 1996 : 71-80.
  • 4Delamaro M E, Maidonado J C, Mathur A P. Interface rnutation: An approach for integration testing [J]. IEEE Trans on Software Engineering, 2001, 27(3): 228-247.
  • 5Shufang Lee, Bai Xiaoying, Chen Yinong. Automatic mutation testing and simulation on OWL-S specified Web services [C]//Proc of the 41st Annual Simulation Symposium (ANSS-41). Washington, DC: IEEE Computer Society, 2008:149-156.
  • 6Ferrari F C, Maldonado J C, Rashid A. Mutation testing for aspect-oriented programs[C] //Proc of the 1st Int Conf on Software Testing, Verification, and Validation. Washington, DC: IEEE Computer Society, 2008:52-61.
  • 7Ma Y S, Kwon Y R, Offutt J. Inter-class mutation operators for java [C] //Proc of the 13th Int Symp on Software Reliability Engineering (ISSRE 2002). Washington, DC: IEEE Computer Society, 2002:352-363.
  • 8Jon E. A survey on automatic test data generation [C/OL] J/ Proe of the 2nd Conf on Computer Science and Engineering. 1999: 21-28. [2009-05-01]. http://staff, unak. is/not/andy/ MScTestingMaintenan ee0607/Lectures/SurveyAutomaticTest DataGeneration. pdf.
  • 9DeMillo R A, Offutt A J. Constraint-based automatic test data generation [J]. IEEE Trans on Software Engineering, 1991, 17(9): 900-910.
  • 10Offutt A J, Jin Z, Pan J. The dynamic domain reduction procedure for test data generation [J]. Software: Practice and Experienee, 1991, 17(9): 900-910.

二级参考文献20

  • 1Andrews J H, Brand L C, Labiche Y. Is mutation an appropriate tool for testing experiments? //Proceedings of the 27th International Conference on Software Engineering (ICSE 2005), St. Louis, MO, USA, 2005. 402-411.
  • 2Offutt A J, Untch R. Mutation 2000 : Uniting the orthogo nal//Proeeedings of the Mutation 2000 : Mutation Testing in the Twentieth and the Twenty First Centuries. San Jose, CA, USA, 2000:45- 55.
  • 3Delamaro M E, Maidonado J C, Mathur A P. Interface mutation: An approach for integration testing. IEEE Transactions on Software Engineering, 2001, 27(3) : 228-247.
  • 4Ma Y-S, Kwon Y-R, Offutt J. Inter-class mutation operators for Java//Proceedings of the 13th International Symposium on Software Reliability Engineering (ISSRE 2002). Annapolis, MA, USA, 2002. 352-363.
  • 5Lee H-J, Ma Y-S, Kwon Y-R. Empirical evaluation of orthogonality of class mutation operators//Proceedings of the 11th Asia-Pacific Software Engineering Conference. Busan, Korea, 2004:512-518.
  • 6Aiehernig B K. Mutation testing in the refinement calculus. Formal Aspects of Computing, 2003, 15(2-3) : 280-295.
  • 7Jiang Y, Hou S-S, Shan J-H, Zhang L, Xie B. Contractbased mutation for testing components//Proceedings of the 21st International Conference on Software Maintenance (ICSM 2005). Budapest, Hungary, 2005:483-492.
  • 8Offutt A J, Pan J. Detecting equivalent mutants and the feasible path problem//Proceedings of the 1996 Annual Conference on Computer Assurance (COMPASS 96). Gaithersburg, MD, USA, 1996:224-236.
  • 9DeMillo R A, Offutt A J. Constraint-based automatic test data generation. IEEE Transactions on Software Engineering, 1991, 17(9): 900-910.
  • 10Offutt A J, Jin Z, Pan J. The dynamic domain reduction procedure for test data generation. Software: Practice and Experience, 1999, 29(2): 167-193.

共引文献19

同被引文献207

  • 1姜瑛,辛国茂,单锦辉,张路,谢冰,杨芙清.一种Web服务的测试数据自动生成方法[J].计算机学报,2005,28(4):568-577. 被引量:50
  • 2山红红,李忠忠,杨朝合,李春义.两段提升管催化裂化技术动力学特点分析[J].中国石油大学学报(自然科学版),2007,31(1):114-117. 被引量:4
  • 3赵一丁,夏涛,李志民.催化裂化生产专家系统技术关键的研究[J].计算机仿真,2007,24(6):138-141. 被引量:3
  • 4赵一丁,李志民,夏涛.催化裂化生产仿真建模研究[J].计算机仿真,2007,24(7):74-77. 被引量:2
  • 5Zhu H, Hall P, May J. Software unit test coverage and ade- quacy[J]. ACM Computing Survey, 1997, 29(4): 366-427.
  • 6Andrews 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.
  • 7Do 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.
  • 8Hamlet R G. Testing programs with the aid of a compiler[J]. IEEE Transactions on Software Engineering, 1977, 3(4): 279-290.
  • 9DeMillo 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.
  • 10King 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.

引证文献11

二级引证文献30

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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