0% found this document useful (0 votes)
8 views

Software Twsting Open

The document describes the requirements for an online bus ticket reservation system called BUSINDIA ONLINE. It includes sections on introduction, SRS, test scenarios, test cases, test execution, bug reporting, traceability matrix and automated testing. The SRS section specifies features like registration, route search, seat selection, reservations and payments.

Uploaded by

Shifa Thasneem
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Software Twsting Open

The document describes the requirements for an online bus ticket reservation system called BUSINDIA ONLINE. It includes sections on introduction, SRS, test scenarios, test cases, test execution, bug reporting, traceability matrix and automated testing. The SRS section specifies features like registration, route search, seat selection, reservations and payments.

Uploaded by

Shifa Thasneem
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

GOVERMENT POLYTECHNIC COLLEGE

KUNNAMKULAM
KIZHOOR(P.O), THRISSUR, KERALA
PIN- 680523

OPEN ENDED
PROJECT

BUSINDIA-ONLINE BUS TICKET


RESERVATION SYSTEM

PRESENTED BY
RIMNA
ALEEN ANTU
DHIJIN KRISHNA K B

Directorate of Technical Education


Government of Kerala

1
CONTENTS

SI.NO CHAPTER PAGE NO

1 Introduction 6
2 SRS of ‘ Online bus booking system website’ 7-10
3 Test scenario 11-12
4 Test case 13-23
5 Test case execution 24-32
6 Bug reporting using Jira 33-34
7 Traceability matrix 35-36
8 Automate the login test case of the website 37

5
CHAPTER 1
INTRODUCTION
What is Software Testing

Software testing is a critical process in the development of software applications. It


involves evaluating and verifying that a software product or application functions as
intended. The main goals of software testing are to identify any errors, gaps, or missing
requirements compared to the actual specifications. It can be performed manually or
using automated tools and covers various testing methods and levels to ensure the
software’s quality, reliability, and performance.

Online bus booking System

An online The BUSINDIA ONLINE Bus Ticket Reservation System revolutionizes


the way travelers book bus tickets across India by providing a user-friendly and
efficient online platform. In a country where bus travel is a primary mode of
transportation for millions, this system aims to simplify the booking process, enhance
accessibility, and ensure a seamless experience for users.

6
CHAPTER 2
SRS OF “ONLINE BUS BOOKING SYSTEM WEBSITE”

CONTENTS PAGE NO
About the document 7
● Purpose
● scope
● definition

Overall description 7
● product perspective
● features
7-8
System features
Registration
Route search
Seat selection
Reservation management
payment

External interface requirement 8


User interface
Hardware interface
Software interface
Non-functional requirement 8
Performance
Security
Reliability
usability

Other 8
Legal and compliance requirments
Documentation

7
1. About The document:

1.1 Purpose
The purpose of this Software Requirement Specification (SRS) document is to outline the requirements for
the development of the BUSINDIA ONLINE Bus Ticket Reservation System. This system aims to provide a
comprehensive online platform for booking bus tickets across India, catering to the needs of travelers by
offering a user-friendly interface, real-time updates, and secure payment options.

1.2 Scope
The BUSINDIA ONLINE Bus Ticket Reservation System will facilitate the booking of bus tickets for various
routes and destinations across India. It will include features such as searching for routes, selecting seats,
making reservations, and processing payments. The system will also provide real-time information on bus
schedules, availability, and fares. Additionally, it will offer mobile accessibility and customer support services
to enhance user experience.

1.3 Definitions, Acronyms, and Abbreviations

BUSINDIA ONLINE: The name of the online bus ticket reservation system.
SRS: Software Requirement Specification.
UI: User Interface.

2. Overall Description

2.1 Product Perspective


The BUSINDIA ONLINE Bus Ticket Reservation System will function as a standalone web application
accessible via standard web browsers. It will interact with external systems for payment processing and real-
time bus information retrieval.

2.2 Product Features

User Registration and Authentication: Users can create accounts and log in securely to access the
system.
Route Search: Users can search for bus routes based on origin, destination, and travel dates.
Seat Selection: Users can view available seats on selected buses and choose their preferred seats.
Reservation Management: Users can manage their reservations, including viewing, modifying, and
canceling bookings.
Real-time Updates: The system will provide real-time information on bus schedules, availability, and
fares.
Secure Payment Processing: The system will integrate a secure payment gateway to process
transactions using various payment methods.
Mobile Accessibility: The system will be accessible via mobile devices, providing a responsive user
interface for seamless booking on smartphones and tablets.
Customer Support: The system will offer customer support services to assist users with inquiries and
issues.

