A novel systematic approach to automatic test scenario generation from UML activity diagrams

作者:Xu Dong*; Zhu Gang; Lan Zixuan; Li Jing
来源:2013 5th International Conference on Advanced Computer Control, ICACC 2013, 2013-12-14 To 2013-12-15.
DOI:10.2495/ICACC130831

摘要

UML activity diagram (AD)-based testing has been reported in some literatures. Some new elements, such as concurrent executions, exception handlers, and interruptible regions, however, have been added to UML specifications since UML 2.0 version was released. Meanwhile, UML AD is no more the special case of state machines and it is applied to much more than just software modeling. To our knowledge, existing research work is little related to these new elements in generating tests from UML ADs. These complex structures in UML ADs are discussed and from which test scenarios can be extracted in this paper. Formalizing UML ADs, as well as forming test scenarios, is also presented. A suit of test coverage criteria is depicted and a systematic approach is given to automatically generate test scenarios from UML ADs. An XML schema is designed to create XML files that represent UML ADs that are extracted from XMI, HTML, and MDI documents. A tool named TSUAD is finally implemented to support automatically generating test scenarios from UML ADs.

全文