https://github.com/darvinpatel/planitassessment
This project demonstrates automated testing using Selenium on the Jupiter Toys demo site. It includes tests for various e-commerce functionalities such as product selection, cart management, form submissions, and validation of UI elements, showcasing Selenium’s web automation capabilities.
https://github.com/darvinpatel/planitassessment
html-css-javascript maven-pom selenium selenium-java selenium-webdriver
Last synced: about 2 months ago
JSON representation
This project demonstrates automated testing using Selenium on the Jupiter Toys demo site. It includes tests for various e-commerce functionalities such as product selection, cart management, form submissions, and validation of UI elements, showcasing Selenium’s web automation capabilities.
- Host: GitHub
- URL: https://github.com/darvinpatel/planitassessment
- Owner: darvinpatel
- License: mit
- Created: 2024-07-29T12:34:56.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-09-18T01:04:23.000Z (8 months ago)
- Last Synced: 2025-02-12T14:54:37.527Z (3 months ago)
- Topics: html-css-javascript, maven-pom, selenium, selenium-java, selenium-webdriver
- Language: HTML
- Homepage: http://jupiter.cloud.planittesting.com
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PlanitAssessment
This repository contains automated tests for the Planit Jupiter Toys demo website, created using Selenium WebDriver. The project demonstrates a comprehensive suite of test cases for key e-commerce functionalities, including product browsing, cart management, and form submissions.
## Features
- **Automated UI Testing**: End-to-end tests covering essential workflows such as product selection, cart operations, and form validation.
- **Cross-browser Compatibility**: Tests executed across multiple browsers to ensure a consistent user experience.
- **Page Object Model (POM)**: Utilized to structure and maintain the codebase, improving readability and maintainability.
- **Assertions**: Implemented to validate expected behavior and verify the accuracy of test results.
- **Detailed Reporting**: Generates detailed test execution reports for easier debugging and test result analysis.## Technology Stack
- **Selenium WebDriver**: For automating browser interactions.
- **Java**: Core language for writing test scripts.
- **JUnit/TestNG**: Test framework for organizing and running the tests.
- **Maven**: Build automation tool for managing dependencies and running tests.## Getting Started
1. **Clone the repository:**
```bash
git clone https://github.com/darvinpatel/PlanitAssessment.git
cd PlanitAssessment
2. **Install dependencies: Ensure you have Java and Maven installed. Run the following to install all dependencies:**
```bash
mvn clean install
3. **Run the tests: Execute the test suite using Maven:**
```bash
mvn test## Test Scenarious
The project covers the following scenarios:
1. Test case 1:
- From the home page go to contact page
- Click submit button
- Verify error messages
- Populate mandatory fields
- Validate errors are gone2. Test case 2:
- From the home page go to contact page
- Populate mandatory fields
- Click submit button
- Validate successful submission message
- Note: Run this test 5 times to ensure 100% pass rate3. Test case 3:
- Buy 2 Stuffed Frog, 5 Fluffy Bunny, 3 Valentine Bear
- Go to the cart page
- Verify the subtotal for each product is correct
- Verify the price for each product
- Verify that total = sum(sub totals)## Reporting
After test execution, a detailed test report will be generated. You can access the report in the target/surefire-reports directory.