This project demonstrates automated testing of the Shop Demoqa website using Selenium and JUnit. The goal is to ensure the reliability and robustness of various functionalities on the e-commerce platform.
- Overview
- Test Cases
- Technologies Used
- Project Structure
- Setup Instructions
- Running Tests
- Contributing
- License
- Contact
This project contains a suite of automated tests for the Shop Demoqa website, covering key functionalities such as login, registration, product search, and cart management. The tests are designed to validate both positive and negative scenarios to ensure comprehensive coverage.
The project includes various test cases to ensure the functionality and reliability of the Shop Demoqa website. Below is a summary of the test categories:
- Verify Successful Login With A Valid Username And Password.
- Verify Login Failure With An Empty Username.
- Verify Login Failure With An Empty Password.
- Verify Login Failure With A Valid Username And An Invalid Password.
- Verify Login Failure With An Invalid Username And A Valid Password.
- Verify Login Failure With An Invalid Username And An Invalid Password.
- Verify Successful Registration With Valid Information.
- Verify Registration Failure With Empty Username.
- Verify Registration Failure With Empty Email.
- Verify Registration Failure With Empty Password.
- Verify Registration Failure With Weak Password.
- Verify Registration Failure With Duplicated Email.
- Should Be Able To Create An Account With Duplicated Username.
- Should Not Be Able To Create An Account With Unsupported Characters.
- Verify Successful Search For A Valid Product.
- Verify Search Failure With Empty Value. [BUG]
- Verify Successful Search With Exact Product Name.
- Verify Correct Display of Product Name on Product Page.
- Add Product to Cart Successfully.
- Verify Unable to Add Product to Cart Without Variants.
- Verify Increasing Product Count.
- Verify Decreasing Product Count.
- Verify Adding Product to Favorites.
- Verify Display of Related Products Section on Product Page.
- Verify Presence of Additional Information Section on Product Page.
- Should Clear All Variants With Clear Button.
- Verify Current Page is Cart Page.
- Clear Cart - Verify Empty Message.
- Update Cart - Verify Success Message.
- Continue Shopping - Verify Redirect.
- Apply Invalid Coupon - Verify No Discount.
- Proceed to Checkout - Verify Redirect.
- Successfully Remove Product from Cart.
- Should Be on Wishlist Page.
- Successfully Clear All Products on Wishlist.
- Successfully Add Product To Cart Page. [BUG]
For more detailed test cases, please refer to the Google Spreadsheet.
The following libraries and tools are used in this project:
- JUnit for writing and running tests.
- Selenium Chrome Driver for browser automation.
- Selenium Java for interacting with web elements.
- WebDriverManager for managing browser drivers.
├── pom.xml
├── README.md
└── src
├── main
│ └── java
│ └── com
│ └── shop
│ └── demoqa
│ └── pages
│ ├── BasePage.java
│ ├── CartPage.java
│ ├── HomePage.java
│ ├── LoginPage.java
│ ├── ProductPage.java
│ ├── RegisterPage.java
│ ├── SearchPage.java
│ └── WishlistPage.java
└── test
└── java
└── com
└── shop
└── demoqa
└── tests
├── BaseTest.java
├── CartTest.java
├── LoginTest.java
├── ProductTest.java
├── RegisterTest.java
├── SearchTest.java
└── WishlistTest.java
Follow these steps to set up and run the project:
- Clone the repository:
git clone https://github.com/taygunkara/shop-demoqa-test.git
cd shop-demoqa-test
- Install dependencies: Ensure you have Maven installed. Then run:
mvn clean install
You can run the tests using Maven. To execute all tests, use the following command:
mvn test
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or further information, please contact me at: