An Approach to Generate Test Cases Based on UML Sequence Diagrams

江泽凡,王林章,李宣东,郑国梁
DOI: https://doi.org/10.3969/j.issn.1002-137X.2004.07.037
2004-01-01
Computer Science
Abstract:The paper presents an approach to generate test cases from UML sequence diagrams. We make use of the UML sequence diagrams with OCL from which integrate the information specified in class and statechart diagrams in-to sequence diagrams and represent the information as constraints attached to proper locations of the object lifelines in the sequence diagrams. First, we provide a method for checking completeness, correctness and consistency of the se-quence diagrams. Secondly, we derive test specifications and event series from the sequence diagrams. Finally, ac-cording to test criterion, we create test cases via the well-known Category-Partition Method. Additionally, the paper applies the approach to address a simplified DHCP protocol, and explains every step in the method and its feasibility.
What problem does this paper attempt to address?