| 摘要: |
| 随机测试是实践中广泛采用的一种黑盒测试方法.近年来提出的适应性随机测试方法改进了随机测试的不足,仿真实验结果表明,改进效果取决于软件失效域的特征.提出以测试约束刻画软件失效域在输入域上的分布,探讨了基于现有的程序分析技术构造测试约束的过程,讨论了基于测试约束的软件失效域的特征分析方法.以一个实例软件验证所提出的测试约束构造过程及其软件失效域特征分析方法.测试约束揭示了软件故障的触发与传播的内在机制,基于测试约束的软件失效域的特征分析方法有助于改进测试用例的设计质量以及评价适应性随机测试方法的适用性. |
| 关键词: 软件测试 测试用例 软件失效 软件缺陷 程序分析 |
| DOI:10.3724/SP.J.1001.2012.04126 |
| 分类号: |
| 基金项目:国家自然科学基金(60903003); 北京市自然科学基金(4112037); 国家教育部博士点基金(2008000401051); 中国科学院软件研究所计算机科学国家重点实验室开放课题(SYSKF1105); 中央高校基本科研业务费资助项目(FRF-SD-12-015A) |
|
| A Constraint-Based Approach to Identifying and Analyzing Failure-Causing Regions |
|
SUN Chang-Ai1,2
|
|
1.School of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing 100083, China;2.State Key Laboratory of Computer Science, Institute of Software, The Chinese Academy of Sciences, Beijing 100190, China
|
| Abstract: |
| Random testing is a widely practiced black-box testing technique. Recently, adaptive random testing has been proposed to improve the random testing, and simulation results show that the improvements depend on the characteristic of failure-causing regions of program under test. This paper presents the concept of test constraints and employs them to specify the distribution of failure-causing regions within the input domain of program under test. Characteristic analysis of failure-causing regions can be conducted on the base of their test constraints, which are derived using the available program analysis techniques. To evaluate the proposed technique, a case study on a real-life application was conducted, and the results show that the proposed test constraint provides an insight into how a failure is triggered and propagated, and the constraint-based analysis helps to improve the quality of test case design and assess the applicability of the adaptive random testing. |
| Key words: software testing test case software failure software defect program analysis |