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

Automation Testing Using Selenium

The document outlines a micro project focused on automation testing for the Mumbai City FC website using Selenium WebDriver with Firefox. It details the project's aim to automate key functionalities such as navigation and user authentication, along with a structured action plan and resource requirements. Additionally, it includes test cases, procedures followed, and outcomes demonstrating the effectiveness of the automation process.

Uploaded by

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

Automation Testing Using Selenium

The document outlines a micro project focused on automation testing for the Mumbai City FC website using Selenium WebDriver with Firefox. It details the project's aim to automate key functionalities such as navigation and user authentication, along with a structured action plan and resource requirements. Additionally, it includes test cases, procedures followed, and outcomes demonstrating the effectiveness of the automation process.

Uploaded by

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

Department of Computer Engineering

Title: Automation Testing – www.mumbaicityfc.com


Submitted in partial fulfilment of the requirements
of the Diploma of
in
COMPUTER ENGINEERING
by

Name Roll. No
Abhishek Kawade 22203B0003
Shirish Pawar 22203B0014

Under the guidance of

Mrs. Supriya Kadam

Department of Computer Engineering


Vidyalankar Polytechnic
Wadala (E), Mumbai -37

(Affiliated to MSBTE)
2024-2025
Department of Computer Engineering

PART-A (About 2-3 Pages)

Part-A
Format for Micro-Project Proposal
For 1st to 5th Semester

Title of Micro Project: Automation Testing - www.mumbaicityfc.com

1.0 Brief Introduction:


Automation testing for the Mumbai City FC website involves using Selenium WebDriver with Firefox to
test various user interactions. The aim is to automate testing of features such as navigating through
pages, logging in, signing up, and verifying buttons like the "Buy Tickets" link. By automating these
actions, the functionality and responsiveness of the website are tested under different conditions. The
tests include end-to-end scenarios, from clicking links and validating page navigation to filling forms and
handling elements like buttons and images. The automation scripts are written in Java, making them
simple and beginner-friendly, with clear validations for successful interactions.

2.0 Aim of the Micro Project:


The aim of this micro project is to automate the key functionalities of the Mumbai City FC website,
including navigation, user authentication, and verification of interactive elements, ensuring
efficient testing of usability, responsiveness, and functionality.

3.0 Action Plan (Sequence and time required for major activities for 8 weeks)

Sr. Details of Activity Planned Planned Name of


No. Start Date Finish Responsible Team
Date Members
1 Topic selection 8-10-24 9-10-24 All members

2 Task allocated to group 10-10-24 10-10-24 Shirish Pawar


members
3 Setting up Selenium WebDriver 11-10-24 13-10-24 Abhishek Kawade

5 Creation of Test Plan and Test 14-10-24 15-10-24 Shirish Pawar


Cases
6 Automation testing on test cases 16-10-24 18-10-24 Abhishek Kawade
using Selenium
7 Making report 19-10-24 21-910-24 Abhishek Kawade,
Shirish Pawar
8 Submission of project 22-10-24 22-10-24 Shirish Pawar
Department of Computer Engineering

4.0 Resources Required (Such as raw material, some machining facility, software etc.)
Sr. Name of Resource/Material Specifications Qty Remarks
No.
1 Firefox browser 1
2 www.mumbaicityfc.com 1
3 Selenium WebDriver 1
4 Eclipse IDE 1
5 Mobile Devices 1
6 Desktop Platforms 1
Department of Computer Engineering

PART-B (Outcomes after Execution and Format for Micro-Project Report, About 6-10 Pages)
For 1st to 5th Semester

Title of Micro Project: Automation Testing - www.mumbaicityfc.com

1.0 Brief Description: (Importance of the project, in about 100 to 200 words):
Automation testing for the Mumbai City FC website focuses on using Selenium WebDriver with
Firefox to thoroughly test a range of user interactions across the site. The primary objective is to
automate the testing process for important features such as page navigation, user registration,
login functionality, and critical actions like clicking the "Buy Tickets" link. By implementing
automation, the testing becomes more efficient, reducing the need for repetitive manual tests and
providing faster feedback on the website’s functionality. The automated tests simulate real user
behaviour, ensuring that the website responds correctly under different conditions. These tests
cover end-to-end scenarios, including tasks like clicking links, validating whether the page
navigates correctly, and checking form submissions and button clicks. They also handle interactions
with elements such as images, ensuring proper functionality and visual stability.

2.0 Aim of Micro Project: (in about 100 to 200 words):


