This project has the example code for an automation testing project for the Amazon e-commerce website using Selenium WebDriver Java, TestNG, Data driven framework, and Cucumber. The project aims to automate the testing of various scenarios on the Amazon website and ensure the website's functionality is not affected by any changes.
- Search for a product and verify the search results.
- Add a product to the cart and verify the cart.
- Remove a product from the cart and verify the cart.
- Sign in to the website and verify the account information.
- Sign out of the website and verify the sign out.
- Java 8 or higher.
- Selenium WebDriver.
- TestNG.
- cucumber.
- EdgeDriver.1 - Clone this repository to your local machine.
2 - nstall the required dependencies using Maven.
3 - Download the latest version of EdgeDriver and place it in the project's root directory.
4 - Open the config.properties file and update the browser property to edge.
5 - Running the TestsThe project generates a test report in HTML format. The report can be found in the target/surefire-reports directory after running the tests. Open the index.html file in a web browser to view the report.
Contributions are welcome! To contribute, please fork this repository, make changes, and submit a pull request.