This repository contains automated tests for the Pet Store website. The tests are implemented using Java Selenium, TestNG, Data Provider, and Page Object Model.
Pet_Store_Tests.webm
This test verifies the search functionality of the Pet Store website. It performs a search for the keyword "cat" and checks if the displayed items contain the word "cat".
This test verifies the selection of a random animal category from the Pet Store website. It randomly selects a pet type from the available options and checks if the number of displayed items is as expected.
This test verifies the selection of a random dog item from the Pet Store website. It navigates to the dogs page, selects a random product, chooses a random color and size, and adds the item to the cart.
This test verifies the checkout process on the Pet Store website. It fills the checkout form with dummy information, proceeds to the payment page, takes a screenshot of the payment page, and checks if the payment header is displayed.
This test verifies the contact form submission on the Pet Store website. It fills the contact form with dummy information and submits it. It then checks if the success message is displayed.
To run the tests, ensure that you have the following software installed:
- IntelliJ IDEA
- Java Development Kit version 20 (JDK 20)
- TestNG testing framework
- Selenium WebDriver
- Clone this repository:
git clone https://github.com/software-ace/Pet-Store.git
- Navigate to the project directory:
cd Pet-Store
- Open Intellij Idea
idea .
- Open the
testing.xml
file - Run the tests:
Right Click >> Run testing.xml
This project is licensed under the MIT License - see the LICENSE file for details.