The aim of this micro project is to automate essential functionalities of the Mumbai City FC
website, focusing on tasks like page navigation, user authentication processes (login and signup),
and the verification of interactive elements such as buttons and links. By automating these actions,
the project ensures efficient testing of the website’s usability and functionality, providing a reliable
user experience across different scenarios. This approach not only saves time by reducing
repetitive testing tasks but also enhances accuracy in identifying potential issues that may affect
users.

3.0 Course Outcomes Integrated (Add to the earlier list if more CO’s are addressed)
b. Prepare test cases for different types and levels of testing.
c. Prepare test plan for an application.
e. Test software for performance measures using automated testing tools.

4.0 Actual Procedure followed:


• Selection of Topic
• Setting Up Selenium WebDriver
• Creation of Test Plan and Test Cases
• Writing Automation Scripts
• Executing Test Cases
• Recording and Reporting Results

5.0 Actual Resources Used: (Mention the actual resources used)


Sr. Name of Resource/Material Specifications Qty Remarks
No.
1 Firefox browser 1
2 www.mumbaicityfc.com 1
Department of Computer Engineering

3 Selenium WebDriver 1
4 Eclipse IDE 1
5 Mobile Devices 1
6 Desktop Platforms 1

6.0 Outputs of the Micro Projects :

Automated Test Case:


I. Loading homepage
a. Test-Case:
Test Test Case User Input Expected Actual Status
Case Objective Result Result
ID
TC1 Loading Search for www.mumbaicity.com on Homepage Homepage Pass
homepage Firefox browser should be loaded
loaded successfully
successfully

b. Code:
package tumb;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;

public class testt {


public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.mumbaicityfc.com");
Thread.sleep(5000);
System.out.println("Page title: " + driver.getTitle());
driver.quit();
}
}
c. Output:
Department of Computer Engineering

II. Login Functionality


a. Test-Case:
Test Test Case User Input Expected Actual Status
Case Objective Result Result
ID
TC2 Login Email: Should Displays Pass
functionality [email protected], display login
Password: abhishek11 login error
error message
message

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
try {
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement signInLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='/login' and
@class='profile-link']")));
signInLink.click();
Department of Computer Engineering

WebElement usernameField =
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("loginEmail")));
usernameField.sendKeys("[email protected]");
WebElement passwordField = driver.findElement(By.id("loginPassword"));
passwordField.sendKeys("abhishek11");
WebElement loginButton = driver.findElement(By.xpath("//button[@class='btn-site btn-
login']"));
loginButton.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
if (currentUrl.contains("mumbaicityfc ")) {
System.out.println("Successfully logged in.");
} else {
System.out.println("Login failed, incorrect credentials.");
}
} catch (Exception e) {
System.out.println("An error occurred: " + e.getMessage());
} finally {
driver.quit();
}
}
}
c. Output:

III. Login Functionality


a. Test-Case:
Department of Computer Engineering

Test Test Case User Input Expected Actual Result Status


Case Objective Result
ID
TC3 Login Email: Login Login successful, Pass
functionality [email protected], successful, user user redirected to
Password: c]kkxTs]$M#hR9k should be the main page
redirected to
the main page

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
try {
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement signInLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='/login' and
@class='profile-link']")));
signInLink.click();
WebElement usernameField =
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("loginEmail")));
usernameField.sendKeys("[email protected]");
WebElement passwordField = driver.findElement(By.id("loginPassword"));
passwordField.sendKeys("c]kkxTs]$M#hR9k");
WebElement loginButton = driver.findElement(By.xpath("//button[@class='btn-site btn-
login']"));
loginButton.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
if currentUrl.contains("mumbaicityfc"){
System.out.println("Successfully logged in.");
} else {
System.out.println("Login failed, incorrect credentials.");
}
Department of Computer Engineering

} catch (Exception e) {
System.out.println("An error occurred: " + e.getMessage());
}
}
}
c. Output:

IV. Signup Functionality


a. Test-Case:
Test Test Case User Input Expected Actual Status
Case Objective Result Result
ID
Department of Computer Engineering

TC4 Signup Email: [email protected] Should Password Pass


functionality Password: c]kkxTs]$M#hR9k display does not
Confirm Password: "Password match
assdeggegrgr does not message
Mobile Number: 9653418548 match" displayed

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");

WebDriver driver = new FirefoxDriver(options);


