期刊文献+

基于状态模式的面向对象的类测试技术研究 被引量:1

Research on Object-oriented Class Test Technology Based on State Mode
下载PDF
导出
摘要 类的状态测试是面向对象软件测试的重要内容,类的单元测试归结为测试类的数据成员和成员函数。该文提出了基于类的状态模式测试用例生成方法,从类的状态常量、状态变量以及成员函数等方面测试类的一致性与完整性,指出只有满足类的状态常量的约束条件与状态变量的前置条件和后置条件的测试数据,才能充分检验类的状态模式中存在的不一致、不完整性错误。 The state test of class is an important component part of object-oriented software test. Class unit test comes down to test the data member and member function. An approach of test cases generation based-on the class state model is proposed, and test consistency and integrality of classes form state constant, state variable and member function. A result is gained that only the test data which satisfies the restraint conditions of state constant and the pre-condition and post-condition of state variable fully test inconsistency and imperfect in tested classes.
出处 《计算机工程》 CAS CSCD 北大核心 2007年第2期44-46,共3页 Computer Engineering
基金 国家自然科学基金项目资助(60474070) 湖南省自然科学基金项目资助项目(04JJ3031 05JJ2002) 湖南省教育厅科研基金资助项目(05C263)
关键词 类测试 状态模式 测试用例生成 Class test State mode Test case generation
  • 相关文献

参考文献6

二级参考文献4

  • 1Roger S.Pessman 黄柏素等(译).软件工程--实践者的研究方法[M].北京:机械工业出版社,1999,10..
  • 2Weyuker, Elaine J. The cost of data flow testing: an empirical study. IEEE Transaction on Software Engineering, 1990, 16(2): 121-128.
  • 3Wilde N, Huitt R. Maintenance support for objectoriented programs. IEEE Transaction on Software Engineering, 1992, 18(12): 1 038-1 044.
  • 4陈晶,计算机工程,1995年,5期

共引文献63

同被引文献3

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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