You are on page 1of 36

1.

Test Case Name: IRCTC


2. Requirement Number: 100
3. Module Name: Plan my travel
4. Severity: Critical [Critical/Major/Minor]
5. Pre-Condition: Account should be created
6. Test Data: User Name(UN): jayaramrai,Password(PWD): sajanasri,URL:http://www.irctc.co.in
7. Type of Test Case: Functional Test Case
8. Brief Description: This Test Case is been written to validate ticket reservation

Test scenario Test objective Test Case


ID

Successful To Verify for the TC_001


launching of successful
the launching of the
application application

Successful To Verify for the TC_002


login of the successful login
user of the user

Open Plan my To verify for the display of "Plan my Travel" TC_003


Travel page screen
successfully along with following
From edit field & "Fetch Station code"
button at the right side of edit field, by default
"Enter City Name" message should be
displayed inside From edit field.
To edit field & "Fetch Station code" button at
the right side of edit field, by default "Enter
City Name" message should be displayed in
side To edit field.
Date field & "Open to calender" button at
the right side of Date field, by default it
should display current date and should be in
"DD-MM-YYYY" format.
Class field(Combo box), by default it should
show "Select class" message inside box.
Ticket Type along with help link
i- ticket radio button
e- ticket radio button TC_004
Quota
Check box for Tatkal quota
along with help link
Find Transfer button
Reset button

Leave the To verify for the TC_005


"From edit "From edit field" not to
field" without accept an empty field.
entering any
data & enter
valid data in
remainting
fields

Enter invalid To verify for the TC_006


data in From "From edit field" not to
edit field accept the invalid
data
Enter To verify for the TC_007
nonexisting "From edit field", should drop an error
city name in message "Station Name Not Exist"for
From edit field nonexisting city name.

"Auto To verify for the "From edit field" must drop TC_008
Complete" box "Auto Complete" box bellow the From edit
for From edit field for each data entry (data must be more
field than 3 charactor)

"Fetch Station To Verify for the TC_009


code" option "Fetch Station code" page (From Field)
(From field) should not open, and it should pop up an error
message "Please Enter atleast three
Characters"
Open "Fetch To Verify for the TC_010
Station code" successful open
page of the "Fetch Station code" page
successfully (From feld) along with followin objects.
(From field) "Sation name edit field" along with
Mandatory indication ('*' symbol before the
edit field), by default it should display the data
same as in From edit field.
'Submit' button
'Reset' button
"List of station" field, with all the available
stations if any.
'Go' button

Invaid Sation To verify for the TC_011


Name in "Sation name edit field" not to
"Sation name accept the invalid
edit field" data
(From field)
Enter To verify for the TC_012
nonexisting "Sation name edit field", should display an
city name in error message "SORRY!!! No Matching
"Sation name Stations Found" (with Red Font color) for
edit field" nonexisting city name.
(From field)

TC_013
Leave the "To To verify for the TC_014
edit field" "To edit field" not to
without accept an empty field.
entering any
data & enter
valid data in
remainting
fields

Enter invalid To verify for the TC_015


data in To edit "To edit field" not to
field accept the invalid
data
Enter To verify for the TC_016
nonexisting "To edit field", should drop an error message
city name in To "Station Name Not Exist" for nonexisting city
edit field name.

"Auto To verify for the "To edit field" must drop TC_017
Complete" box "Auto Complete" box below the To edit field
for To edit field for each data entry (data must be more than 3
charactor)

"Fetch Station To Verify for the TC_018


code" option "Fetch Station code" page (To Field) should
(To field) not open, and it should pop up an error
message "Please Enter atleast three
Characters"
Open "Fetch To Verify for the TC_019
Station code" successful open
page of the "Fetch Station code" page
successfully (To feld) along with followin objects.
(To field) "Sation name edit field" along with
Mandatory indication ('*' symbol before the
edit field), by default it should display the data
same as in To edit field.
'Submit' button
'Reset' button
"List of station" field, with all the available
stations if any.
'Go' button

Invaid Sation To verify for the TC_020


