Scenario Based Test Case Generation Using Activity Diagram and Action Semantics

Scenario Based Test Case Generation Using Activity Diagram and Action Semantics

Manzoor Ahmed Hashmani (University Technology PETRONAS, Malaysia), Maryam Zaffar (University Technology PETRONAS, Malaysia) and Reham Ejaz (NUST College of Electrical and Mechanical Engineering, Pakistan)
Copyright: © 2019 |Pages: 25
DOI: 10.4018/978-1-5225-9448-2.ch012

Abstract

Scenario is an account of description of user interaction with the system, presented in a sequence. They can be represented using unified modeling language (UML) diagrams such as use case diagram, state charts, activity diagrams etc. Scenario-based testing can be performed at higher abstraction level using the design diagrams. In this work activity diagrams are used which are annotated with action semantics to test scenario dependencies. The action semantics make activity diagram executable and the dependencies between multiple scenarios can be seen at execution level. The authors intend to propose an approach for scenario dependency testing. Dependency graphs will be then generated against all the dependencies present on activity diagram under test. The test paths extracted from these dependency graphs help in testing.
Chapter Preview
Top

Introduction

Scenarios are used to elicit document and validate requirements. Scenario is a narrative description of the system use, basically, they capture the functionality of the system. A system is typically represented by a number of scenarios that cover the system functionality in detail. One of the ways is to use natural language scenarios to capture, document and validate requirements. These scenarios improve communication between different groups involved in system development, and also help the software developers in the understanding of the application domain (Ryser and Glinz, 2000).

For the generation of test cases through Scenarios different UML artifacts are used to represent system specification like use cases (Ryser and Glinz.,1999), (Barnett et al., 2004), (Briand et al.,2002), (Sarma and Mall, 2007), (Nebut et al., 2006), sequence diagram (Sarma and Mall, 2007), Interaction diagram (Najala et al., 2007) and UML activity diagram (Chandler et al., 2007), (Xu et al., 2005) and (Xiaqing et al., 2004). Presenting Scenarios in UML diagram makes the derivation of test cases in an easy way.

The executable UML helps in executing the UML model directly into code; it removes the gap between the implementation and the design models. In the executable model, some set of rules are defined to gather the UML elements for a particular purpose. Action semantics define the action and working of the action (Jiang et al., 2007). The action language is basically used to make the UML models executable. Many languages like small, Tall, Bridge point, +cal (Perseil et al., 2008), pal (jiang et al., 2007), and OCL (Motogna et al., 2008) are used to describe the actions.OCL defines constraint and requirements in the form of invariants, pre-post conditions (Montogana et al., 2008).

Complete Chapter List

Search this Book:
Reset