This project automates test cases for the SauceDemo e-commerce website using Java and Selenium WebDriver. It is designed to test various functionalities of the website, including login, product sorting, adding items to the cart, and purchase processes.
- Java: Programming language for test scripts.
- Selenium WebDriver: For browser automation.
- TestNG: Test framework for organizing and running tests.
- Maven: For dependency management.
- Clone the repository:
git clone https://github.com/Red-Cloud2000/DEPI_SauceDemo_Automation_Project.git
- Import the project into your preferred IDE.
- Download necessary dependencies using Maven.
- Update (testFolderPath) value in config file under config folder (you will find helpful information there).
- Configure
testng.xml
for your test requirements.
- To execute tests, run the
testng.xml
file directly from the IDE.
- src: Contains test scripts and page object classes.
- test-output: Stores TestNG reports and logs.
Contributions are welcome! Please fork the repository and submit a pull request for review.