3.System Features
8
3.1 User Registration and Authentication
Users can register by providing required information such as name, email, and password.
The system will verify user credentials during login to ensure secure access.

3.2 Route Search


Users can search for bus routes by entering origin, destination, and travel dates.
The system will display a list of available routes matching the search criteria.

3.3 Seat Selection


Users can view available seats for selected routes and buses.
The system will allow users to select preferred seats from the available options.

3.4 Reservation Management


Users can view their current reservations and booking history.
The system will allow users to modify or cancel existing bookings as per the cancellation policy.

3.5 Real-time Updates


The system will fetch real-time data on bus schedules, availability, and fares from external sources.
Users will receive up-to-date information when searching for routes and making reservations

. 3.6 Secure Payment Processing


The system will integrate a secure payment gateway to process transactions securely.
Users can make payments using credit/debit cards, net banking, or other supported payment methods.

3.7 Mobile Accessibility


The system will provide a mobile-responsive user interface for seamless booking on mobile devices.
Users can access all features of the system from smartphones and tablets.

3.8 Customer Support


The system will offer customer support services, including FAQs, live chat, and email support.
Users can contact support agents for assistance with bookings, payments, or other inquiries.

4.External Interface Requirements

4.1 User Interfaces


The system will feature a user-friendly web interface for desktop and mobile browsers.
The UI will include forms for user registration, login, route search, seat selection, and reservation
management.

4.2 Hardware Interfaces


The system will require standard hardware components such as servers, databases, and network infrastructure
for hosting and operation.

4.3 Software Interfaces


The system will interact with external systems for payment processing and real-time bus information retrieval.
APIs or web services will be used to communicate with these external systems

5.1 Performance
The system should respond to user interactions promptly, with minimal latency.
It should handle multiple concurrent users and high traffic volumes efficiently.

9
5.2 Security
The system should implement robust security measures to protect user data and transactions.
It should use encryption techniques to secure sensitive information during transmission and storage.

5.3 Reliability
The system should be highly reliable, with minimal downtime and service interruptions.
It should have mechanisms for data backup and recovery to prevent data loss.

5.4 Usability
The system should have an intuitive user interface that is easy to navigate and understand.
It should provide clear instructions and guidance to users throughout the booking process.

6.Other Requirements

6.1 Legal and Compliance Requirements


The system should comply with relevant laws and regulations governing online payment processing, data
privacy, and consumer rights.
It should adhere to industry standards for security and reliability.

6.2 Documentation
The system should be well-documented, with user manuals, technical guides, and system documentation
provided to users and developers.
Documentation should be updated regularly to reflect changes and updates to the system.

7. Conclusion

7.1 The BUSINDIA ONLINE Bus Ticket Reservation System aims to provide a comprehensive and user-
friendly platform for booking bus tickets across India. By incorporating features such as route search, seat
selection, real-time updates, secure payment processing, and mobile accessibility, the system aims to enhance
the overall experience of travelers and simplify the booking process. With robust security measures, reliable
performance, and dedicated customer support, BUSINDIA ONLINE strives to set a new standard for online
bus ticket reservation systems in India.

10
CHAPTER 3
TEST SCENARIO
TEST SCENARIO ID TEST SCENARIO DESCRIPTION
Obs_Ts-001 To verify that can successfully register by providing required information such as
Name
Email
password
Obs_Ts-002 To Verify that registered users can log in securely using their credentials.
Obs_Ts-003 To Verify that users can search for bus routes by entering
Origin
Destination
travel dates.
Obs_Ts-004 To Verify that users can view available seats for selected routes and buses.
Obs_Ts-005 To Verify that users can select preferred seats from the available options.
Obs_Ts-006 To Verify that users can make a reservation for selected seats and routes
Obs_Ts-007 To Verify that users can view their current reservations and booking history.
Obs_Ts-008 To Verify that users can modify existing reservations, such as
changing travel dates
seat selections
Obs_Ts-009 To Verify that users can cancel existing reservations, and the system processes the cancellation accordingly
Obs_Ts-010 To Verify that the system provides real-time updates
bus schedules
availability
fares
Obs_Ts-011 To Verify secure payment processing using credit/debit cards.
Obs_Ts-012 To Verify secure payment processing using net banking.
Obs_Ts-013 To Verify secure payment processing using mobile wallets.
Obs_Ts-014 To Verify that the user interface is responsive and accessible on mobile devices.
Obs_Ts-015 To Verify that users can contact customer support via live chat and receive assistance.
Obs_Ts-016 To Verify that users can contact customer support via email and receive timely responses to inquiries.
Obs_Ts-017 To Verify that users can retrieve forgotten passwords securely through the system.