Name in "Sation name edit field" not to
"Sation name accept the invalid
edit field" data
(To field)
Enter To verify for the TC_021
nonexisting "Sation name edit field", should display an
city name in error message "SORRY!!! No Matching
"Sation name Stations Found" (with Red Font color) for
edit field" (To nonexisting city name.
field)

TC_022

Date field To varify whether the date field is in "DD- TC_023


MM-YYYY" format
DD combobox To varify DD combobox TC_024

MM To varify MM combobox TC_025


combobox

YYYY To varify YYYY combobox TC_026


combobox
Invalid Date To vefify for the date field not to accept the TC_027
invalid date

TC_028
TC_029

Author:
Class Co TC_030
Reviewed:
Approved by: TC_031
Date of approval:
WD): sajanasri,URL:http://www.irctc.co.in

validate ticket reservation

Description Input

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password
edit field
Click on login button

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password
edit field
Click on login button
Click on the "Plan My Travel" link at
the left navigation bar
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password To edit field:
edit field Bangalore Cy Jn(SBC)
Click on login button Date field:
Click on the "Plan My Travel" link at 25 Mar 2010
the left navigation bar Class field:
Leave the "From edit field" without Sleeper Class(SL)
entering any data Ticket Type:
Enter valid city name in "To edit field" e-ticket
Enter valid date in "Date field"
Select valied Class
Select valied Ticket Type
Click on 'Find Trains' button

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password 9
edit field @
Click on login button +
Click on the "Plan My Travel" link at _
the left navigation bar ;
Enter invalid data in "From edit field" [
Ban5
man#
CHENNAI CENTRAL .
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Ban galore
edit field London
Click on login button To edit field:
Click on the "Plan My Travel" link at Bangalore Cy Jn(SBC)
the left navigation bar Date field:
Enter nonexisting city name in "From 25 Mar 2010
edit field" Class field:
Enter valid city name in "To edit field" Sleeper Class(SL)
Enter valid date in "Date field" Ticket Type:
Select valied Class e-ticket
Select valied Ticket Type
Click on 'Find Trains' button

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Ban
edit field Mang
Click on login button Delhi
Click on the "Plan My Travel" link at CHENNAI CENTRAL
the left navigation bar
Enter valid data in "From edit field",
data must be more than 3 charactor

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Ba
edit field A
Click on login button ( Number of charaters
Click on the "Plan My Travel" link at should be less than 3)
the left navigation bar
Enter invalid data in "From edit field"
Click on 'Fetch Station code' button[
]
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Mangalore
edit field ( Number of charaters
Click on login button should be more than or
Click on the "Plan My Travel" link at equals to 3)
the left navigation bar
Enter valid data in "From edit field"
Click on 'Fetch Station code' button[
]

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Mangalore
edit field ( Number of charaters
Click on login button should be more than or
Click on the "Plan My Travel" link at equals to 3)
the left navigation bar Clear the default data in
Enter valid data in "From edit field" "Sation name edit field" and
Click on 'Fetch Station code' button[ then enter :
] 9
Clear the default data in "Sation name @
edit field" and then enter invaild data +
Click on 'Submit' button. _
;
[
Ban5
man#
CHENNAI CENTRAL .
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Mangalore
edit field ( Number of charaters
Click on login button should be more than or
Click on the "Plan My Travel" link at equals to 3)
the left navigation bar Clear the default data in
Enter valid data in "From edit field" "Sation name edit field" and
Click on 'Fetch Station code' button[ then enter :
] Ban galore
Clear the default data in "Sation name eeeeeeeeeeeeeee
edit field" and then enter nonexisting zzz
city name (Number of character should
Click on 'Submit' button. be in between 2 to 16)
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password From edit field:
edit field Bangalore Cy Jn(SBC)
Click on login button Date field:
Click on the "Plan My Travel" link at 25 Mar 2010
the left navigation bar Class field:
Enter valid city name in "From edit Sleeper Class(SL)
field" Ticket Type:
Left the "To edit field" without entering e-ticket
any data
Enter valid date in "Date field"
Select valid Class
Select valid Ticket Type
Click on 'Find Trains' button

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field To edit field:
Enter the valid Password in Password 9
edit field @
Click on login button +
Click on the "Plan My Travel" link at _
the left navigation bar ;
Enter invalid data in "TO edit field" [
Ban5
man#
CHENNAI CENTRAL .
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Bangalore Cy Jn(SBC)
edit field To edit field:
Click on login button Ban galore
Click on the "Plan My Travel" link at London
the left navigation bar Date field:
Enter valid city name in "From edit 25 Mar 2010
field" Class field:
Enter nonexisting city name in "To edit Sleeper Class(SL)
field" Ticket Type:
Enter valid date in "Date field" e-ticket
Select valid Class
Select valid Ticket Type
Click on 'Find Trains' button

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field To edit field:
Enter the valid Password in Password Ban
edit field Mang
Click on login button Delhi
Click on the "Plan My Travel" link at CHENNAI CENTRAL
the left navigation bar
Enter valid data in "To edit field", data
must be more than 3 charactor

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field To edit field:
Enter the valid Password in Password Ba
edit field A
Click on login button ( Number of charaters
Click on the "Plan My Travel" link at should be more than or
the left navigation bar equals to 3)
Enter invalid data in "To edit field"
Click on 'Fetch Station code' button[
]
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field To edit field:
Enter the valid Password in Password Mangalore
edit field ( Number of charaters
Click on login button should be more than or
Click on the "Plan My Travel" link at equals to 3)
the left navigation bar
Enter valid data in "To edit field"
Click on 'Fetch Station code' button[
]

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field To edit field:
Enter the valid Password in Password Mangalore
edit field ( Number of charaters
Click on login button should be more than or
Click on the "Plan My Travel" link at equals to 3)
the left navigation bar Clear the default data in
Enter valid data in "To edit field" "Sation name edit field" and
Click on 'Fetch Station code' button[ then enter :
] 9
Clear the default data in "Sation name @
edit field" and then enter invaild data +
Click on 'Submit' button. _
;
[
Ban5
man#
CHENNAI CENTRAL .
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field To edit field:
Enter the valid Password in Password Mangalore
edit field ( Number of charaters
Click on login button should be more than or
Click on the "Plan My Travel" link at equals to 3)
the left navigation bar Clear the default data in
Enter valid data in "To edit field" "Sation name edit field" and
Click on 'Fetch Station code' button[ then enter :
] Ban galore
Clear the default data in "Sation name eeeeeeeeeeeeeee
edit field" and then enter nonexisting zzz
city name (Number of character should
Click on 'Submit' button. be in between 2 to 16)

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password
edit field
Click on login button
Click on the "Plan My Travel" link at
the left navigation bar
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password
edit field
Click on login button
Click on the "Plan My Travel" link at
the left navigation bar
Click on DD combobox [ ]

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password
edit field
Click on login button
Click on the "Plan My Travel" link at
the left navigation bar
Click on MM combobox [ ]

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field
Enter the valid Password in Password
edit field
Click on login button
Click on the "Plan My Travel" link at
the left navigation bar
Click on YYYY combo box [ ]
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Bangalore Cy Jn(SBC)
edit field To edit field:
Click on login button Balarai (BBL)
Click on the "Plan My Travel" link at Date field:
the left navigation bar Yesterday's date
Enter valid city name in "From edit (Eg: If Today's date is
field" "11 Mar 2010", then enter
Enter valid city name in "To edit field" "10 Mar 2010")
Enter invalid date in "Date field" Class field:
Select valid Class Sleeper Class(SL)
Select valid Ticket Type Ticket Type:
Click on 'Find Trains' button e-ticket

Open the Browser Test URL


Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Bangalore Cy Jn(SBC)
edit field To edit field:
Click on login button Balarai (BBL)
Click on the "Plan My Travel" link at Date field:
the left navigation bar Greater than or equal to
Enter valid city name in "From edit "Current date+91 day's"
field" (Eg: If Today's date is
Enter valid city name in "To edit field" "08 Mar 2010", then enter "5
Enter invalid date in "Date field" June 2010")
Select valied Class Class field:
Select valied Ticket Type Sleeper Class(SL)
Click on 'Find Trains' button Ticket Type:
e-ticket
Open the Browser Test URL
Enter the test URL http://www.irctc.co.in
Click on GO button UN: jayaramrai
Enter the valid User name in User PWD: sajanasri
Name edit field From edit field:
Enter the valid Password in Password Bangalore Cy Jn(SBC)
edit field To edit field:
Click on login button Balarai (BBL)
Click on the "Plan My Travel" link at Date field:
the left navigation bar 29 Feb 2010
Enter valid city name in "From edit (Leep year contain only
field" 28 day's)
Enter valid city name in "To edit field" Class field:
Enter invalid date in "Date field" Sleeper Class(SL)
Select valid Class Ticket Type:
Select valid Ticket Type e-ticket
Click on 'Find Trains' button
Expected Result Actual Result Status or
Remark

Login page
should be
displayed

Home page should be displayed. The left


navigation bar must contain "Plan My
Travel" link

The "Plan my Travel" screen should be


displayed
along with following
From edit field & "Fetch Station code"
button at the right side of edit field, by
default "Enter City Name" message
should be displayed in side From edit
field.
To edit field & "Fetch Station code"
button at the right side of edit field, by
default "Enter City Name" message
should be displayed in side To edit field.
Date field & "Open to calender" button
at the right side of Date field, by default it
should display current date and should
be in "DD-MM-YYYY" format
Class field(Combo box), by default it
should show "Select class" message in
side box.
Ticket Type along with help link
i- ticket radio button
e-ticket radio button
Quota
Check box for Tatkal quota
along with help link
Find Transfer button
Reset button

It should pop up an error message "Enter


Value for Train From".

It should pop up an error message "Enter


Only Alphabets"
It should drop an error message telling
that "Station Name Not Exist"

The "Auto Complete" box must drop


bellow the From edit field for each data
entry (data must be more than or equals
to 3 charactor)

It should pop up an error message


"Please Enter atleast three Characters"
The "Fetch Station code" screen should
be displayed
along with following
"Sation name edit field" along with
Mandatory indication ('*' symbol before
the edit field), by default it should display
the data "Mangalore".
'Submit' button
'Reset' button
"List of station" field, should display
"MANGALORE CNTL(MAQ)"
"MANGALORE JN(MAJN)"
'Go' button

It should pop up an error message


"Please Enter Only Alphabets"
It should display an error message
"SORRY!!! No Matching Stations Found"
(with Red Font color)
It should pop up an error message
"Enter Value for Train To"

It should pop up an error message


"Enter Only Alphabets"
It should drop an error message "Station
Name Not Exist"

The "Auto Complete" box must drop


bellow the To edit field for each data entry
(data must be more than 3 charactor)

It should pop up an error message


"Please Enter atleast three Characters"
The "Fetch Station code" screen should
be displayed
along with following
"Sation name edit field" along with
Mandatory indication ('*' symbol before
the edit field), by default it should display
the data "Mangalore".
'Submit' button
'Reset' button
"List of station" field, should display
"MANGALORE CNTL(MAQ)"
"MANGALORE JN(MAJN)"
'Go' button

It should pop up an error message


"Please Enter Only Alphabets"
It should display an error message
"SORRY!!! No Matching Stations Found"
(with Red Font color)

Date field should be in "DD-MM-YYYY"


format and it must contain 3 comboboxs:
DD combobox,
MM combobox and
YYYY combobox
by default it should show current date,
month and year
It must drop "Drop down box",
contain all the possible date(1 to 31)

It must drop "Drop down box",


contain all the possible Month's
("Jan" to "Dec")

It must drop "Drop down box",


with all the possible Years
If current date is less than 90 days
before the "31-Dec" then, drop down box
contain only current year.
[i.e., current date < ((31/Dec)-90 days)]
If current date is greater than 90 days
before the "31-Dec" then, drop down box
contain next comming year along with
current year.
[i.e., current date > ((31/Dec)-90 days)]
Error message "Please check the
journey date. The Date of journey should
be from today" should be displayed.

Error message "Please check the


journey date". Reservation is permitted
for 90 days in advance with respect to
train starting station (journey date not to
be counted)" should be displayed.
Error message "The Feb month contain only
28 days" should be displayed.

You might also like