期刊文献+

基于UML Statecharts面向对象软件的测试框架

Test Framework of Object-Oriented Software Based on UML Statecharts
在线阅读 下载PDF
导出
摘要 直接从含有层次和并发结构的UML statecharts图产生面向对象软件类的测试用例是比较困难的,文中提出了基于UML statecharts图的测试框架:先利用现有的UML工具画出UML statecharts图,并产生XMI(XML metadatainterchange)格式的规格说明文件;然后根据UML statecharts的形式化语义,层次和并发结构被展平,将UML statecharts图的规格说明XML文件转换成FREE(flattened regular expression)模型的规格说明信息;最后根据FREE模型的规格说明信息,按照不同的充分性测试准则,分别产生测试用例集.同时提出了由FREE模型根据全ZOT路径覆盖准则产生有限迁移序列的算法,并且还实现了这个测试框架. It is difficult to generate test cases of class directly from the UML statechart diagrams that contain a hierarchical and concurrent structure. This paper presents a test framework based on UML statecharts. The UML state chart diagram is first drawn using UML tools. The specification of the UML statechart is exported in XMI (XML metadata interchange). According to the formal semantics of UML statecharts, the UML statecharts are transformed into flattened regular expression (FREE) model diagrams. The hierarchical and concurrent structure of states is flattened in the FREE state model. The XML document of UML statechart diagram specification is converted into the specification of FREE model. Finally, test case sets of classes are generated separately based on different test coverage criteria from the specification of the FREE model. In addition, an algorithm generating transition sequence based on full ZOT path coverage criteria from a FREE model is presented. The test framework is implemented.
出处 《应用科学学报》 CAS CSCD 北大核心 2006年第5期491-497,共7页 Journal of Applied Sciences
基金 国家自然科学基金(60373072) 国家"863"(2002CB312001)资助项目
关键词 Z UML STATECHARTS FREE模型 基于规格说明的测试 测试框架 Z UML statecharts FREE model specification-based software testing test framework
  • 相关文献

参考文献12

  • 1OMG UML specification,version 1.5,mar 2003[S/OL].http://www.omg/org/.
  • 2OFFUTT A J,Abdurazik A.Generating tests from UML specifications[C]//UML'99.1999.
  • 3CAVARRA A,CRICHTON C,DAVIES J.Using UML for automatic test generation[R/OL].http://web.comlab.ox.ac.uk/oucl/research/areas/softeng/pubs.html.2002.
  • 4VIEIRA M,DIAS M,RICHARDSON D.Object-oriented specification-based testing using UML state-charts[C]//Workshop on Automated Program Analysis,Testing,and verification in the 22nd International Conerence in Software Engineering.Ireland:Limerick,2000.
  • 5LI Liuying,QI Zhichang.Test selection from UML Statecharts[C]//Technology of Object-Oriented Languages and Systems,1999.TOOLS 31.1999:273-279.
  • 6KIM Y G,HONG H S,BAE D H.Test Cases Generation from UML State Diagram[J].IEE Proceeding-Software.1999.146(4):187-192.
  • 7HONG H S,KIM Y K,CHA S D.A test sequence selection method for reactive systems using state charts.Software Testing[J].Verification and Reliability,2000,10 (4):203 -227.
  • 8李留英,王戟,齐治昌.UML statecharts的测试用例生成方法[J].计算机研究与发展,2001,38(6):691-697. 被引量:26
  • 9Zhan Xuede,Miao Huaikou.An approach to formalizing the semantics of UML statecharts[C]//Conceptual ModelingER2004.LNCS 3288,Springer,Nov.2004.
  • 10BINDER R V.Testing object-oriented system:models,patterns,and tools[M].Boston:Addison Wesley Longman Inc,2000.

二级参考文献12

  • 1李留英.UML测试技术的研究与实现:博士论文[M].长沙:国防科学技术大学,2000..
  • 2李留英,博士论文,2000年
  • 3Li Liuying,Proc of the 31th Int Conf Technology of Object Oriented Languages and Systems,1999年,273页
  • 4Zhu H, Hall P AV,May J HR. Software Unit Test Coverage and Adequacy. ACM Computing Surveys, 1997,29(4): 366~427
  • 5Haworth B,Kirsopp C,Roper M,et al. Towards the development of adequacy criteria for object-oriented systems. In: Proc. of the 5th European Conf. on Software Testing Analysis and Review,Edinburgh, Scotland, Nov. 1997. 417~427
  • 6Haworth B. Adequacy criteria for object testing. In: Proc. of the 2nd Intl. Software Quality Week Europe 1998, Brussels, Belgium, Nov. 1998
  • 7Offutt A J,Xiong Y,Liu S. Criteria for Generating Specification-Based Tests. In: Proc. of 5th IEEE Intl. Conf. on Engineering of Complex Computer Systems (ICECCS'99), Las Vegas, Nevada,USA, Oct. 1999. 119~129
  • 8Offutt A J,Abdurazik A. Generating tests from UML specifications. In:Proc. of the Second IEEE Intl. Conf. on the Unified Modeling Language (UML99),Fort Collins, CO,IEEE Computer Society Press, 1999. 416~429
  • 9Abdurazik A,et al. Evaluation of Three Specification-based Testing Criteria. In: Sixth IEEE Intl. Conf. on Engineering of Complex Computer Systems (ICECCS '00), Tokyo, Japan, Sep. 2000
  • 10Ammann P E,Black P E. A Specification-Based Coverage Metric to Evaluate Test Sets. International Journal of Reliability, Quality and Safety Engineering, World Scientific Publishing, Singapore,2001,8(4) :275~300

共引文献34

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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