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

非定态路径测试问题的分析与一种转换算法
引用本文:缪力,张大方,季洁,宣恒农. 非定态路径测试问题的分析与一种转换算法[J]. 电子学报, 2005, 33(2): 258-261
作者姓名:缪力  张大方  季洁  宣恒农
作者单位:湖南大学计算机与通信学院,湖南长沙,410082;南京财经大学信息工程学院,江苏南京,210003
基金项目:国家自然科学基金,江苏省自然科学基金
摘    要:测试数据生成中使用静态分析法的主要问题之一是难以处理程序变量的不确定性.本文对软件测试数据生成中的变量"不确定"问题进行了分析,认为该问题的实质是程序中变量本身的符号不确定性和程序的动态性,根据这个思路提出非定态路径、变符号变量、程序状态变量等概念,并将问题进行了形式化的描述,证明了非定态路径约束解空间可进一步划分为多个子空间.在此结论的基础上,本文给出了一个将非定态路径测试转换为定态路径测试的算法,对非定态路径测试问题的理论分析和解决途径进行了有益的尝试.

关 键 词:软件测试  非定态路径  变符号变量  数组和指针
文章编号:0372-2112(2005)02-0258-04
收稿时间:2003-08-04

Formal Analysis of Nondeterminism Path Test Problem and a Transform Algorithm
MIAO Li,ZHANG Da-fang,JI jie,XUAN Hen-nong. Formal Analysis of Nondeterminism Path Test Problem and a Transform Algorithm[J]. Acta Electronica Sinica, 2005, 33(2): 258-261
Authors:MIAO Li  ZHANG Da-fang  JI jie  XUAN Hen-nong
Affiliation:1. College of Computer and Communication,Hunan University,Changsha,Hunan 410082,China;2. School of Information Engineering,Nanjing University of Economics,Nanjing,Jiangsu 210003,China
Abstract:In the field of automatic test data generation,a difficult problem is the nondeterminism of program variable,e.g.,array problem and pointer problem.Array variants and pointer variants are defined as a special kind of variants,variants with variable symbol,and a path with variants with variable symbol is defined as a nondeterministic path.Generating testing data of a path is finding an input that satisfies the path constraint condition.By proving the input space satisfying the constraint of a nondeterministic path can be further partitioned into many sub spaces,the nondeterminism is avoided when test data is searched only in a sub space in theory.An algorithm is presented to find a sub space by program slicing.
Keywords:software testing  nondeterministic path  variant with variable symbol  array and pointer
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《电子学报》浏览原始摘要信息
点击此处可从《电子学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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