An open API service indexing awesome lists of open source software.

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.

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 gone

2. 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 rate

3. 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.