测试Java异常处理机制的方法  被引量:2

Approach to testing Java exception handling mechanism

在线阅读下载全文

作  者:姜元鹏[1] 张永平[1] 姜淑娟[1] 

机构地区:[1]中国矿业大学计算机科学与技术学院,江苏徐州221008

出  处:《计算机工程与设计》2007年第20期5069-5071,5075,共4页Computer Engineering and Design

基  金:中国矿业大学校科学研究基金项目(OD4527)

摘  要:异常处理机制能增强程序运行的可靠性,提高软件的健壮性。然而,如果异常处理机制使用不当,会带来许多潜在的错误,因而很有必要对程序的异常处理结构进行测试。提出了一种识别被测程序中的所有异常变量"定义-使用"关系的方法,并使用一个异常的定义-捕获度量来计算异常定义-使用链的测试覆盖。最后设计了一种异常分析及测试的原型工具。Exception handling mechanism can increase the reliability of the system and improve the robustness of the software. However, incorrect application of exception handling mechanism will bring many potential errors, so it is necessary for exception handling constructs to be tested. A testing methodology is presented to identify the exception variables "def-uses" to be tested in the tested program, and test coverage of these "def-uses"links is calculated by using an exception def-catch metric. Finally, a rough prototype tool for exception analysis and testing is designed.

关 键 词:异常处理 异常测试 定义-使用测试 故障注入 测试覆盖度量 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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