EX_STA_doc
EX_STA_doc
Aim:
The aim of this experiment is to develop a comprehensive test plan for testing the
functionality and usability of the e-commerce web/mobile application www.amazon.in.
Algorithm:
1. Identify the Scope: Determine the scope of testing, including the features and
functionalities that need to be tested.
2. Define Test Objectives: Specify the primary objectives of testing, such as functional
testing, usability testing, performance testing, security testing, etc.
3. Identify Test Environment: Define the platforms, browsers, devices, and operating
systems on which the application will be tested.
4. Determine Test Deliverables: Decide on the documents and artifacts that will be
generated during the testing process, such as test cases, test reports, and defect logs.
5. Create Test Strategy: Develop an overall approach for testing, including the testing
techniques, entry and exit criteria, and the roles and responsibilities of the testing team.
6. Define Test Scope and Schedule: Specify the timeline for each testing phase and the
scope of testing for each phase.
7. Risk Analysis: Identify potential risks and their impact on the testing process, and devise
risk mitigation strategies.
8. Resource Planning: Allocate the necessary resources, including the testing team,
hardware , and software required for testing.
9. Test Case Design: Prepare detailed test cases based on the requirements and
functionalities of the e-commerce application.
10. Test Data Setup: Arrange test data required for executing the test cases effectively.
11. Test Execution: Execute the test cases and record the test results.
12. Defect Reporting: Document any defects encountered during testing and track their
resolution.
Test Plan:
The test plan should cover the following sections:
1. Introduction: Briefly describe the purpose of the test plan and provide an overview of the
e- commerce application to be tested.
2. Test Objectives: List the primary objectives of testing the application.
3. Test Scope: Specify the features and functionalities to be tested and any limitations on
testing.
4. Test Environment: Describe the hardware, software, browsers, and devices to be used for
testing.
5. Test Strategy: Explain the overall approach to be followed during testing.
6. Test Schedule: Provide a detailed timeline for each testing phase.
7. Risk Analysis: Identify potential risks and the strategies to mitigate them.
8. Resource Planning: Specify the resources required for testing.
9. Test Case Design: Include a summary of the test cases developed for the application.
10. Test Data Setup: Describe the process of arranging test data for testing.
11. Defect Reporting: Explain the procedure for reporting and tracking defects.
Test Case Table:
Explanation:
The test plan is a crucial document that outlines the entire testing process. It ensures that all
aspects of the e-commerce application are thoroughly tested, and the results are
systematically documented.
Output:
Result:
Thus, Test Plan for testing E-Commerce Web/Mobile Application (www.amazon.in) was
written successfully.
Ex.NO: 2 Design the Test Cases for Testing the Ecommerce
Date: Application
Aim:
The aim of this experiment is to design a set of comprehensive and effective test cases
for testing the e-commerce application www.amazon.in.
Algorithm:
7. Optimize Test Cases: Optimize the test cases for reusability and maintainability.
2. Test Case: A test case is a specific set of actions designed to verify a particular feature or
functionality of a software application.
3. Test Steps: The sequence of actions to be performed during the test.
Test Test Case Test Steps Expected Result Actual Result Status
Case ID
Aim:
The aim of this experiment is to execute the designed test cases and identify defects or
issues in the e-commerce application www.amazon.in.
Algorithm:
1. Test Environment Setup: Set up the testing environment by ensuring all necessary
hardware, software, and test data are available and properly configured.
2. Test Planning: Develop a detailed test plan outlining the scope, objectives, and test cases
that will be executed.
3. Test Case Design: Design specific test cases based on requirements and
specifications, ensuring to cover all relevant scenarios.
4. Test Case Execution: Execute the test cases step-by-step as per the defined procedures,
recording results along the way.
5. Defect Identification: Monitor the results during execution and identify any discrepancies
or issues, documenting them in detail.
6. Defect Reporting: Report the identified defects, providing clear steps to reproduce,
severity, and priority information.
7. Defect Verification: Track defect resolution progress, verifying that developers have fixed
the defects and that fixes are verified through retesting.
8. Retesting: Retest the areas where defects were fixed to ensure that the issue is resolved and
that no new issues have been introduced.
9. Regression Testing: Conduct regression testing to confirm that the changes do not
negatively impact other parts of the system or introduce new defects.
10. Test Closure: After all testing activities, including defect resolution and regression
testing, are completed, close the testing phase and document the results for future reference.
Test Case Table:
Result:
Thus, Testing the E-Commerce application and reporting the defects in it have been
executed successfully.
Ex. No 4: Develop the Test Plan and Design the Test Cases
Date : for an Inventory Control System
Aim:
To develop the test plan and design the test case for an inventory control system.
Algorithm :
Step 1. Requirement Analysis – Gather and analyze system requirements.
Step 2. Define Test Objectives and Scope – Determine the purpose and boundaries of testing.
Step 3. Develop the Test Plan – Establish test strategies, entry, and exit criteria.
Step 4. Set Up Test Environment – Prepare hardware, software, and test data.
Step 5. Identify Test Scenarios – List and prioritize key functionalities for testing.
Step 6. Design Test Cases – Create detailed test cases covering all scenarios.
Step 7. Execute Test Cases – Perform testing and compare actual vs. expected results.
Step 8. Log and Track Defects – Record, prioritize, and track defect resolutions.
Step 9. Perform Regression Testing – Re-test fixed defects and validate system stability.
Step 10. Analyze Results and Final Validation – Review test reports and recommend
deployment readiness.
Test Plan:
1. Understand System Requirements
• Identify key modules like Inventory Management, Stock Control, Supplier
Management, and Reporting.
• Gather functional and non-functional requirements.
Result:
Thus, to develop the test plan and design the test case for an inventory control system
was successful and output is noted.
Ex. No 5: Execute the test cases against client server or
Date : desktop application and Identify the defects
Aim:
To execute the test cases against a client server and identify the defects
Algorithm:
Thus test cases against the client server was created and defect was identified for these test
cases.
Ex.NO: 6 Test the performance of the E-commerce
Date: Application
Aim:
To test the performance of the E-commerce application(www.Myntra.com).
Algorithm:
2. Define Test Scenarios: Create test scenarios that simulate various user interactions and
loads on the application.
3. Performance Test Setup: Set up the performance testing environment with appropriate
hardware and software.
4. Execute Performance Tests: Run the performance tests using the defined scenarios and
collect performance data.
5. Analyze Performance Data: Analyze the collected data to identify any performance
bottlenecks or issues.
Testcase Table:
Program:
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.ExpectedConditions;
import java.time.Duration;
import java.util.List;
System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
try {
driver.get("https://www.myntra.com");
WebElement searchBox =
wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("desktop-
searchBar")));
searchBox.sendKeys("T-shirt");
searchBox.submit();
wait.until(ExpectedConditions.presenceOfElementLocated(By.className("product-
base")));
if (!products.isEmpty()) {
products.get(0).click();
}
driver.switchTo().window(winHandle);
}
WebElement sizeBtn =
wait.until(ExpectedConditions.elementToBeClickable(By.className("size-buttons-size-
button")));
sizeBtn.click();
WebElement addToBag =
wait.until(ExpectedConditions.elementToBeClickable(By.className("pdp-add-to-bag")));
addToBag.click();
e.printStackTrace();
} finally {
}
}
Output:
Result :
Thus, Performance testing for the E-commerce application is executed successfully.
Ex. No 7: Automate the testing of E-Commerce Application
Date : using Selenium
Aim:
To automate the testing of the E-commerce application (www.bigbasket.com)
using selenium.
Algorithm:
1. Set up the environment:
Install Java Development Kit (JDK) and configure the Java environment variables. -
Eclipse or IntelliJ. Install an Integrated Development Environment (IDE) like.
Download selenium WebDriver and the required web drivers for the browsers you
intend to test (e.g., ChromeDriver, GeckoDriver for Firefox).
Set up a new Java project in the IDE and include the Selenium WebDriver
library.
Identify the key functionalities and scenarios to test in the e-commerce application.
Design test cases covering various aspects like login, search, product details, add to
cart, checkout, etc
Write Java code using Selenium WebDriver to automate the identified test cases.
Utilize different Selenium commands to interact with the web elements, navigate
through pages, and perform various actions.
Review the test execution results to identify any failed test cases and fix any issues
with the automation scripts if necessary.
6. Report defects:
Provide detailed information about each defect, including steps to reproduce and
expected results
Testcase Table:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.time.Duration;
import java.util.List;
public class BigBasketTest {
System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
try {
driver.get("https://www.bigbasket.com");
ExpectedConditions.elementToBeClickable(By.cssSelector(".bb-customer-
support-close")));
closePopup.click();
} catch (Exception ignored) {
}
WebElement searchBox =
wait.until(ExpectedConditions.elementToBeClickable(By.id("input")));
searchBox.sendKeys("Apples");
wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(".product-
container")));
List<WebElement>
addButtons=driver.findElements(By.xpath("//button[contains(text(),'Add')]"));
if (!addButtons.isEmpty()) {
addButtons.get(0).click();
}
WebElement cartIcon = driver.findElement(By.cssSelector("bb-mini-cart .basket-
content"));
cartIcon.click();
System.out.println("Opened cart.");
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
Thread.sleep(5000);
} catch (InterruptedException ignored) {
}
driver.quit();
}
}
Output:
Result:
Thus, automating the testing of the E-commerce application is executed successfully for
using selenium.