try {
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement signInLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='/login' and
@class='profile-link']")));
signInLink.click();
WebElement signUpLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//span[contains(text(), 'Sign Up
Here')]")));
signUpLink.click();
WebElement emailField =
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("registerEmail")));
emailField.sendKeys("[email protected]");
WebElement passwordField = driver.findElement(By.id("regPassword"));
passwordField.sendKeys("c]kkxTs]$M#hR9k");
WebElement confirmPasswordField = driver.findElement(By.id("regConfirmPassword"));
confirmPasswordField.sendKeys("assdeggegrgr");
WebElement mobileNumberField = driver.findElement(By.id("regMobile"));
mobileNumberField.sendKeys("9653418548");
WebDriverWait buttonWait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement getOtpButton =
buttonWait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//button[contains(@c
lass, 'btn-site btn-otp')]")));
Department of Computer Engineering

if (!getOtpButton.getAttribute("class").contains("btn-disabled")) {
getOtpButton.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
if (currentUrl.contains("mumbai")) {
System.out.println("Successfully navigated to OTP step.");
} else {
System.out.println("Password does not match.");
}
} else {
System.out.println("Password does not match.");
}
} catch (Exception e) {
System.out.println("An error occurred: " + e.getMessage());
} finally {
driver.quit();
}
}
}
c. Output:

V. Signup Functionality
a. Test-Case:
Test Test Case User Input Expected Actual Result Status
Case Objective Result
ID
Department of Computer Engineering

TC5 Signup Email: [email protected] User should User Pass


functionality Password: c]kkxTs]$M#hR9k be successfully
Confirm Password: redirected redirected to
c]kkxTs]$M#hR9k to the OTP the OTP step
Mobile Number: 9653418548 step

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
try {
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement signInLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='/login' and
@class='profile-link']")));
signInLink.click();
WebElement signUpLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//span[contains(text(), 'Sign Up
Here')]")));
signUpLink.click();
WebElement emailField =
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("registerEmail")));
emailField.sendKeys("[email protected]");
WebElement passwordField = driver.findElement(By.id("regPassword"));
passwordField.sendKeys("c]kkxTs]$M#hR9k");
WebElement confirmPasswordField = driver.findElement(By.id("regConfirmPassword"));
confirmPasswordField.sendKeys("c]kkxTs]$M#hR9k");
WebElement mobileNumberField = driver.findElement(By.id("regMobile"));
mobileNumberField.sendKeys("9653418548");
WebElement getOtpButton = driver.findElement(By.xpath("//button[@class='btn-site btn-
otp']"));
getOtpButton.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
Department of Computer Engineering

if (currentUrl.contains("login")) {
System.out.println("Successfully navigated to OTP step.");
} else {
System.out.println("OTP request failed.");
}
} catch (Exception e) {
System.out.println("An error occurred: " + e.getMessage());
}
}
}
c. Output:

VI. Navigation to Match Report


a. Test-Case:
Department of Computer Engineering

Test Test Case User Input Expected Actual Status


Case Objective Result Result
ID
TC6 Navigation Click on the match report image User should be User Pass
to Match directed to the successfully
Report Match Report directed to
page Match
Report

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement imageElement =
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//img[contains(@src,
'I5j9Q9l6Lu.JPG')]")));
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].scrollIntoView(true);", imageElement);
Thread.sleep(1000);
imageElement.click();
System.out.println("Successfully directed to Match Report");
Thread.sleep(5000);
driver.quit();
}
}
c. Output:
Department of Computer Engineering

VII. Navigation to player's profile


a. Test-Case:
Test Test Case User Input Expected Result Actual Status
Case Objective Result
ID
TC7 Navigation Navigate to the Teams page, click Should navigate Player's Pass
to player's on "First Team", scroll to "Jose to the player's profile
profile Luis Espinosa Arroyo" profile, and profile page, page is
click "View Profile" displaying the displayed
player's detail

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


Department of Computer Engineering

public static void main(String[] args) throws InterruptedException {


System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement teamsButton =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//p[contains(text(), 'Teams')]")));
teamsButton.click();
WebElement firstTeamButton =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//span[contains(text(), 'First
Team')]")));
firstTeamButton.click();
WebElement viewProfileLink =
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//a[contains(@href, 'jose-
luis-espinosa-arroyo-19125') and contains(@class, 'view-more')]")));
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].scrollIntoView(true);", viewProfileLink);
wait.until(ExpectedConditions.elementToBeClickable(viewProfileLink));
viewProfileLink.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
System.out.println("Current URL: " + currentUrl);
System.out.println("Test Passed: Successfully navigated to the player's profile.");
driver.quit();
}
}
c. Output:

VIII. Navigate to Tickets page


Department of Computer Engineering

