• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (3): 82-89.doi: 10.3969/j.issn.1007130X.2011.

• 论文 • Previous Articles     Next Articles

Automatic Generation of Test Cases for Statechart Specification Based on the Conformance Testing Theory

MIAO Chunyu1,CHEN Lina2,ZHAO Jianmin2   

  1. (1.Xingzhi School,Zhejiang Normal University,Jinhua 321004;
    2.School of Mathematics,Physics and Information Engineering,
    Zhejiang Normal University,Jinhua 321004,China)
  • Online:2011-03-25 Published:2011-05-01

Abstract:

This paper studies testing semantics and automatic test case generation for

Statechart specification. Applying Tretmans’ approach to generate test cases for I/O automata

from labeled transition systems, we provide a solid mathematical basis for conformance testing

and automatic test case generation for Statechart specification. We introduce formal testing

semantics of Statechart specification that go beyond the semantics presented for formal

verification. These observable testing semantics can be used for general application, critical

application and realtime application. We also propose a formal conformance testing relation

based on presenting formal semantics and test hypothesis, and provide an algorithm which, for

a Statechart specification, generates a test suites. For finiteruns semantics the algorithm

can generate complete test suites, and for infiniteruns semantics only sound test suite can

be generated.

Key words: specification;implementation;conformance testing;test suite;test case generation;formal semantics;reactive system