期刊文献+

一种基于数据流分析的程序定义域自动确定方法 被引量:3

A Method of Program Domain Automated Determination Based on Data Flow Analysis
下载PDF
导出
摘要 程序定义域的确定有利于指导测试用例的选取 .虽然程序规范规定了输入变量的定义域 ,但程序实现本身也定义了其定义域 ,如果二者不能完全重合 ,那么某些软件故障就可诊断出来 .文中提出了一种基于数据流分析的程序定义域自动确定方法 .通过对源程序进行数据流分析和相关性分析 ,求取输入变量的定义域 ;采用程序抽取技术 ,将与输入变量无关的语句和函数剔除 ,简化了源程序 ,提高了分析效率 ;采用动态模拟技术 ,实现了特殊情形下输入变量定义域的确定 .实验证明 ,该方法是行之有效的 . The determination of program's input domain is helpful to select test data. The implementation of a program defines the domain of input variables, though the specification of the program also specifies the domain. However, if they are not coincided with each other exactly, some software faults can be detected. Using the techniques of data flow analysis and relevance analysis on given program the domain can automatically be identified. The program slicing method is employed to delete those statements and functions that are not related to input variables, so that the given program is simplified and analyzing efficiency is improved. The domain of input variables can be obtained under some particular circumstances by using dynamic simulation strategy. A lot of experimental results show that the proposed approach is efficient.
出处 《计算机辅助设计与图形学学报》 EI CSCD 北大核心 2001年第8期762-768,共7页 Journal of Computer-Aided Design & Computer Graphics
基金 国家自然科学基金 (6973 3 0 10 )资助
关键词 数据流分析 程序抽取 自动确定 程序定义域 软件工程 软件测试 data flow analysis, program slicing, dynamic simulation, nonnumeric variable, program domain
  • 相关文献

参考文献1

  • 1郑人杰,计算机软件测试技术,1992年

同被引文献27

  • 1白文科,杨献春,许满武.一种基于逆向程序流的程序切片算法[J].计算机应用研究,2009,26(3):920-922. 被引量:3
  • 2奚红宇,徐红,高仲仪.Ada软件测试用例生成工具[J].软件学报,1997,8(4):297-302. 被引量:6
  • 3Harrold M J,Gupta R,Soffa M L.A methodology for controlling the size of a test suite[J].ACM Transaction on Software Engineer ing and Methodology,1993,2(3):270-285.
  • 4Chvatal V.A rgreedy heuristic for the set-covering problem[J].Mathematics of Operations Research,1974,4(3):233-235.
  • 5Chen T Y,Lau M F.A new heuristic for test suite reduction[J].Information and Software Technology,1998,40(5/6):47-354.
  • 6Chen T Y,Lau M F.On the completeness of a test suite reduction strategy[J].The Computer Journal,1999,42(5):30-440.
  • 7Chen T Y,Lau M F.Dividing strategies for the optimization of a test suite[J].Information Processing Letters,1996,60(3):35-141.
  • 8Mansour N,Fakin K E.Simulated annealing and genetic algo rithms for optimal regression testing[J].Journal of Software Main tenance:Research and Practice,1999,11(1):19-34.
  • 9Rothermel G,Harrold M J,Ostrin J,et al.An empirical study of the effects of minimization on the fault detection capabilities of test suites[J].Software Maintenance,1998(11):34-43.
  • 10Wong W E,Horgan J R,London S,et al.Effect of test set mini mization on fault detection effectiveness[J].Software:Practice and Experience,1998,28(4):347-369.

引证文献3

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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