Test Case Generation from UML Subactivity and Activity Diagram

UML activity diagram is suitable for modeling parallel and concurrent flows in an actual system. It is also significant for software testing. The subactivity state in activity diagram divides the activity diagram into two kinds: the atomic activity diagram and compound activity diagram, who constructs the hierarchy of the whole activity diagram. Dealing with the compound activity diagram is a key issue during test case generation. This paper proposes a method for generating test case from subactivity diagram to compound activity diagram hierarchically and introduces the idea of this method by taking the thought of functional decomposition, bottom-up integration testing strategy and round-robin strategy. The experimental result shows that the proposed approach can generate less test cases than the method taking complete combination strategy and have a good coverage as well.

[1]  Jia-Guang Sun,et al.  Automated Test Data Generation Algorithm Based on Reversed Binary Tree , 2007 .

[2]  Sungwon Kang,et al.  Test Cases Generation from UML Activity Diagrams , 2007, Eighth ACIS International Conference on Software Engineering, Artificial Intelligence, Networking, and Parallel/Distributed Computing (SNPD 2007).

[3]  Paul C. Jorgensen,et al.  Software Testing: A Craftsman's Approach , 1995 .

[4]  Li Xuandong,et al.  Generating test cases from UML activity diagram based on Gray-box method , 2004 .

[5]  Li Xuandong,et al.  Automatic test case generation for UML activity diagrams , 2006 .

[6]  Zhang Li-wu Generating test scenarios of functional test from UML activity diagrams , 2006 .

[7]  Guoliang Zheng,et al.  Generating test cases from UML activity diagram based on Gray-box method , 2004, 11th Asia-Pacific Software Engineering Conference.

[8]  Chang-ai Sun A Transformation-Based Approach to Generating Scenario-Oriented Test Cases from UML Activity Diagrams for Concurrent Applications , 2008, 2008 32nd Annual IEEE International Computer Software and Applications Conference.

[9]  Wei Xu,et al.  UML Activity Diagram-Based Automatic Test Case Generation For Java Programs , 2009, Comput. J..

[10]  Gu Ming Research on automatic generating test case method based on UML activity diagram , 2006 .

[11]  Xiaoqing Bai,et al.  An approach to generate the thin-threads from the UML diagrams , 2004, Proceedings of the 28th Annual International Computer Software and Applications Conference, 2004. COMPSAC 2004..

[12]  Michael R. Lyu,et al.  Achieving software quality with testing coverage measures , 1994, Computer.

[13]  Mingsong Chen,et al.  Coverage-driven automatic test generation for uml activity diagrams , 2008, GLSVLSI '08.

[14]  Li Hua Test Case Generation Based on UML Activity Diagram , 2007 .