Automated Scenario Generation Based on UML Activity Diagrams

Specification-based testing, also called black-box testing, involves producing a test suite based on the specification. Using a formal language or a model for specification helps in automation of the test generation process. For large and complex systems, testing based on covering the control flow or data flow paths becomes infeasible. In this regard, an efficient set of test scenarios need to be generated. One of the main objectives of testing is to check whether customer requirements are met. Scenarios help in generating sequence of events that represent the purpose of a system. Requirements are well defined using activity diagrams and this has led to an increased interest on generating test scenarios using activity diagrams. Each path from the initial node to the final node in an activity diagram constitutes a test scenario. The problem encountered following the strategy is exponential increase in test scenarios when considering concurrent activities, represented in an activity diagram using fork-join nodes. In this paper, we investigate this problem and have observed that the growth in test scenarios can be limited by considering domain dependency existing among concurrent activities. The paper proposes a method to automate the test scenario generation process.

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

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

[3]  Chiou Peng Lam,et al.  AD2US: an automated approach to generating usage scenarios from UML activity diagrams , 2005, 12th Asia-Pacific Software Engineering Conference (APSEC'05).

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

[5]  Tetsushi Wakabayashi,et al.  Handwritten Bangla Compound Character Recognition Using Gradient Feature , 2007 .

[6]  Dongsoo Han,et al.  Set-based access conflict analysis of concurrent workflow definition , 2001, Inf. Process. Lett..

[7]  Dong Xu,et al.  Using adaptive agents to automatically generate test scenarios from the UML activity diagrams , 2005, 12th Asia-Pacific Software Engineering Conference (APSEC'05).

[8]  Ivar Jacobson,et al.  The Unified Modeling Language User Guide , 1998, J. Database Manag..

[9]  Hrushikesha Mohanty,et al.  Ensuring Consistency in Relational Repository of UML Models , 2007, 10th International Conference on Information Technology (ICIT 2007).

[10]  Tsong Yueh Chen,et al.  Identification of categories and choices in activity diagrams , 2005, Fifth International Conference on Quality Software (QSIC'05).

[11]  Lionel C. Briand,et al.  A UML-Based Approach to System Testing , 2001, Software and Systems Modeling.

[12]  Mingsong Chen,et al.  Automatic test case generation for UML activity diagrams , 2006, AST '06.

[13]  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).

[14]  Dong Xu,et al.  A systematic approach to automatically generate test scenarios from UML activity diagrams , 2007 .

[15]  Nilesh Kawane Fault Detection Effectiveness of UML Design Model Test Adequacy Criteria , 2003 .

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