A Novel Approach for Scenario-Based Test Case Generation

Testing of software is a time-consuming activity which requires a great deal of planning and resources. Model-based testing is gaining importance as a research issue. In scenario-based testing, test scenarios are used for generating test cases, test drivers etc. UML is widely used to describe analysis and design specifications of software development. UML models are important source of information for test case design. UML activity diagrams describe the realization of the operation in design phase and also support description of parallel activities and synchronization aspects involved in different activities perfectly. In this paper we generate test scenarios from activity diagrams, which achieve test adequacy criteria perfectly. Finally we generate test cases by analyzing the respective sequence and class diagrams of each scenario, which achieves maximum path coverage criteria. Also in our approach, the cost of test model creation is reduced as design is reused.

[1]  Marc J. Balcer,et al.  The category-partition method for specifying and generating fuctional tests , 1988, CACM.

[2]  Stephen Gilmore,et al.  Analysing UML 2.0 activity diagrams in the software performance engineering process , 2004, WOSP '04.

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

[4]  John S. Gourlay,et al.  Introduction to the formal treatment of testing , 1984 .

[5]  Frank Maurer,et al.  Using UML to Partially Automate Generation of Scenario-Based Test Drivers , 2001, OOIS.

[6]  A. Bertolino,et al.  A Practical approach to UML-based derivation of integration tests , 2000 .

[7]  Sigrid Eldh Software Testing Techniques , 2007 .

[8]  Falk Fraikin,et al.  SeDiTeC-testing based on sequence diagrams , 2002, Proceedings 17th IEEE International Conference on Automated Software Engineering,.

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

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

[11]  Ekkart Rudolph,et al.  HyperMSCs and Sequence Diagrams for Use Case Modelling and Testing , 2000, UML.

[12]  Lionel C. Briand,et al.  A UML-Based Approach to System Testing , 2001, UML.

[13]  Eda Marchetti,et al.  The Cow_Suite Approach to Planning and Deriving Test Suites in UML Projects , 2002, UML.

[14]  Robert B. France,et al.  Testing UML designs , 2007, Inf. Softw. Technol..