Obs_Ts-018 To Verify that users can view their booking history, including past and upcoming reservations.

11
CHAPTER 4
TEST CASES
TEST CASE TEST CASE DESCRIPTION PRERESUISITES S STEP TO EXECUTE EXPECTED OUTPUT STATUS
ID T
E
PS
Obs_TC-001 User has to load the 1 Navigate to the registration Pass
To verify that the user User is successfully register
web page page. contain:
registration displays contain:
●Registration with the ● Registration with
the text field for
text field for user user name and
name and password, and
password, and login button
login button Sign Sign up link for
up link for new new user
user
● Register Button ● Register Button

2 Fill in valid user details and System should navigate to


click registration button user registration successfully pass

Obs_TC-002 To verify that the user User has to load the 1 Navigate to the login page System should displays login Pass
Registered user web page page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Login button

2 Click on to the Enter valid System should navigate to Pass


credentials. . Click on "Login User is successfully logged
in.

Obs_TC-003 To verify that user Logged in User has to load the 1 Navigate to the search page System should displays login Pass
user web page of the system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login
2 Click on Enter origin, Pass
destination, and travel dates Relevant bus routes are
displayed.

Click on the search button System should provide Pass


3 relevant bus route

Obs_TC-004 To verify that the user can User has to load the 1 Navigate to the registration System should displays login Pass
displayed the bus route web page page. page contain:
● Login page with the
text field for

12
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 View available seats for Available seats are Pass


selected route displayed.

Obs_TC-005 To verify that user can Select preferred seats 1 Log into online bus booking System should navigate to Pass
Available seats displayed from the available system' application with the the Selected seats are
options User name and password highlighted.
Obs_TC-006 To verify that user Seats User has to load the 1 Open the web site online bus System should displays login Pass
selected highlighed web page booking system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 Navigate the Proceed to Reservation is successfully Pass


make a reservation. made.

Obs_TC-007 To verify that Existing User has to load the 1 System should displays login Pass
reservations web page Open the web site online bus page contain:
booking system ● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 navigate to the reservations System should navigate to


page. Current reservations are Pass
displayed.
Obs_TC-008 User has to load the 1 Open the web site online bus System should displays login Pass
To verify that user can
web page booking system page contain:
Reservation modification
● Login page with the
Exiting reservation text field for
modify reservation user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 Click on the Select an System should navigate to


existing reservation. Reservation details are Pass
updated successfully.

3 User can Modify reservation


System should able
details Pass
to updated
successfully.
Obs_TC-009 To verify that the user can User has to load the 1 Open the web site online bus System should displays login Pass
Reservation cancellation web page booking system page contain:

13
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
Form heading online bus
booking - User login

2 User can Select an existing System should reservation is Pass


reservation. And Cancel the canceled successfully.
reservation.
Obs_TC-010 To verify that the user able to User has to load the 1 Open the web site online bus System should displays login Pass
Real-time updates web page booking system page contain:
● Login page with the
Bus schedules text field for
Availability user name and
password, and
Fares
login button
Sign up link for
new user
● Register Button

Form heading online bus


booking - User login

2 Give a View bus schedules, System able to give Up-to- Pass


availability, and fares for date information is
selected routes. displayed.

Obs_TC-011 To verify that the able to User has to load the 1 Open the web site online bus System should displays login Pass
Secure payment processing web page booking system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
Form heading online bus
booking - User login

2 Check that user is able System should able to Pass


to Proceed to make Payment is processed
payment using securely.
credit/debit card.
Obs_TC-012 To verify that user can make User has to load the 1 Proceed to make payment payment is processed Pass
and provide Secure payment web page using net banking. securely.
processing
Obs_TC-013 Login into online bus 1 Pass
To verify that the Check that the Proceed to System should able to
booking system
Secure payment processing to make payment using display Payment is
website
make payment using mobile mobile wallet. processed securely.
wallet.
Obs_TC-014 To verify that the Mobile Login into online bus 1 Pass
Check that the bus System should able to
accessibility booking system
website booking Access the User interface is
platform using a mobile responsive and
device. functional.

