This project automates the process of logging into Amazon Egypt, searching for newly listed items with free shipping, and adding products priced above 15,000 EGP to the cart.
- Selenium (Java)
- Maven
- TestNG
- GitHub
Before running this project, ensure the following are installed:
- Java Development Kit (JDK) (Version 8 or higher)
- Selenium WebDriver
- Maven (Build and dependency management)
- IDE (IntelliJ IDEA or Eclipse)
- Git (For version control)
- Login Automation: Logs in to Amazon Egypt with provided credentials.
- Search and Filter Products: Searches for new items with free shipping.
- Price Filtering: Adds items priced above 15,000 EGP to the cart.
- Cart Validation: Verifies the total cost of the items in the cart.
- Custom Reporting: Generates test execution reports.
Make sure Git is installed, then open a terminal and run:
git clone https://github.com/ttohamy/amazon.git
Navigate to the project directory and execute:
mvn clean install
This downloads and installs all required dependencies specified in the pom.xml file.
Since I am using the config.properties file to store critical information, please ensure that you follow these steps
- Rename
config-sample.properties
toconfig.properties
. - Update the file with your Amazon login credentials.
Run the following command in the terminal:
mvn clean test
- Open the project in your IDE.
- Locate the TestNG.xml file.
- Right-click and select Run.
- Test results are generated automatically using Extent Reports.
- Open the report in your browser by navigating to:
test-output/ExtentReport/TestExecutionReport.html
For any queries or support, reach out to "[email protected]".