A UML-Based Approach to Testing Web Applications

This paper proposes a practical test model and test approach for Web applications based on use cases and their corresponding sequence diagrams. Large Web applications are modeled as hierarchical profile use-case diagrams called UCTM (use case transition model). From the hierarchical UCTM, the sequential dependency relationship of use cases can be gained. Traversing the UCTM from top to down, each use case is described by sequence diagram, which can be converted automatically into a restricted message-on-vertex graph (RMOVG). A vertex in RMOVG represents one message in sequence diagram. To reduce the number of test cases generated, the constraint message coverage (CMC) criterion is proposed. According to the CMC criterion, each message in sequence diagram must be visited at least once. Test cases generated from RMOVG can satisfy CMC criterion and reduce the number of test cases. The proposed approach is a significant supplement to the existing Web application testing techniques.

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

[2]  David Chenho Kung,et al.  An object-oriented Web test model for testing Web applications , 2000, Proceedings 24th Annual International Computer Software and Applications Conference. COMPSAC2000.

[3]  He Jifeng,et al.  A Formal Semantics of UML Sequence Diagrams , 2004 .

[4]  J. Heumann Generating Test Cases From Use Cases , 2001 .

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

[6]  A. Jefferson Offutt,et al.  UML-Based Integration Testing for Component-Based Software , 2003, ICCBSS.

[7]  Jifeng He,et al.  A formal semantics of UML sequence diagram , 2004, 2004 Australian Software Engineering Conference. Proceedings..

[8]  Robert V. Binder,et al.  Testing Object-Oriented Systems: Models, Patterns, and Tools , 1999 .

[9]  A. Jefferson Offutt,et al.  Testing Web applications by modeling with FSMs , 2005, Software & Systems Modeling.

[10]  Clémentine Nebut,et al.  Automatic test generation: a use case driven approach , 2006, IEEE Transactions on Software Engineering.

[11]  Atanas Rountev,et al.  Coverage Criteria for Testing of Object Interactions in Sequence Diagrams , 2005, FASE.

[12]  Robert Mee,et al.  Going Faster: Testing The Web Application , 2002, IEEE Softw..