You are on page 1of 14

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 Description Case ID Successful To Verify for the TC_001 Open the Browser launching of successful Enter the test URL the launching of the Click on GO button application application 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 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

Input Test URL http://www.irctc.co.in

Test URL http://www.irctc.co.in UN: jayaramrai PWD: sajanasri

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

Test URL http://www.irctc.co.in UN: jayaramrai PWD: sajanasri

e- ticket radio button Quota Check box for Tatkal quota along with help link Find Transfer button Reset button

TC_004

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

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

TC_007

Test URL http://www.irctc.co.in UN: jayaramrai PWD: sajanasri From edit field: 9 @ + _ ; [ 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 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: Ban Mang Delhi CHENNAI CENTRAL

"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

"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 Station code" page successfully (From field)

To Verify for the TC_010 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 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 invalid data in "From edit field" Click on 'Fetch Station code' button[ ] 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[ ] 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: Ba A ( Number of charaters should be less than 3)

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)

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

TC_012

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 . 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 city zzz name (Number of character should

TC_013

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

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 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 From edit field: Bangalore Cy Jn(SBC) Date field: 25 Mar 2010 Class field: Sleeper Class(SL) Ticket Type: e-ticket

Enter invalid To verify for the data in To edit "To edit field" not to field accept the invalid data

TC_015

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

Test URL http://www.irctc.co.in UN: jayaramrai PWD: sajanasri To edit field: 9 @ + _ ; [ 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

"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)

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 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[ ] 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[ ] 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: Ban Mang Delhi CHENNAI CENTRAL

"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"

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 TC_019 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 To verify for the "Sation name edit field" not to accept the invalid data TC_020

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)

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 .

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

TC_021

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 city zzz name (Number of character should Click on 'Submit' button. be in between 2 to 16)

TC_022

Date field

To varify whether the date field is in "DD-MM-TC_023 YYYY" format

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 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 [ ] 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

DD combobox To varify DD combobox

TC_024

Test URL http://www.irctc.co.in UN: jayaramrai PWD: sajanasri

MM combobox

To varify MM combobox

TC_025

Test URL http://www.irctc.co.in UN: jayaramrai PWD: sajanasri

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 [ ] 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

Invalid Date

To vefify for the date field not to accept the invalid date

TC_027

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 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 only 28 day's) 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 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

Class Co
Author: Reviewed:

TC_030 TC_031

Expected Result Login page should be displayed Home page should be displayed. The left navigation bar must contain "Plan My Travel" link

Actual Result

Status or Remark

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