Test Cases for Irctc 21
-
Upload
prasad-naidu -
Category
Documents
-
view
3.368 -
download
1
Transcript of Test Cases for Irctc 21
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 1/14
Test scenario Test objective Test
Case
Description Input
Successful
launching of
the
application
To Verify for the
successful
launching of the
application
TC_001 Open the Browser
Enter the test URL
Click on µGO¶ button
Test URL
http://www.irctc.co.in
Successful
login of the
user
To Verify for the
successful login
of the user
TC_002 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
Name edit field´
Enter the valid Password in ³Password
edit field´
Click on µlogin¶ button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
Open Plan my
Travel page
successfully
To verify for the display of "Plan my Travel"
screen
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 atthe 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
TC_003 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
e- ticket radio buttonQuota
Check box for Tatkal quota
along with help link
Find Transfer button
Reset button
TC_004
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
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 2/14
Leave the
"From edit
field" without
entering any
data & enter
valid data in
remainting
fields
To verify for the
"From edit field" not to
accept an empty field.
TC_005 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Leave the "From edit field" without
entering any data
Enter valid city name in "To edit field"
Enter valid date in "Date field"
Select valied Class
Select valied Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
Bangalore Cy Jn(SBC)
Date field:
25 Mar 2010
Class field:
Sleeper Class(SL)
Ticket Type:
e-ticket
Enter invalid
data in From
edit field
To verify for the
"From edit field" not to
accept the invalid
data
TC_006 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter invalid data in "From edit field"
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:9
@
+
_
;
[
Ban5
man#
CHENNAI CENTRAL .
Enter
nonexisting city
name in From
edit field
To verify for the
"From edit field", should drop an error
message "Station Name Not Exist"for
nonexisting city name.
TC_007 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter nonexisting city name in "From
edit field"
Enter valid city name in "To edit field"
Enter valid date in "Date field" Select valied Class
Select valied Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Ban galore
London
To edit field:
Bangalore Cy Jn(SBC)
Date field:
25 Mar 2010
Class field:
Sleeper Class(SL)
Ticket Type:e-ticket
"Auto
Complete" box
for From edit
field
To verify for the "From edit field" must drop
"Auto Complete" box bellow the From edit
field for each data entry (data must be more
than 3 charactor)
TC_008 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "From edit field",
data must be more than 3 charactor
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Ban
Mang
Delhi
CHENNAI CENTRAL
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 3/14
"Fetch Station
code" option
(From field)
To Verify for the
"Fetch Station code" page (From Field)
should not open, and it should pop up an error
message "Please Enter atleast three
Characters"
TC_009 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter invalid data in "From edit field"
Click on 'Fetch Station code' button[
]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Ba
A
( Number of charaters
should be less than 3)
Open "Fetch
Station code"
page
successfully
(From field)
To Verify for the
successful open
of the "Fetch Station code" page
(From feld) along with followin objects.
"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
TC_010 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "From edit field"
Click on 'Fetch Station code' button[
]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Mangalore
( Number of charaters
should be more than or
equals to 3)
Invaid Sation
Name in
"Sation name
edit field"
(From field)
To verify for the
"Sation name edit field" not to
accept the invalid
data
TC_011 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "From edit field"
Click on 'Fetch Station code' button[
]
Clear the default data in "Sation name
edit field" and then enter invaild data
Click on 'Submit' button.
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Mangalore
( Number of charaters
should be more than or
equals to 3)
Clear the default data in
"Sation name edit field" and
then enter :
9
@
+
_
;
[
Ban5
man#
CHENNAI CENTRAL .Enter
nonexisting city
name in "Sation
name edit field"
(From field)
To verify for the
"Sation name edit field", should display an
error message "SORRY!!! No Matching
Stations Found" (with Red Font color) for
nonexisting city name.
TC_012 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "From edit field"
Click on 'Fetch Station code' button[
]
Clear the default data in "Sation name
edit field" and then enter nonexisting city
name
' '
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Mangalore
( Number of charaters
should be more than or
equals to 3)
Clear the default data in
"Sation name edit field" and
then enter :
Ban galore
eeeeeeeeeeeeeee
zzz
(Number of character shoul
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 4/14
T _
Leave the "To
edit field"
without
entering any
data & enter
valid data in
remainting
fields
To verify for the
"To edit field" not to
accept an empty field.
TC_014 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid city name in "From edit
field"
Left the "To edit field" without
entering any data
Enter valid date in "Date field"
Select valid Class
Select valid Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Bangalore Cy Jn(SBC)
Date field:25 Mar 2010
Class field:
Sleeper Class(SL)
Ticket Type:
e-ticket
Enter invalid
data in To edit
field
To verify for the
"To edit field" not to
accept the invalid
data
TC_015 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter invalid data in "TO edit field"
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
9
@
+
_
;
[
Ban5
man#
CHENNAI CENTRAL .
Enter
nonexisting city
name in To edit
field
To verify for the
"To edit field", should drop an error message
"Station Name Not Exist" for nonexisting city
name.
TC_016 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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 Enter valid city name in "From edit
field"
Enter nonexisting city name in "To edit
field"
Enter valid date in "Date field"
Select valid Class
Select valid Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Bangalore Cy Jn(SBC)
To edit field:
Ban galore
London
Date field:25 Mar 2010
Class field:
Sleeper Class(SL)
Ticket Type:
e-ticket
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 5/14
"Auto
Complete" box
for To edit field
To verify for the "To edit field" must drop
"Auto Complete" box below the To edit field
for each data entry (data must be more than 3
charactor)
TC_017 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "To edit field", data
must be more than 3 charactor
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
Ban
Mang
Delhi
CHENNAI CENTRAL
"Fetch Station
code" option
(To field)
To Verify for the
"Fetch Station code" page (To Field) should
not open, and it should pop up an error
message "Please Enter atleast three
Characters"
TC_018 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter invalid data in "To edit field" Click on 'Fetch Station code' button[
]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
Ba
A
( Number of charaters
should be more than or
equals to 3)
Open "Fetch
Station code"
page
successfully
(To field)
To Verify for the
successful open
of the "Fetch Station code" page
(To feld) along with followin objects.
"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
TC_019 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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 Enter valid data in "To edit field"
Click on 'Fetch Station code' button[
]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
Mangalore
( Number of charaters
should be more than or
equals to 3)
Invaid Sation
Name in
"Sation name
edit field"
(To field)
To verify for the
"Sation name edit field" not to
accept the invalid
data
TC_020 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "To edit field"
Click on 'Fetch Station code' button[
]
Clear the default data in "Sation name
edit field" and then enter invaild data
Click on 'Submit' button.
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
Mangalore
( Number of charaters
should be more than or equals to 3)
Clear the default data in
"Sation name edit field" and
then enter :
9
@
+
_
;
[
Ban5
man#CHENNAI CENTRAL .
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 6/14
Enter
nonexisting city
name in "Sation
name edit field"
(To field)
To verify for the
"Sation name edit field", should display an
error message "SORRY!!! No Matching
Stations Found" (with Red Font color) for
nonexisting city name.
TC_021 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid data in "To edit field"
Click on 'Fetch Station code' button[
]
Clear the default data in "Sation name
edit field" and then enter nonexisting city
name
Click on 'Submit' button.
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
To edit field:
Mangalore
( Number of charaters
should be more than or
equals to 3)
Clear the default data in
"Sation name edit field" and
then enter :
Ban galore
eeeeeeeeeeeeeee
zzz
(Number of character shoul
be in between 2 to 16)
TC_022
Date field To varify whether the date field is in "DD-MM
YYYY" format
TC_023 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
DD combobox To varify DD combobox TC_024 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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 [ ]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
MM
combobox
To varify MM combobox TC_025 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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 [ ]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 7/14
YYYY
combobox
To varify YYYY combobox TC_026 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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 [ ]
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
TC_027 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid city name in "From edit
field"
Enter valid city name in "To edit field"
Enter invalid date in "Date field"
Select valid Class
Select valid Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Bangalore Cy Jn(SBC)
To edit field:
Balarai (BBL)
Date field:
Yesterday's date
(Eg: If Today's date is
"11 Mar 2010", then enter
"10 Mar 2010")
Class field:
Sleeper Class(SL)
Ticket Type:
e-ticket
TC_028 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid city name in "From edit
field"
Enter valid city name in "To edit field"
Enter invalid date in "Date field"
Select valied Class
Select valied Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Bangalore Cy Jn(SBC)
To edit field:
Balarai (BBL)
Date field:
Greater than or equal
to "Current date+91 day's"
(Eg: If Today's date is
"08 Mar 2010", then enter
"5 June 2010")
Class field:
Sleeper Class(SL)
Ticket Type:
e-ticket
TC_029 Open the Browser
Enter the test URL
Click on µGO¶ button
Enter the valid User name in ³User
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
Enter valid city name in "From editfield"
Enter valid city name in "To edit field"
Enter invalid date in "Date field"
Select valid Class
Select valid Ticket Type
Click on 'Find Trains' button
Test URL
http://www.irctc.co.in
UN: jayaramrai
PWD: sajanasri
From edit field:
Bangalore Cy Jn(SBC)
To edit field:
Balarai (BBL)
Date field:
29 Feb 2010
(Leep year contain only28 day's)
Class field:
Sleeper Class(SL)
Ticket Type:
e-ticket
Class Co TC_030
TC_031
Reviewed:
To vefify for the date field not to accept the
invalid date
Invalid Date
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 8/14
Expected Result Actual Result Status or
Remark
Login page
should bedisplayed
Home page should be displayed. The left
navigation bar must contain "Plan My
Travel" link
The "Plan my Travel" screen should bedisplayed
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 editfield.
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" buttonat 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
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 9/14
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 equalsto 3 charactor)
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 10/14
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 displaythe 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)
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 11/14
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"
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 12/14
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 beforethe 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"
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 13/14
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")
5/12/2018 Test Cases for Irctc 21 - slidepdf.com
http://slidepdf.com/reader/full/test-cases-for-irctc-21 14/14
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.