Volume1Issue1 IJCCI Anand
Volume1Issue1 IJCCI Anand
net/publication/333703194
AUTOMATED UAT TEST CASE AND TEST PLAN GENERATION FOR ASPECT
ORIENTED SOFTWARE DEVELOPMENT BASED ON USE CASESPECIFICATION
FLOWS
CITATIONS READS
0 2,698
1 author:
A. Anandaraj
Sri Eshwar College of Engineering
12 PUBLICATIONS 26 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by A. Anandaraj on 11 June 2019.
accepts the new system. Users of the system We list the use case specification for Make
perform these tests, which developers derive Reservation Room Use case.
from the client’s contract or the user 2.1 Use case specification
requirements specification.
Make Reservation Room
UAT test plans state the sequence of
inputs in association with the desired processes Brief description
together with the expected outputs from these This use case describes how the customer
processes. The test cases generated from reserves a room.
classification approach states the combination Basic flow
of classes in the tests.
B1: Reserve Room
2. Case Study
The use case begins when a customer when a
Hotel reservation management system the customer wants to reserve room.
goal of the customer is to reserve rooms and
Alternate flows
stay there happily for a period of time. The room
reservation can be done through different channel A1: Duplicate Submission
such as agent, internet, or via phone. Counter There is an identical reservation in the system
staff help customers check in and check out of (same name, e-mail...etc), the system displays
their rooms. Of course counter staff must collect the existing reservation and asks the customer
payment from the customer when they checkout. if he wants to proceed with the new reservation.
The hotel management can define standard
room’s rates and promotional offers when room A2…
rates are reduced for limited periods. Hotel Sub flows
reservation management system creates a waiting
S1: Check Room Cost
list in case of the rooms are fully reserved system
must handle different types of customers The system computes the cost for the specified
(Individual, corporate, members) only authorized period.
personnel can perform their functionalities. Preconditions
Use case diagram for Hotel reservation The customer has logged in to the system.
management system
Post conditions
Upon successful reservation, a new reservation
record created. if reservation is unsuccessful,
there is no change in the database.
3. Flow Based Classification
Flow based classification [5] is based on
use case flow of events basic flow alternate
flow, sub flow and extension flow [1][2].
Each path through a use case scenario. It
chains various flows together into single
sequence. It describes the desired behavior of
one use case instance evaluate the
implementation of use case scenario [4].
Figure 1 : Use case diagram for Hotel reservation Since they are many different use case scenarios
management system at least one use case scenario per flow of events.
45
A. Anandaraj, J. Jayanthi, R. Vijaya Lakshmi / International Journal of Communication, Computation and Innovation / Volume 1, Issue 1, 2010
That is, each use case flow of events must appear within the flow of events where they are
within at least one use case scenario. Each flow defined.
is having classification and classes. Classification
4.4 Extension Flow
[2] is defined as aspect of viewing the input
domain of the program to be tested. Classes A special case of an alternate flow, which
[2][4][10] are defined as disjoint subsets of executes in the context of a separate use-case
values of the classes. The classification of each instance[2] (other than the one in which it is
flow is dependent on one another. specified).Each flow is executed with set of
We list the classification and classes of the variables and its values.
case study in table 1. Let X is an input variable and ( X ) be a set of
Table 1: classification and its associated classes values of X can use ( X ) can be represented
(attributes)
as number of disjoint sets.
Classification Associated Classes
1. Room class single, double, AC room ( X ) Uk k ( X )
2. Payment mode cash, credit card d
7. Approval process Accept, reject, waiting list U{x12 , x22 , x23......x2n ......x2c } 2
interpretation: ………...
In this section, we discuss about the ..……….
cj
classification, classes and valid test cases by using U {x1d , xd2 , xd3 ......xdn ......xd }
formal mathematical definition for each flow.
4.5 Value Function
4.1 Basic Flow
A value function[4] V(X) is defined to
The description of the normal, expected path return the value that is relevant for a particular
through the use case. This is the path taken by flow.
most of the users most of the time.
Value function is varied for each flow
4.2 Alternate Flow based on the relevant transaction occurring in
that flow.
Each alternative flow represents alternative
behavior usually due to exceptions that occur in 4.5.1 Value Function for Basic Flow
the main flow.
Value function for basic flow is
4.3 Sub Flow d
( X ) kU1 k ( X )
A self contained, labeled section of a
flow. Sub flows can be reused in many places (or)
46
A. Anandaraj, J. Jayanthi, R. Vijaya Lakshmi / International Journal of Communication, Computation and Innovation / Volume 1, Issue 1, 2010
4.5.2 Value Function for Alternate Flow For example let us consider reserve room
Value function for Alternate flow can be use case for showing how the test cases are
defined to return the values that are relevant for generated in flow based classification[1][4]. In
alternate flow execution. matrix test case method in table the rows are
indicated as attributes (classification, associated
V ( X ) k ( X ) classes) and the columns are represented as use
case flows [2]. For example from above table 1,
Consider program having ‘n’ input 3 are known to be as classification and associated
variables(X 1……………. Xn) the values of these classes [1][4][6] respectively the first number
variables form an input tuple (V(X1)…….V(Xn)) represents the classification[9] and the second
Value of (X1…Xn) in basic flow ‘“ value number represents the total number of attribute
values for an associated class. Based on the
of (X1….Xn) in Alternate flow
classification and its associated classes if the
V( X 1 ) {x1p , x 2p , x 3p ......x np ......x cpi } process is accepted under the approval
classification then it is a basic flow else alternate
…….. flow or sub flow. For each basic flow there can
c
be ‘n’ number of alternate flows. The test case
U{x1d , xd2 , xd3 ......xdn ......xd j } for each use case flows can be generated with
the help of proposed method.
5. Test Case Generation Sample test cases are
Under the flow based classification we have Basic Flow
so many flows like basic flow, alternate flow,
sub flow and extension flow. Each and every flow {Single, credit card, individual, one, single,
has its own classification along with its attributes phone, Accept, confirmed ID}
and they are tabulated. If all the attributes are Alternate Flow
present in the flow based classification then they
{Single, credit card, individual, one, single,
are marked as hash (#) and if only subset of
phone, Reject}
attributes alone chosen from the classification
then they are represented as asterisk (*) along Sub Flow
with its attribute number. {Single, credit card, individual, single}
If the attributes are not present in the flow Extension Flow
based classification then they are marked as
heifen (-). Test case is generated in each and {Single, credit card, individual, one, single,
every flow based classification based on its phone, waiting list, waiting ID}
47
A. Anandaraj, J. Jayanthi, R. Vijaya Lakshmi / International Journal of Communication, Computation and Innovation / Volume 1, Issue 1, 2010
6. User Acceptance Test Plan Generation systematically. This proposed method identifies
a set of test cases for each use case flow
Test cases do not show whether the classes separately. This is important, since we can easily
are inputs or outputs nor the processes. localize the presence of defects and bottlenecks.
Consequently, there is a gap between UAT test This paper reports our study of using use case
plan[6] and test cases generated from specification flow method for generation of test
classification approach. Hence the test cases cases.
generated from classification approach cannot
be used directly as test plans in UAT. References
The objective of generating a test plan from [1] Chen T.Y. and Poon P.L.. Classification-
a test case is deriving a test plan from a given hierarchy Table: “A Methodology for constructing
the Classification Tree”. (1996) .In Proceedings
test case with reference to the system of the Australians Software Engineering
architecture. An end user oriented test plan is Conference (ASWEC’96), IEEE Computer
necessary for performing UAT. Society Press,. pp 93-104.
48