Skip to content

salmasyed1909/Selenium_siteTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento Automation Project

Overview

This project automates the testing of various functionalities on the Magento Software Testing Board's Luma website using Selenium, TestNG, DataProvider, and the Page Object Model (POM) design pattern. The functionalities include registration, sign-in, password change, adding addresses, adding products to the wishlist, and adding products to the cart.

Project Structure

  • src/main/java: Contains the main Java files for the project.

    • pages: Page Object Model classes representing the web pages.
    • tests: Test classes containing the test methods.
  • src/test/resources: Contains the test resources.

    • testdata: Test data files.
  • pom.xml: Maven configuration file.

  • testng.xml: TestNG configuration file.

Tools and Technologies

  • Java: Programming language (JDK 21).
  • Selenium WebDriver: For browser automation.
  • TestNG: Testing framework.
  • POM (Page Object Model): Design pattern for enhancing test maintenance and reducing code duplication.
  • Eclipse IDE: Integrated development environment.
  • Maven: Dependency management tool.

Getting Started

Prerequisites

  • Java JDK 21
  • Selenium WebDriver
  • TestNG
  • Eclipse IDE
  • Maven

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/magento-automation.git
  2. Open the project in Eclipse.

  3. Configure Maven to download the required dependencies:

    mvn clean install

Running Tests

  1. Navigate to the src/test/java directory.

  2. Run the desired test classes using TestNG.

Project Scenarios

  1. Registration:

    • Test creating an account with first name, last name, email, password, and confirm password.
    • Registration Test Code
  2. Sign-In:

  3. Change Password:

  4. Add Address:

  5. Wishlist:

  6. Add to Cart:

Data-Driven Testing

Test data for the scenarios are provided using DataProvider methods. The data provider methods supply the test data to the test methods.

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries or support, please contact Syed Salma at [email protected].


Feel free to adjust the links, email, and any other details to match your specific project setup and personal information.