期刊文献+

用动态模拟方法实现C程序输入变量的取值分析

Using Dynamic Simulation Method to Realize the Domain Analysis of Input Variables for C Programs
原文传递
导出
摘要 程序输入变量取值范围的确定对于测试数据的选取,尤其对边界值分析,有着直接的指导作用.一般情形下,通过对源程序进行数据流和相关性分析,可实现输入变量的取值分析.但对某些有特殊取值限制要求的表达式,用静态分析方法,难以实现其输入变量的取值分析.为此,采用动态模拟的方法,对有特殊取值限制要求的表达式,进行输入变量的取值分析.实验表明,该方法是行之有效的. The determination of the domain of input variables has guidance on test data selection, especially on boundary value analysis. Generally, the domain of input variables can be obtained by analyzing the data flow and relativity of source programs. However, for the expressions with the special value restrictions, it is difficult to calculate its domain by using static analysis. Therefore, this paper presents a dynamic simulation method to compute the domain of input variables for the expressions with the special value restrictions. The experiments indicate that the proposed method is effective.
出处 《装甲兵工程学院学报》 2004年第2期9-12,共4页 Journal of Academy of Armored Force Engineering
关键词 输入变量 取值分析 动态模拟 input variable domain analysis dynamic simulation
  • 相关文献

参考文献6

  • 1[1]Jorgensen P C. Software testing: a craftsman's approach [M]. CRC Press LLC. 2002.
  • 2[3]Phyllis G. Frankl, Elaine J. Weyuker. An applicable family of data flow testing criteria [J]. IEEE Transactions on Software Engineering, 1988,14 (10): 1483~1497.
  • 3[4]Korel B. Automated software test data generation [J].IEEE Transactions on Software Engineering, 1990,16 (8):870~879.
  • 4[5]Tip F. A Survey of Program Slicing Techniques [J]. Journal of Programming Languages, 1995,3 (3): 121~189.
  • 5[6]Zhao Ruilian, Michael R. Lyu, Min Yinghua. A new software testing approach based on domain analysis of specifications and programs [C]. The 14th International Symposium on Software Reliability Engineering (ISSRE'2003), California,USA. Nov. 2003.6~19.
  • 6赵瑞莲,闵应骅.基于谓词切片的字符串测试数据自动生成[J].计算机研究与发展,2002,39(4):473-481. 被引量:4

共引文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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