a. Test-Case:
Test Test Case User Input Expected Result Actual Result Status
Case Objective
ID
TC8 Navigation Navigate to the Mumbai Should navigate to the external Successfully Pass
to the City FC website and click DreamSetGo tickets page: navigated to
Tickets page the 'Tickets' link dreamsetgo.com/sports- DreamSetGo
travel/mumbaicityfc/packages tickets page

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class testt {


public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement ticketsLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[contains(@class, 'promo-link')
and contains(text(), 'Tickets')]")));
ticketsLink.click();
for (String windowHandle : driver.getWindowHandles()) {
driver.switchTo().window(windowHandle);
}
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
String expectedUrl = "https://www.dreamsetgo.com/sports-travel/mumbaicityfc/packages";
System.out.println("Current URL: " + currentUrl);
System.out.println("Expected URL: " + expectedUrl);
if (currentUrl.contains("dreamsetgo.com/sports-travel/mumbaicityfc/packages")) {
System.out.println("Test Passed: Successfully navigated to the Tickets page.");
} else {
System.out.println("Test Failed: Did not navigate to the Tickets page.");
}
driver.quit();
}
Department of Computer Engineering

}
c. Output:

IX. Navigate to Youth Teams page


a. Test-Case:
Test Test Case User Input Expected Actual Result Status
Case Objective Result
ID
TC9 Navigation Navigate to the Mumbai City Should Successfully Pass
to the Youth FC website and click the navigate to navigated to
Teams page 'Teams' button, then 'Youth the Youth the Youth
Teams' Teams page Teams page

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;

public class SimpleTest {


public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
Department of Computer Engineering

FirefoxOptions options = new FirefoxOptions();


options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.mumbaicityfc.com");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement teamsButton =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[contains(@aria-label,
'Teams')]")));
teamsButton.click();
WebElement youthTeamsLink =
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//span[contains(text(), 'Youth
Teams')]")));
youthTeamsLink.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
if (currentUrl.contains("teams")) {
System.out.println("Test Passed: Successfully navigated to the Youth Teams page.");
} else {
System.out.println("Test Failed: Did not navigate to the Youth Teams page.");
}
driver.quit();
}
}
c. Output:

X. Navigation to the standings section


a. Test-Case:
Department of Computer Engineering

Test Test Case User Input Expected Actual Result Status


Case Objective Result
ID
TC10 navigation Navigate to the Mumbai City FC User should User Pass
to the website and click the 'Standings' be navigated successfully
standings option in the nav-bar to the navigated to
section standings the standings
section section

b. Code:
package tumb;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;

public class SimpleTest {


public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\browserdrivers\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.mumbaicityfc.com");
Thread.sleep(3000);
WebElement standingsLink = driver.findElement(By.linkText("Standings"));
standingsLink.click();
Thread.sleep(5000);
String currentUrl = driver.getCurrentUrl();
if (currentUrl.contains("standings")) {
System.out.println("Test Passed: Successfully navigated to the standings page.");
} else {
System.out.println("Test Failed: Did not navigate to the standings page.");
}
driver.quit();
}
}
c. Output:
Department of Computer Engineering

Test Case:

Test Test Case User Input Expected Result Actual Result Status
Case ID Objective
TC11 Verify Website Should redirect to Pass
Redirected to the
logo Click on Mumbai City Fc the website’s home
website’s home
logo page
page successfully
TC12 Social media Click on the share link should navigate Pass
Navigated to the
Sharing button for sharing the to the
www.facebook.co
Functionality news article on www.facebook.com
m page
www.facebook.com page
TC13 Click on the "Fast&Up" Should redirect to redirected to
Verify Sponsor
logo on sponsors page Fast&Up’s official Fast&Up’s official Pass
Logos
page page successfully
TC14 Achievements Achievements are
Check Team Navigate to the
should be displayed displayed Pass
Achievements Achievements page
accurately. correctly.
TC15 Login, navigate to user User profile should User profile
User Profile
profile, update details, be updated updated Pass
Update
and save successfully successfully
TC16 Check Page should refresh Page refreshed
Language Click on “Marathi” and display in the and displayed in Pass
Selector selected language selected language
TC17 Success message
Enter Success message for
Verify Email appears
“abhishekkawade9a35 subscription should Pass
Subscription confirming
@gmail.com” appear
subscription
TC18 Check User User should be
Click on the logout User logged out
Logout logged out Pass
button after logging in successfully
Functionality successfully
TC19 Video should play Video played
Test Video Click on a video in the
without buffering or without issues Pass
Playback media section
errors successfully
TC20 Verify Live Check live match Live score and Live updates
Match updates feature during updates should displayed in real- Pass
Updates a match appear in real-time time successfully
Department of Computer Engineering

