期刊文献+

基于JML的面向对象设计指导测试方法的研究与实现

RESEARCH AND IMPLEMENTATION OF THE DESIGN-DIRECTED TEST METHOD BASED ON JML
下载PDF
导出
摘要 面向对象的软件测试应该也只能被设计所指导。提出了一种方案:在使用UML进行面向对象的设计阶段为类和方法加入OCL约束,然后由一种转换工具将带有OCL约束的UML类图转换为带有JML(Java建模语言,Java Modeling Language)注解的Ja-va类代码框架,就可以利用JML丰富的支撑工具进行调试和自动测试,从而实现了设计指导测试的思想。研究了OCL到JML的转换机制,并给出了基于Rational Rose的转换工具JML-AddIn的实现框架。 The object-oriented test should absolutely reflect the design, and the whole process of the test phase should be thoroughly directed by the design. The OCL constraints are added during the design with UML,and they are translated into Java skeleton code annotated by JML by a special tool. The test can be done automatically by the JML supporting tools. The translation rules between OCL and JML are set and analyzed,and the implementation architecture of the translation tool JML-Addln based on Rational Rose is presented.
作者 查冰 杨宗源
出处 《计算机应用与软件》 CSCD 北大核心 2008年第4期106-108,共3页 Computer Applications and Software
关键词 面向对象 自动化测试 OCL 形式语言 Object oriented Automated testing OCL Formal language
  • 相关文献

参考文献16

  • 1Cheon Y.A Runtime Assertion Checker for the Java Modeling Language.Technical Report 03-09,Department of Computer Science,Iowa State University,2003,4.
  • 2Leavens G T,Baker A L,Ruby C.JML:A notation for detailed design.In Haim Kilov,Bernhard Rumpe,and Ian Simmonds,editors,Behavioral Specifications of Businesses and Systems,chapter 12,Kluwer,1999:175-188.
  • 3Leavens G T,Baker A L,Ruby C.Preliminary design of JML,A behavioral interface specificationlanguage for Java.Technical Report TR 98-06i,Department of Computer Science,Iowa State University,June 1998.
  • 4OMG Unified Modeling Language Specification,March 2003Version 1.5formal/03-03-01.
  • 5UML 2.0 OCL Specification.http://www.omg.org.
  • 6Cheon Y,Leavens G T.A simple and practical approach to unit testing.The JML and JUnit way.Technical Report 01-12,Department of Computer Science,Iowa State University,2001,11.
  • 7Xu Guoqing,Yang Zongyuan.JMLAutoTest:A Novel Automated Testing Framework Based on JML and JUnit.In Proceedings of 3rd International Workshop on Formal Approaches to Testing of Software,Montreal,Quebec,Canada,October 2003:118-127.
  • 8OMG UML Resource Page.www.uml.org.
  • 9UML相关工具一览.2006.http://www.umlchina.com.
  • 10Using the Rose Extensibility Interface,support@rational.com,http://www.rational.com.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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