Escolar Documentos
Profissional Documentos
Cultura Documentos
No:30306104081
AIM:
To develop software for Online Ticket Reservation system with various
functional and non functional part of design namely,
PROBLEM DEFINITION:
The Online Ticket Reservation System has an online catalog using which the
passenger can login, search for Trains, search for Train tickets, and reserve Train tickets
online. Reservation manager is used to update the new Train in the database .The Airline
reservation system is a new system that replaces the current manual process for searching
the Train details. The reservation manager to manage all the Train details as well as
professional details. As a manager, we can manage passenger benefits & passenger
personnel information under confidentiality and accessibility.
Access to database can be setup on username / password basis with multiple users and
privileges
FUNCTIONAL REQUIREMENTS
Actors: Passenger
Description: The passenger can search for their Train and via online catalog, whether Train is
available or not available
Includes: None
Priority: High
Special Requirements: Passenger shall be able to view the Train details, which he had reserved.
Assumptions: None
Use CaseReservation
Online Ticket Check availability
System of Train tickets Reg.No:30306104081
Name:
Actors: Passenger
Description: The passenger can search for their Tickets and via online catalog, whether ticket is available or not
available
Alternative None
Flows:
Includes: None
Priority: High
Business None
Rules:
Special Passenger shall be able to view the tickets details, which he had reserved.
Requirements:
Assumptions: None
4
Use Case ID:
Description: The passenger can book Train Tickets using online catalog.
Normal Flow • When the passenger wants to view the menu for a specified date.
• System displays available Train name, source and destination details, date.
• System displays list of available tickets, and its price.
• The passenger select the particular date on which he wants to travel.
• System displays list of available tickets on the basis of classes.
• Passenger selects Train tickets from list and confirm tickets.
Exceptions: Invalid search: If the Train name is invalid name, system displays error message.
Includes: None
Priority: High
Frequency of Use: Approximately 100 passenger, average of one usage per day
Special Requirements: Passenger shall be able to view the tickets details, which he had reserved.
Assumptions: None
Description: An authorized manager can login to the system and can view the online airline reservation. Only
manager can login to the system.
Preconditions: No preconditions
Includes: None
Priority: High
Frequenc of Use: Approximately 100 passenger, average of one usage per day
Special Requirements: The Reservation manager is asked to re-enter the user name and password if invalid.
Assumptions: none
Description: The manager verifies whether the provided details in form does matches with that of the
original data, if they are synchronizing then he proceed by allotting the ticket.
Preconditions: The manager check whether the given information and the original data.
Post conditions: If they are similar then the ticket would be allotted
Normal Flow • On the request of the passenger the manager compares the information provided by
the passenger to that of the original data
Includes: None
Priority: High
Assumptions: none
Description: If the tickets are available on the specified date, the manager records passenger
information and confirms the tickets.
Includes: None
Priority: High
Frequency of Use: Approximately 100 passenger, average of one usage per day
Assumptions: None
Actors: Passenger
Description: Manager verifies the cancellation information provided by the passenger and cancels the
Train ticket.
Normal Flow 1. Manager compares original reservation data with the cancel reservation data
2. Manager cancels the ticket
None.
Includes: None
Priority: High
Assumptions: none
1.USECASE DIAGRAM
Online Ticket Reservation System Reg.No:30306104081
IS S U E T IC K E T
VIE W R E S E R VAT IO N S T AT U S
< < e xte n d s > > < < e xte n d s > > VIE W T R AIN F AR E
VIE W T R AIN S C H E D U L E S
E N Q U IR Y
R E S E R VAT IO N USER
C LERK
R E S E R VE S E AT
C AN C E L L AT IO N
AU T H E N T IC AT E
U P D AT E D ATAB AS E
B AN K AD M IN
T R AN S AC T IO N
Online Ticket Reservation System Reg.No:30306104081
2.SEQUENCE DIAGRAM:
(i).LOGIN:
3:verify
(ii).VIEWING DETAILS:
3:verify
9:process completed
Online Ticket Reservation System Reg.No:30306104081
(iii).TICKET RESERVATION:
3:verfy
5:book tickets(reserve)
10:verify
11.successfully verified
12.successfully reserved
13.issue ticket
Online Ticket Reservation System Reg.No:30306104081
(iv).TICKET CANCELLATION:
3:verify
5:cancellation
8:verify
9:send acc.no
11.successfully verif...
12.successfully cancelled
Online Ticket Reservation System Reg.No:30306104081
3.COLLABORATION DIAGRAMS:
(i).LOGIN:
:RESERVATION
CLERK
(ii).TICKET RESERVATION:
1: :1.enter name and pwd
:passen :login
ger
5: 5:book tickets(reserve)
8: 8:enter acc. no.
4: 4:shows home page
7: 7:ask for account no.
12: 12.successfully reserved
13: 13.issue ticket
10: 10:verify
(iii).TICKET CANCELLATION:
5: 5:cancellation
7: 7:enter details and acc.no
4: 4:shows home page
6: 6:ask for details and acc.no
12: 12.successfully cancelled
2: 2:sending name & pwd
3: 3:verify
8: 8:verify 10:
9: 9:send acc.no
:reservation 10:verify
clerk
11: 11.successfully verified
(iv).VIEWING DETAILS
1: 1:enter name and pwd
:passen :login
ger
:reservation
clerk
Online Ticket Reservation System Reg.No:30306104081
Login
Ticket
Ticket Reservation Availability
Cancellation checking
no
Not yet confirmed
no
Enter the
train
Enter the
data...
special offers
for payment
if cancel
For Reservation
verification
take xerox
5.ACTIVITY DIAGRAMS:
(i).LOGIN:
Online Ticket Reservation System Reg.No:30306104081
(ii).TICKET RESERVATION:
Online Ticket Reservation System Reg.No:30306104081
(iii).TICKET CANCELLATION:
Online Ticket Reservation System Reg.No:30306104081
6.CLASS DIAGRAM:
; AU TH EN TIC ATE
us er nam e : char n am e : char
us er pa s s w ord : char pas s w ord : char
us e r age : int
a ddres s : char lo gin()
cancel()
a dd nam e : char
record info : char
a dd res ervation()
train na m e : ch ar
check pass enger info() train no : in t
s chedu le : num
view ()
Online Ticket Reservation System Reg.No:30306104081
7.COMPONENT DIAGRAM:
s e rve r. h s e rve r. ja va
L o g in .h L o g in .ja va
s e rve r. e x e
A u t h e n t ic a te . h Au th e n tic a te .ja va
8.DEPLOYMENT DIAGRAM:
user
printer
railway administrator
user user
printer
printer
railway
database
bank admin
server
bank database
system
Online Ticket Reservation System Reg.No:30306104081
APPENDIX:
CODE:
1.AUTHENTICATE.H
#ifndef AUTHENTICATE_h
#define AUTHENTICATE_h 1
class AUTHENTICATE
{
public:
AUTHENTICATE();
AUTHENTICATE(const AUTHENTICATE &right);
~AUTHENTICATE();
AUTHENTICATE & operator=(const AUTHENTICATE &right);
int operator==(const AUTHENTICATE &right) const;
int operator!=(const AUTHENTICATE &right) const;
void login ();
protected:
const char get_password () const;
void set_password (char value);
private:
const char get_name () const;
void set_name (char value);
private:
char name;
}
char password;
};
return password;
}
Online Ticket Reservation System Reg.No:30306104081
}
#endif
2.RESERVATION CLERK.H
#ifndef RESERVATION_CLERK_h
#define RESERVATION_CLERK_h 1
#include "BANK.h"
#include ".h"
class RESERVATION_CLERK : public BANK //## Inherits: <unnamed>
%4AC3284302EE
{
public:
RESERVATION_CLERK();
RESERVATION_CLERK(const RESERVATION_CLERK &right);
~RESERVATION_CLERK();
RESERVATION_CLERK & operator=(const RESERVATION_CLERK &right);
int operator==(const RESERVATION_CLERK &right) const;
int operator!=(const RESERVATION_CLERK &right) const;
void issue_ticket ();
void update_details ();
void validate ();
void add_reservation ();
void cancel_reservation ();
const BANK * get_the_BANK () const;
void set_the_BANK (BANK * value);
const X * get_the_X () const;
void set_the_X (X * value);
private:
BANK *the_BANK;
};
inline const BANK * RESERVATION_CLERK::get_the_BANK () const
{
return the_BANK;
}
inline void RESERVATION_CLERK::set_the_BANK (BANK * value)
{
the_BANK = value;
}
inline const X * RESERVATION_CLERK::get_the_X () const
{
Online Ticket Reservation System Reg.No:30306104081
return the_X;
}
inline void RESERVATION_CLERK::set_the_X (X * value)
{
the_X = value;
}
#endif
3.BANK.H
#define BANK_h 1
class BANK
{
public:
BANK();
BANK(const BANK &right);
~BANK();
BANK & operator=(const BANK &right);
int operator==(const BANK &right) const;
int operator!=(const BANK &right) const;
void verify ();
void update ();
protected:
const int get_account_no () const;
void set_account_no (int value);
private:
const int get_balance () const;
void set_balance (int value);
const char get_customer_name () const;
void set_customer_name (char value);
int account_no;
int balance;
char customer_name;
};
inline const int BANK::get_account_no () const
{
return account_no;
}
inline void BANK::set_account_no (int value)
{
account_no = value;
}
inline const int BANK::get_balance () const
{
return balance;
}
Online Ticket Reservation System Reg.No:30306104081
{
name = value;
}
inline const char CHECK_PASSWORD_INFO::get_passenger_id () const
{
return passenger_id;
}
inline void CHECK_PASSWORD_INFO::set_passenger_id (char value)
{
passenger_id = value;
}
inline const RESERVATION_CLERK *
CHECK_PASSWORD_INFO::get_the_RESERVATION_CLERK () const
{
return the_RESERVATION_CLERK;
}
inline void CHECK_PASSWORD_INFO::set_the_RESERVATION_CLERK
(RESERVATION_CLERK * value)
{
the_RESERVATION_CLERK = value;
}
#endif
5.ADD RESERVATION.H
#ifndef ADD_RESERVATION_h
#define ADD_RESERVATION_h 1
#include "RESERVATION CLERK.h"
class ADD_RESERVATION : public RESERVATION_CLERK
{
public:
ADD_RESERVATION();
ADD_RESERVATION(const ADD_RESERVATION &right);
Destructor (generated)
~ADD_RESERVATION();
ADD_RESERVATION & operator=(const ADD_RESERVATION &right);
int operator==(const ADD_RESERVATION &right) const;
int operator!=(const ADD_RESERVATION &right) const;
void add_reservation ();
const RESERVATION_CLERK * get_the_RESERVATION_CLERK () const;
void set_the_RESERVATION_CLERK (RESERVATION_CLERK * value);
private:
const char get_add_name () const;
void set_add_name (char value);
const char get_record_info () const;
void set_record_info (char value);
private: //## implementation
Online Ticket Reservation System Reg.No:30306104081
char add_name;
char record_info;
RESERVATION_CLERK *the_RESERVATION_CLERK;
};
inline const char ADD_RESERVATION::get_add_name () const
{
return add_name;
}
inline void ADD_RESERVATION::set_add_name (char value)
{
add_name = value;
}
inline const char ADD_RESERVATION::get_record_info () const
{
return record_info;
}
inline void ADD_RESERVATION::set_record_info (char value)
{
record_info = value;
}
inline const RESERVATION_CLERK *
ADD_RESERVATION::get_the_RESERVATION_CLERK () const
{
return the_RESERVATION_CLERK;
}
inline void ADD_RESERVATION::set_the_RESERVATION_CLERK
(RESERVATION_CLERK * value)
{
the_RESERVATION_CLERK = value;
}
#endif
6.CANCEL RESERVATION.H
#ifndef CANCEL_RESERVATION_h
#define CANCEL_RESERVATION_h 1
#include "RESERVATION CLERK.h"
class CANCEL_RESERVATION : public RESERVATION_CLERK
{
public:
CANCEL_RESERVATION();
CANCEL_RESERVATION(const CANCEL_RESERVATION &right);
~CANCEL_RESERVATION();
CANCEL_RESERVATION & operator=(const CANCEL_RESERVATION &right);
int operator==(const CANCEL_RESERVATION &right) const;
int operator!=(const CANCEL_RESERVATION &right) const;
void cancel ();
const RESERVATION_CLERK * get_the_RESERVATION_CLERK () const;
Online Ticket Reservation System Reg.No:30306104081
7.DETAILS.H
#ifndef DETAILS_h
#define DETAILS_h 1
#include "RESERVATION CLERK.h"
class DETAILS : public RESERVATION_CLERK
{
public:
Online Ticket Reservation System Reg.No:30306104081
DETAILS();
DETAILS(const DETAILS &right);
~DETAILS();
DETAILS & operator=(const DETAILS &right);
int operator==(const DETAILS &right) const;
int operator!=(const DETAILS &right) const;
void view ();
private:
const char get_train_name () const;
void set_train_name (char value);
const int get_train_no () const;
void set_train_no (int value);
const num get_schedule () const;
void set_schedule (num value);
private:
char train_name;
int train_no;
num schedule;
};
inline const char DETAILS::get_train_name () const
{
return train_name;
}
inline void DETAILS::set_train_name (char value)
{
train_name = value;
}
inline const int DETAILS::get_train_no () const
{
return train_no;
}
inline void DETAILS::set_train_no (int value)
{
train_no = value;
}
inline const num DETAILS::get_schedule () const
{
return schedule;
}
inline void DETAILS::set_schedule (num value)
{
schedule = value;
}
#endif
Online Ticket Reservation System Reg.No:30306104081
TEST PLAN:
Overview
Test plan objectivesTo ensure that the Online Ticket reservation system will:
- Function consistently and reliably in accordance with
current business operations.
- Meet or exceed user requirements and technical
specifications.
- Not adversely impact other systems or the existing
technology environment.
Testing Assumptions - Reservation system which is used to manage the
reservation details are already implemented and tested and
there is no direct interaction between Online Reservation
System and Conventional Reservation system.
- It is assumed that User can book the Train tickets using
online reservation system which is already tested.
- These Trains tickets information are only used by online
reservation system.
Risks & The following risks apply to the testing process and may impact
Contingencies either the proposed date of readiness for the deployment of online
reservation system, or the comprehensive level of testing that can
be performed in each of the Functional Units:
- The actual deployment of online reservation system may
take longer to perform than anticipated, as the conventional
reservation system is also using the same database.
Online Ticket Reservation System Reg.No:30306104081
RESULT:
Thus the Problem analysis & Requirement Analysis and various Use case
scenarios ,UML diagrams, Test plans has been studied successfully