14
Obs_TC-015 To verify that the user can Login into online bus 1 Open the web site online System should displays login Pass
Contact customer support booking system bus booking system page contain:
website ● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button

Form heading
online bus
booking - User
login
2 Check that the Use live System should able to Pass
chat feature to contact navigate Timely
support. assistance is provided by
support agent. .
Obs_TC-016 Login into online 1 Open the web site online bus System should displays login Pass
To verify that Contact
exam system website booking system page contain:
customer support to use email ● Login page with
support the text field for
user name and
password, and
login button
Sign up link for
new user
● Register
Button

Form heading online bus


booking - User login
2 Check that the Use email System should able to Pass
support feature to contact navigate Timely response
support. is received for inquiry. .
Obs_TC-017 To verify that the user can Login into online 1 Open the web site online bus System should displays login Pass
able to change the password exam system website booking system page contain:
● Login page with
Enter registered email. the text field for
user name and
Click "Reset Password". password, and
login button
Sign up link for
new user
● Register
Button

Form heading online bus


booking - User login
2 Check that the Navigate System should able to Pass
to the password reset navigate by clicking
page. “forget password” button
to change password of
page.
3 Pass
Check that the bus System should able to
booking Enter registered display the registered
email. email

4 Check that the . Click System should able to Pass


"Reset Password".button navigate by clickin on
“reset password” in bus
booking page
5 Pass
Check that the password System should able to
is set or not Password reset link is
sent to the registered
email.
Obs_TC-018 To verify that the user bus Login into online bus 1 Open the web site online bus System should displays login Pass
booking Booking history booking system booking system page contain:
website ● Login page with
the text field for
Trip id user name and
Bus route password, and
Journey date login button
No of seat Sign up link for
new user

15
● Register
Button

Form heading online bus


booking - User login
2 Check that the correct System should able to failed
trip id navigate by clicking
“submit” button to print
ticket
3 Pass
Check that the navigated System should able to
correct route display the journey
4 Check that the journey System should able to Pass
date navigate by checking the
journey date
5 Check that the number of System should able to Pass
seat user booked navigate by checking the
no of seat

4 Check that the user ticket System should able to failed


number recover navigate by recover
option
Obs_TC-19 To verify that the user can Login into online bus 1 To verify that the student To verify that the student Pass
conform to log out booking system can navigate check to log can navigate to user page
website out using “logout button” on clicking on logout
button

16
CHAPTER 5
TEST CASE EXECUTION
TEST CASE TEST CASE DESCRIPTION PRERESUISITES S STEP TO EXECUTE EXPECTED OUTPUT STATUS remark
ID T
E
PS
Obs_TC-001 User has to load the 1 Navigate to the registration User is successfully Pass
To verify that the user
web page page. registere contain:
registration displays contain:
●Registration with the ● Registration with
the text field for
text field for user user name and
name and password, and
password, and login button
login button Sign Sign up link for
up link for new new user
user
● Register Button ● Register Button

2 Fill in valid user details and System should navigate to


click registration button user registration successfully pass

Obs_TC-002 To verify that the user User has to load the 1 Navigate to the login page System should displays login Pass
Registered user web page page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Login button

2 Click on to the Enter valid System should navigate to Pass


credentials. . Click on "Login User is successfully logged
in.

Obs_TC-003 To verify that user Logged in User has to load the 1 Navigate to the search page System should displays login Pass
user web page of the system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online ebus
booking - User login
2 Click on Enter origin, Pass
destination, and travel dates Relevant bus routes are
displayed.

Click on the search button System should provide Pass


3 relevant bus route

Obs_TC-004 To verify that the user can User has to load the 1 Navigate to the registration System should displays login Pass
displayed the bus route web page page. page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user

17
● Register Button
● Login button
Form heading online bus
booking - User login
2 View available seats for Available seats are Pass
selected route displayed.

Obs_TC-005 To verify that user can Select preferred seats 1 Log into online bus booking System should navigate to Pass
Available seats displayed from the available system' application with the the Selected seats are
options User name and password highlighted.
Obs_TC-006 To verify that user Seats User has to load the 1 Open the web site online bus System should displays login Pass
selected highlighed web page booking system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 Navigate the Proceed to Reservation is successfully Pass


make a reservation. made.