Test Plan:

Sr. Section Description


No.
1 Test Plan Identifier MUM_TP1

2 Introduction The purpose of this document is to create a test plan for the Mumbai
City FC website. The purpose of testing this website is to verify the
functionality of features such as navigation, login, signup, ticket booking,
and match updates.

3 Test Items - Homepage


- Navigation Bar
- Fixtures Page
- Team Page
- Buy Tickets Button
- Social Media Links
- User Login
- Footer Links
- Image Gallery

4 Features to be tested - Navigation (Home, Teams, Standings, Match Report)


- User authentication (Login, Signup)
- Page functionality (clicking buttons, links)
- External links (ticket booking)
- Form validation (Login, Signup, OTP step)

5 Approach • On the test object: functional and non-functional


• According to the requirements: positive and negative
• By degree of preparedness: intuitive testing (ad hoc)

6 Item Pass/Fail Criteria All test cases with high priority are closed with the result - pass.
The test coverage is checked and sufficient, where the criterion of
sufficiency is not less than 99% of the coverage of requirements by tests.

7 Suspension Criteria: The appearance and entering the bug-tracking system of blocking bugs.

Closing the blocking bug in the bug tracking system


Resumption Criteria:
8 Test Deliverables - Test plan
- Test case specification
- Test case
- Test summary report

9 Test Tasks - Writing test plan


- Creating test cases
- Defining pass/fail criteria
- Executing the test cases
- Evaluating the test results
- Creating test reports
Department of Computer Engineering

Environmental
10 needs - Firefox browser
- Mobile devices (iOS and Android)
- Desktop platforms (Windows, macOS, Linux)
- Stable internet connection

11 Responsibilities Functionality and Responsible


Responsibilities
Homepage Test Engineer 1
Navigation Bar Test Engineer 2
Fixtures Page Test Engineer 1
Team Page Test Engineer 1
Buy Tickets Button Test Engineer 2
Social Media Links Test Engineer 3
User Login Test Engineer 2
Signup Test Engineer 2
Footer Links Test Engineer 3
Image Gallery Test Engineer 3
12 Staffing and Training To perform the tasks, testing team needs to have the following
Needs knowledge and skills:
a. proficiency in web testing.
b. Familiarity with automation testing tools like Selenium.
c. Knowledge and ability to apply in practice the basic techniques
of test design.

13 Schedule
The deadline for completion of all works and delivery of the project is
30/10/2024 by 5.00pm

14 Risks and Contingencies - Insufficient human resources for testing the application in deadlines.
during testing - Changes in website requirements or functionality during testing.
- Third-party integration issues.

15 Approvals Team - Lead Test Engineer


- Test Engineer 1
- Test Engineer 2
- Test Engineer 3

7.0 Skill Developed/Learning out of this Micro Project.


• Selenium Automation
Learned how to use Selenium WebDriver to automate web-based tasks, including navigation, form
handling, and validation of interactive elements on a live website.
• Test Case Design and Execution
Gained experience in designing detailed test cases to verify the functionality of specific website features,
followed by executing these tests to check for expected results.
• Web Application Functional Testing
Developed the ability to perform functional testing on web applications, ensuring that each feature of the
website works according to its specifications under various conditions.
Department of Computer Engineering

• Test Script Writing


Learned how to write efficient automation scripts using Java, incorporating Selenium commands to
perform automated actions such as clicking buttons, filling forms, and verifying outputs on the web
application.
Department of Computer Engineering

Name of Student: Abhishek Kawade Enrollment No: 2205680072


Shirish Pawar 2205680083

Name of Programmed: CO Semester: 5


Course Title: Software Testing Code: 22518
Title of the Micro Project: Automation Testing - www.mumbaicityfc.com

Course Outcomes Achieved:


b. Prepare test cases for different types and levels of testing.
c. Prepare test plan for an application.
e. Test software for performance measures using automated testing tools.

Micro Project Evaluation Sheet

Process Assessment Product Assessment Total Marks 10

Part-A Project Part-B Individual


Project Proposal Methodology Project Report/ Presentation/
(Mark-2) (Mark-2) Working Model Viva
(Marks-2) (Marks-4)

Comments/Suggestions about team work/leadership/inter-personal communication (if any)

----------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------

Any other Comments:

----------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------

Name and Designation of Faculty Members

Signature:

You might also like