期刊文献+

基于谓词切片的字符串测试数据自动生成 被引量:4

AUTOMATIC TEST DATA GENERATION OF CHARACTER STRING BASED ON PREDICATE SLICE
在线阅读 下载PDF
导出
摘要 字符串谓词使用相当普遍.如何实现字符串测试数据的自动生成是一个有待解决的问题.针对字符串谓词,讨论了路径P\-ath上给定谓词的谓词切片的动态生成算法,以及基于谓词切片的字符串测试数据自动生成方法,并给出了字符串间距离的定义.利用程序DUC(Definition_Use_Control)表达式,构造谓词的谓词切片;对任意的输入,通过执行谓词切片,获取谓词中变量的当前值;进而对谓词中变量的每一字符进行分支函数极小化,动态生成给定字符串谓词边界的ON-OFF测试点.实验表明:该方法是行之有效的. Predicates of character string are widely used in programs. A problem that needs further research is how to automatically generate test data of string predicates. Described in this paper are a dynamic generation algorithm of predicate slices with respect to given predicates on path Path, and an approach of automatic generation of string test data based on predicate slice, and a distance between two strings are defined. The predicate slice of a given predicate is created by using DUC (Definition_Use_Control) expression of a program. According to an input of the program, the values of variables in the predicate are computed by executing the slice. Each character of string in the predicate is processed with function minimization. Thus, ON-OFF test points of the predicate border are dynamically determined. Experimental results show that the approach is effective.
出处 《计算机研究与发展》 EI CSCD 北大核心 2002年第4期473-481,共9页 Journal of Computer Research and Development
基金 国家自然科学重点基金项目(69733010) 北京化工大学青年基金项目(QN0143)
关键词 谓词切片 字符串测试数据 自动生成 动态生成算法 软件测试 软件开发 software testing, domain error, predicate of character string, predicate slice, DUC expression, ON-OFF test point, function minimization
  • 相关文献

同被引文献16

  • 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.
  • 6GlenfordJ Myers.计算机软件测试技巧[M].北京:清华大学出版社,1985..
  • 7BOEHM B W. The high cost of software[ C]// Practical Strategies for Developing Large Software Systems. Reading, MA: Addison- Wesley, 1975.
  • 8CANGUSSU J W, DECARLO R A, MATHUR A P. A formal model for the software test process [ J]. IEEE Transaction on Software Engineering, 2002,28:782-796.
  • 9DEASON W H, BROWN D B, CHANG K, et al. A rule based software test data generator[ J]. IEEE Transaction on Knowledge and Data Engineering, 1991,3(1): 108-116.
  • 10JESSOP W, KANEM J, ROY S, et al. ATLAS - an automated software testing system[ C]//International Conference on Software Engineering. Los Alamito, CA, USA: IEEE Computer Society Press, 1976:629-635.

引证文献4

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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