Test Case Automate Generation from UML Sequence Diagram and OCL Expression

  • Authors:
  • Bao-Lin Li;Zhi-shu Li;Li Qing;Yan-Hong Chen

  • Affiliations:
  • -;-;-;-

  • Venue:
  • CIS '07 Proceedings of the 2007 International Conference on Computational Intelligence and Security
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

A new test cases generation approach is presented which based on UML sequence diagrams and Object Constraint Language (OCL). In this approach, a tree representation of sequence diagrams is constructed. Firstly traversal of the constructed tree for selecting conditional predicates from the sequence diagram is carried out. Then, post- and precondition is described by OCL. We transform the conditional predicates on the sequence diagram and apply function minimization technique to generate the test data. The generated test cases achieve message paths coverage and constraint attribute coverage of all objects which relate to the message. Lastly, the results of experiments show that this method has a better performance.