Obs_TC-007 To verify that Existing User has to load the 1 System should displays login Pass
reservations web page Open the web site online bus page contain:
booking system ● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 navigate to the reservations System should navigate to


page. Current reservations are Pass
displayed.
Obs_TC-008 User has to load the 1 Open the web site online bus Pass
To verify that user can System should displays login
web page booking system page contain:
Reservation modification
● Login page with the
Exiting reservation text field for
modify reservation user name and
password, and
login button
Sign up link for
new user
● Register Button
● Login button
Form heading online bus
booking - User login

2 Click on the Select an System should navigate to


existing reservation. Reservation details are Pass
updated successfully.

3 User can Modify reservation


System should able
details Pass
to updated
successfully.
Obs_TC-009 To verify that the user can User has to load the 1 Open the web site online bus System should displays login Pass
Reservation cancellation web page booking system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for

18
new user
● Register Button
Form heading online bus
booking - User login

2 User can Select an existing System should reservation is Pass


reservation. And Cancel the canceled successfully.
reservation.
Obs_TC-010 To verify that the user able to User has to load the 1 Open the web site online bus System should displays login Pass
Real-time updates web page booking system page contain:
● Login page with the
Bus schedules text field for
Availability user name and
password, and
Fares
login button
Sign up link for
new user
● Register Button

Form heading online bus


booking - User login

2 Give a View bus schedules, System able to give Up-to- Pass


availability, and fares for date information is
selected routes. displayed.

Obs_TC-011 To verify that the able to User has to load the 1 Open the web site online bus System should displays login Pass
Secure payment processing web page booking system page contain:
● Login page with the
text field for
user name and
password, and
login button
Sign up link for
new user
● Register Button
Form heading online bus
booking - User login

2 Check that user is able System should able to Pass


to Proceed to make Payment is processed
payment using securely.
credit/debit card.
Obs_TC-012 To verify that user can make User has to load the 1 Proceed to make payment payment is processed Pass
and provide Secure payment web page using net banking. securely.
processing
Obs_TC-013 Login into online bus 1 Pass
To verify that the Check that the Proceed to System should able to
booking system
Secure payment processing to make payment using display Payment is
website
make payment using mobile mobile wallet. processed securely.
wallet.
Obs_TC-014 To verify that the Mobile Login into online bus 1 Pass
Check that the bus System should able to
accessibility booking system
website booking Access the User interface is
platform using a mobile responsive and
device. functional.

Obs_TC-015 To verify that the user can Login into online bus 1 Open the web site online System should displays login Pass
Contact customer support booking system bus booking system page contain:
website ● Login page with the
text field for
user name and
password, and
login button
Sign up link for

19
new user
● Register Button

Form heading
online bus
booking - User
login
2 Check that the Use live System should able to Pass
chat feature to contact navigate Timely
support. assistance is provided by
support agent. .
Obs_TC-016 Login into online 1 Open the web site online bus System should displays login Pass
To verify that Contact
exam system website booking system page contain:
customer support to use email ● Login page with
support the text field for
user name and
password, and
login button
Sign up link for
new user
● Register
Button

Form heading online bus


booking - User login
2 Check that the Use email System should able to Pass
support feature to contact navigate Timely response
support. is received for inquiry. .
Obs_TC-017 To verify that the user can Login into online 1 Open the web site online bus System should displays login Pass
able to change the password exam system website booking system page contain:
● Login page with
Enter registered email. the text field for
user name and
Click "Reset Password". password, and
login button
Sign up link for
new user
● Register
Button

Form heading online bus


booking - User login
2 Check that the Navigate System should able to Pass
to the password reset navigate by clicking
page. “forget password” button
to change password of
page.
3 Pass
Check that the bus System should able to
booking Enter registered display the registered
email. email

4 Check that the . Click System should able to Pass


"Reset Password".button navigate by clicking on
“reset password” in bus
booking page
5 Pass
Check that the password System should able to
is set or not Password reset link is
sent to the registered
email.
Obs_TC-018 To verify that the user bus Login into online bus 1 Open the web site online bus System should displays login Pass
booking Booking history booking system booking system page contain:
website ● Login page with
the text field for
Trip id user name and
Bus route password, and
Journey date login button
No of seat Sign up link for
new user
● Register
Button

Form heading online bus


booking - User login
2 Check that the correct System should able to failed There is no
trip id navigate by clicking option to
“submit” button to print recover trip

