基于函数占用和需求分析测试代码用例自适应优先排序  

APRFODA: Adaptive Priority Ranking of Test Cases Based on Functional Occupancy and Demand Analysis

在线阅读下载全文

作  者:薛一帆[1] 毛宇光[1,2] 

机构地区:[1]南京航空航天大学计算机科学与技术学院,江苏南京210016 [2]南京大学计算机软件新技术国家重点实验室,江苏南京210093

出  处:《计算机与现代化》2016年第3期46-51,共6页Computer and Modernization

基  金:南京航空航天大学研究生创新基地开放基金资助项目(kfjj201460)

摘  要:在采用函数占用(覆盖)的测试代码用例优先级排序过程中,其特征一般是以函数占用代码率信息表示,容易忽视其他优先排序影响因素,对此提出基于函数占用和需求分析的测试代码用例自适应优先排序方式。首先,以测试代码用例优先级排序过程中的调用函数存在路径为参照,利用源代码信息变更影响,进行影响域的回归测试分析,并对测试代码用例集进行回归范围确定。其次,考虑测试代码用例优先级排序的需求影响因素,并确定其需求优先级评价指标,然后与调用函数源代码变更影响指标进行权重自适应融合,并设计基于函数占用和需求分析评价优先级的动态调整算法。最后,通过仿真对比显示,所提方法可提高缺陷检测正确率,降低测试成本。In the process of using the cover of the test case prioritization,the feature is usually expressed by the code coverage change information,and it is easy to ignore other factors. So an adaptive priority ranking of test cases based on functional occupancy and demand analysis is proposed. Firstly,it takes the reference to the call function in the process of test case prioritization,and uses the impact of the change of source code,then takes the regression testing analysis of the domain and the regression range of the test case set. Secondly,it considers the requirement of test case prioritization,and the requirement of the evaluation index is determined. Then,the weights are adaptively integrated with the call function source code change. Finally,by comparing the simulation results,the proposed method can improve the correct rate of defect detection and reduce the test cost.

关 键 词:代码变更 测试代码用例 排序 回归测试 路径调用 需求分析 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象