首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于规范和程序域分析的软件测试方法
引用本文:赵瑞莲,闵应骅. 一种基于规范和程序域分析的软件测试方法[J]. 计算机研究与发展, 2003, 40(6): 846-855
作者姓名:赵瑞莲  闵应骅
作者单位:1. 北京化工大学信息科学与技术学院,北京,100029
2. 中国科学院计算技术研究所,北京,100080
基金项目:国家自然科学基金重点项目 ( 697330 10 ),北京化工大学青年科研基金 (QN0 14 7)
摘    要:虽然软件规范规定了输入变量的定义域(功能域),但程序实现本身也定义了其定义域(运行域).如果二者不能完全重合,那么某些软件故障就可检测出来.为此,提出了一种基于规范和程序域分析的软件测试方法,介绍了一个运行域自动确定系统ADSOD,并讨论了边界测试数据的选取原则.对特殊表达式,采用程序切片技术,构造基于表达式的可执行模块,通过执行该模块,识别其输入变量的奇异值,进而确定其输入变量的取值范围.通过分析功能域和运行域的边界测试数据集,检测二者的重合性,并根据其分析结果产生测试用例.实验表明:所提方法产生的测试用例,可以有效地提高测试效率.

关 键 词:软件测试 域分析 边界测试数据集 功能域 运行域

A Software Testing Method Based on Domain Analysis of Specification and Program
ZHAO Rui-Lian and MIN Ying-Hua. A Software Testing Method Based on Domain Analysis of Specification and Program[J]. Journal of Computer Research and Development, 2003, 40(6): 846-855
Authors:ZHAO Rui-Lian and MIN Ying-Hua
Affiliation:ZHAO Rui-Lian 1 and MIN Ying-Hua 2 1
Abstract:The specification of a program defines a input domain termed functional domain, while the implementation of the program also specifies a domain termed operational domain. However, if they are not coincided with each other exactly, some software faults can be detected. In this paper, a software testing approach based on domain analysis of specification and program is presented, an automated determination system of operational domain called ADSOD is introduced, and a selecting principle of boundary test data is provided. According to special expressions, modules are constructed to find singular values of some input variables with respect to the expressions by using program slicing, so that the domain of the input variables are determined by executing the modules. The coincidence of the two domains is examined by analyzing the set of boundary test data of functional domain and that of operational domain. Based on the result of analyzing the sets, test cases are generated. Experimental results show that testing efficiency can thus be remarkably enhanced by using test cases on the basis of the proposed approach.
Keywords:software testing  domain analysis  set of boundary test data  functional domain  operational domain
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号