20
ticket id using
forget
button
3 Pass
Check that the navigated System should able to
correct route display the journey
4 Check that the journey System should able to Pass
date navigate by checking the
journey date
5 Check that the number of System should able to Pass
seat user booked navigate by checking the
no of seat

4 Check that the user System should able to failed There is no


cannot recover the ticket navigate by clicking on option to
id forget button navigate to
recover
ticket id

Obs_TC-19 To verify that the user can Login into online bus 1 To verify that the student To verify that the student Pass
conform to log out booking system can navigate check to log can navigate to user page
website out using “logout button” on clicking on logout
button

21
CHAPTER 6
BUG REPORTING USING JIRA

STEPS:
1. Execute the already prepared test cases and update its status in the test report.
2. Create account in JIRA
3. For logging defect/bug log in to JIRA
4. Create project
5. Report bug/defect

REPORTED BUGS:
BUG 1:
Steps:
1 Check that the if the trip is cancellable,
you will see an option to “Cancel
Booking”. Choose “Cancel Booking” if
you want to cancel the booking
2 Check that the “feedback page”
button navigate to login page.
3 User have need a good internet
connection

4 Check that the user have no recover


option of ticket number
5 No change or refund is possible within
15 minutes of the scheduled departure
time, or after departure time

Expected Output:

System should able system should provide ticket number recover option
Actual output:

There is no recover option for ticket number

22
23
CHAPTER 7
TRACEABILITY MATRIX

REQUIREMENT ID TEST SCENARIO ID TEST CASE ID


1
2
3.1 Obs_Ts-001 Obs_TC-001
3.1.1 Obs_Ts-005 Obs_TC-005
3.1.1.1 Obs_Ts-003 Obs_TC-003
3.1.1.2 Obs_Ts-005 Obs_TC-005
3.1.1.3 Obs_Ts-002 Obs_TC-002
3.1.1.4 Obs_Ts-001 Obs_TC-001
3.1.2 Obs_Ts-002 Obs_TC-002
3.1.3 Obs_Ts-007 Obs_TC-007
4.1 Obs_Ts-008 Obs_TC-008
4.1.1 Obs_Ts-008 Obs_TC-008
4.1.2 Obs_Ts-009 Obs_TC-009
4.1.3 Obs_Ts-010 Obs_TC-010
4.1.4 Obs_Ts-008 Obs_TC-008
4.1.5 Obs_Ts-008 Obs_TC-008
4.2 Obs_Ts-011 Obs_TC-011
4.3 Obs_Ts-011 Obs_TC-011
4.4 Obs_Ts-011 Obs_TC-011
4.5 Obs_Ts-011 Obs_TC-011
5 Obs_Ts-012 Obs_TC-012
6.1 Obs_Ts-013 Obs_TC-013
6.2 Obs_Ts-013 Obs_TC-013
6.3 Obs_Ts-013 Obs_TC-013
6.4 Obs_Ts-014 Obs_TC-014
6.5 Obs_Ts-014 Obs_TC-014
7.1 Obs_Ts-015 Obs_TC-015
7.2 Obs_Ts-015 Obs_TC-015
7.3 Obs_Ts-015 Obs_TC-015
24
7.4 Obs_Ts-016 Obs_TC-016
7.5 Obs_Ts-016 Obs_TC-016
7.6 Obs_Ts-016 Obs_TC-016
8.1 Obs_Ts-017 Obs_TC-017
8.2 Obs_Ts-018 Obs_TC-018
8.3 Obs_Ts-019 Obs_TC-019

25
CHAPTER 8
AUTOMATE THE LOGIN TEST CASE OF THE
WEBSITE
Program
package selenium_project;

from selenium import webdriver


from selenium.webdriver.common.keys import Keys
import time
driver_path = '/path/to/your/webdriver/executable'
driver = webdriver.Chrome(executable_path=driver_path)
driver.get('https://www.busindia.com/')

username_input = driver.find_element_by_id('txtEmail') # Assuming 'txtEmail' is the ID of the


username input field
password_input = driver.find_element_by_id('txtPassword') # Assuming 'txtPassword' is the ID of the
password input field

username_input.send_keys('your_username')
password_input.send_keys('your_password')
password_input.send_keys(Keys.RETURN)
time.sleep(3)
if 'dashboard' in driver.current_url:
print('Login successful!')
else:
print('Login failed.')

driver.quit()

26

You might also like