期刊文献+

基于MCDC的测试用例生成方法

Test case generation method based on MCDC
下载PDF
导出
摘要 软件测试中关键的步骤就是设计和生成高效、准确的测试用例,通过自动生成测试用例可以有效解决这一问题。提出基于修正条件判定组合覆盖准则(MCDC)的测试用例生成方法。对程序源代码进行预处理,利用控制树模型生成路径集的控制树,基于控制树所设计的修正条件判定组合覆盖准则对控制树进行约减,分别提取控制树上的根结点到每个叶子结点的路径约束信息,根据路径约束信息生成测试用例。实验结果表明,所提方法在生成测试用例的个数及测试用例集对MCDC覆盖率方面都有一定提高。 Designing and generating efficient and accurate test cases is a critical step in software testing,and it can be effectively solved by automatically generating test cases.A test case generation method based on the modified conditional decision combination coverage criteria(MCDC)was proposed.The source code of the program was preprocessed.A control set tree for a path set was generated using a control tree model.The control tree was reduced according to determination of combined coverage criteria based on modified conditions designed using the control tree,and the path constraint information was extracted from the root node to each leaf node on the control tree.Test cases were generated according to the path constraint information.Experimental results show that the proposed method has certain improvement on the number of test cases generated and the MCDC coverage rate.
作者 唐嘉营 牟永敏 TANG Jia-ying;MU Yong-min(School of Computer,Beijing Information Science and Technology University,Beijing 100101,China)
出处 《计算机工程与设计》 北大核心 2019年第10期3049-3055,共7页 Computer Engineering and Design
基金 北京市自然科学基金项目(Z160002) 网络文化与数字传播北京市重点实验室开放课题基金项目(ICDD2017XX)
关键词 控制树模型 控制树 MCDC覆盖准则 路径约束信息 测试用例 control tree model control tree MCDC coverage criteria path constraint information test case
  • 相关文献

参考文献6

二级参考文献36

  • 1毛澄映,卢炎生.分支测试中测试路径用例的简化生成方法[J].计算机研究与发展,2006,43(2):321-328. 被引量:17
  • 2朱晓波,杨伟民,叶芯.更改条件/判定覆盖最小真值表生成算法及其应用[J].上海理工大学学报,2007,29(1):84-88. 被引量:7
  • 3李绪堂.远程教育中的新教学模式——互动式教学[J].中国成人教育,2007(17):123-124. 被引量:7
  • 4WIJAYASIRIWARDHANE T K, WIJAYARATHNA P G, KA- RUNARATHNA D D. An automated tool to generate test cases for performing basis path testing [ C]//ICTer 2011: Proceedings of the 2011 International Conference on Advances in ICT for Emerging Re- gions. Piscataway: IEEE Press, 2011:95-101.
  • 5ZHANG Z L, MEI L X. An improved method of acquiring basis path for software testing [ C]//Proceedings of the 5th International Con- ference on Computer Science and Education. Piscataway: IEEE Press, 2010:1891 - 1894.
  • 6DU Q F, DONG X. An improved algorithm for basis path testing [ C]//Proceedings of the 2011 International Conference on Business Management and Electronic Information. Piseataway: IEEE Press, 2011: 175-178.
  • 7McCABE T J. A complexity measure [ J]. IEEE Transactions on Software Engineering, 1976, SE-2(4): 308-320.
  • 8LUN L J, CHI X. Path numbers analysis of relationships on soft- ware architecture testing criteria [ C]// Proceedings of the 3rd In- ternational Conference on Advanced Computer Theory and Engi- neering. Piscataway: IEEE Press, 2010: 118- 122.
  • 9YANGU Y J, LUN L J, CHI X. Research on path generation for software architecture testing matrix transform-based [ C]// CSSS 2011 : Proceedings of the 2011 International Conference on Com- puter Science and Service System. Piscataway: IEEE Press, 2011 : 2483 - 2486.
  • 10Beizer B. Software Testing Techniques. 2nd ed. New York: Van Nostrand Reinhold, 1990.

共引文献17

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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