期刊文献+

一种快速测试Java异常处理机制的方法 被引量:1

Approach to Testing Java Exception Handling Mechanism Quickly
在线阅读 下载PDF
导出
摘要 异常处理机制能增强程序运行的可靠性,提高软件的健壮性,但异常处理代码本身可能存在错误.由于它的特殊性,采 用与测试普通代码同样的方法对其进行测试,通常效率不高而且很难达到预期的效果.在分析了利用断言违背策略进行软件故 障注入技术的基础上,提出了将Java异常处理机制的特殊结构同断言违背策略、程序变异技术相结合,可以有效地测试异常处 理代码,并设计工具来支持这种故障注入方法. Exception handling mechanism can increase the reliability of the system and improve the robustness of the software. It is especially difficult to test the code used to respond to exceptional conditions by usual methods. This error recovery code tends to be an error prone part of a system. This paper shows that it can test Java exception handling code effectively through combining the structure of exception handling with an “assertion violation” technique for injecting software faults. A supporting tool has been designed for the proposed method at the end of paper.
出处 《小型微型计算机系统》 CSCD 北大核心 2005年第10期1854-1857,共4页 Journal of Chinese Computer Systems
基金 国家自然科学基金(60073012)资助江苏省科技攻关项目(BE2001025)资助江苏省自然科学基金(BK2001004)江苏省计算机信息处理技术重点实验室(苏州大学)基金中国矿业大学校基金中国矿业大学青年基金的资助.
关键词 异常处理 软件故障注入 软件测试 程序变异 exception handling software faults injection software testing program mutation
  • 相关文献

参考文献12

  • 1Garcia A F, Rubira C M F, Romanovsky A et al. A comparative study of exception handling mechanisms for building dependable object-oriented software [J]. The Journal of Systems and Software, 2001, 59: 197-222.
  • 2Goodenough J B. Exception handling: issues and a proposed notation[J]. Communications of the ACM 18, 12, 1975, 683-696.
  • 3Cristian F. Exception handling and tolerance of software faults [A]. In:M. Lyu, editor, Software Fault Tolerance[M], 1995,81-107.
  • 4Toy WN. Fault-tolerant design of local ESS processors [C].Proceedings the IEEE,York,1978,66(10) :1126-1145.
  • 5Fetzer C, Hogstedt K, Felber P. Automatic detection and masking of non-atomic exception bandling[C]. Proceedings of the 2003 International Conference on Dependable Systems and Networks (DSN' 03), 2003,445-454.
  • 6Sinha S, Harrold M J. Analysis and testing of programs with exception-handling constructs[J]. IEEE Transactions on Software Engineering 26, September 2000,849-871.
  • 7Bieman J M, Dreilinger D, Lin Li-jun. Using fault injection to increase software test coverage[A]. Software Reliability Engineering Proceedings Seven International Symposium[C]. New York: IEEE Computer Society, 1996,166-174.
  • 8Thorbuus R. Software fault injection testing (master thesis)[Z]. Stockholm, February 2000.
  • 9Wang J Y,Sun J Z ,Li Y C et al. The implementation of FTT 1: A hardware - based fault injector[A]. Proc IEEE International Workshop on Computer - Aided Design. Test and Evaluation for dependability [C]. Beijing: IEEE Computer Society ,1996, 170- 174.
  • 10Kanawati G A, Kanawati N A, AbrahamJ A. A flexible software - based fault and error injection system[J]. IEEE Trans Computer ,1995 ,44(2) :248- 260.

二级参考文献2

共引文献5

同被引文献2

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部