The project was created to practice test automation skills using the Selenium (Java) framework, utilizing skills learned in a course on the Udemy platform. The website under test is a website specifically designed for automated testing. The project contains a total of 26 automated tests, created based on test cases defined by the site's developers. After running and executing the tests, using the proper command, a test report can be generated, which describes in detail the activities performed and the statuses of each test.
- IntelliJ IDEA
- Maven
- Selenium WebDriver
- TestNG
- Page Object Model
- Fluent Interface
- Data-Driven approach
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Signup / Login' button
- Verify 'New User Signup!' is visible
- Enter name and email address
- Click 'Signup' button
- Verify that 'ENTER ACCOUNT INFORMATION' is visible
- Fill details: Title, Name, Email, Password, Date of birth
- Select checkbox 'Sign up for our newsletter!'
- Select checkbox 'Receive special offers from our partners!'
- Fill details: First name, Last name, Company, Address, Address2, Country, State, City, Zipcode, Mobile Number
- Click 'Create Account button'
- Verify that 'ACCOUNT CREATED!' is visible
- Click 'Continue' button
- Verify that 'Logged in as username' is visible
- Click 'Delete Account' button
- Verify that 'ACCOUNT DELETED!' is visible and click 'Continue' button
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Signup / Login' button
- Verify 'Login to your account' is visible
- Enter correct email address and password
- Click 'login' button
- Verify that 'Logged in as username' is visible
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Signup / Login' button
- Verify 'Login to your account' is visible
- Enter incorrect email address and password
- Click 'login' button
- Verify error 'Your email or password is incorrect!' is visible
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Signup / Login' button
- Verify 'Login to your account' is visible
- Enter correct email address and password
- Click 'login' button
- Verify that 'Logged in as username' is visible
- Click 'Logout' button
- Verify that user is navigated to login page
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Signup / Login' button
- Verify 'New User Signup!' is visible
- Enter name and already registered email address
- Click 'Signup' button
- Verify error 'Email Address already exist!' is visible
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Contact Us' button
- Verify 'GET IN TOUCH' is visible
- Enter name, email, subject and message
- Upload file
- Click 'Submit' button
- Click OK button
- Verify success message 'Success! Your details have been submitted successfully.' is visible
- Click 'Home' button and verify that landed to home page successfully
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Test Cases' button
- Verify user is navigated to test cases page successfully
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Products' button
- Verify user is navigated to ALL PRODUCTS page successfully
- The products list is visible
- Click on 'View Product' of first product
- User is landed to product detail page
- Verify that detail detail is visible: product name, category, price, availability, condition, brand
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click on 'Products' button
- Verify user is navigated to ALL PRODUCTS page successfully
- Enter product name in search input and click search button
- Verify 'SEARCHED PRODUCTS' is visible
- Verify all the products related to search are visible
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Scroll down to footer
- Verify text 'SUBSCRIPTION'
- Enter email address in input and click arrow button
- Verify success message 'You have been successfully subscribed!' is visible
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click 'Cart' button and scroll down to footer
- Verify text 'SUBSCRIPTION'
- Enter email address in input and click arrow button
- Verify success message 'You have been successfully subscribed!' is visible
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click 'Products' button
- Hover over first product and click 'Add to cart'
- Click 'Continue Shopping' button
- Hover over second product and click 'Add to cart'
- Click 'View Cart' button
- Verify both products are added to Cart
- Verify their prices, quantity and total price
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click 'View Product' for any product on home page
- Verify product detail is opened
- Increase quantity to 4
- Click 'Add to cart' button
- Click 'View Cart' button
- Verify that product is displayed in cart page with exact quantity
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Add products to cart
- Click 'Cart' button
- Verify that cart page is displayed
- Click Proceed To Checkout
- Click 'Register / Login' button
- Fill all details in Signup and create account
- Verify 'ACCOUNT CREATED!' and click 'Continue' button
- Verify ' Logged in as username' at top
- Click 'Cart' button
- Click 'Proceed To Checkout' button
- Verify Address Details and Review Your Order
- Enter description in comment text area and click 'Place Order'
- Enter payment details: Name on Card, Card Number, CVC, Expiration date
- Click 'Pay and Confirm Order' button
- Verify success message 'Congratulations! Your order has been confirmed!'
- Click 'Delete Account' button
- Verify 'ACCOUNT DELETED!' and click 'Continue' button
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click 'Signup / Login' button
- Fill all details in Signup and create account
- Verify 'ACCOUNT CREATED!' and click 'Continue' button
- Verify ' Logged in as username' at top
- Add products to cart
- Click 'Cart' button
- Verify that cart page is displayed
- Click Proceed To Checkout
- Verify Address Details and Review Your Order
- Enter description in comment text area and click 'Place Order'
- Enter payment details: Name on Card, Card Number, CVC, Expiration date
- Click 'Pay and Confirm Order' button
- Verify success message 'Congratulations! Your order has been confirmed!'
- Click 'Delete Account' button
- Verify that 'ACCOUNT DELETED!' and click 'Continue' button
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Click 'Signup / Login' button
- Fill email, password and click 'Login' button
- Verify 'Logged in as username' at top
- Add products to cart
- Click 'Cart' button
- Verify that cart page is displayed
- Click Proceed To Checkout
- Verify Address Details and Review Your Order
- Enter description in comment text area and click 'Place Order'
- Enter payment details: Name on Card, Card Number, CVC, Expiration date
- Click 'Pay and Confirm Order' button
- Verify success message 'Congratulations! Your order has been confirmed!'
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that home page is visible successfully
- Add products to cart
- Click 'Cart' button
- Verify that cart page is displayed
- Click 'X' button corresponding to particular product
- Verify that product is removed from the cart
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Verify that categories are visible on left side bar
- Click on 'Women' category
- Click on any category link under 'Women' category, for example: Dress
- Verify that category page is displayed and confirm text 'WOMEN - DRESS PRODUCTS'
- On left side bar, click on any sub-category link of 'Men' category
- Verify that user is navigated to that category page
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Click on 'Products' button
- Verify that Brands are visible on left side bar
- Click on any brand name
- Verify that user is navigated to brand page and brand products are displayed
- On left side bar, click on any other brand link
- Verify that user is navigated to that brand page and can see products
- Launch browser
- Navigate to url 'http://automationexercise.com'
- Click on 'Products' button
- Verify user is navigated to ALL PRODUCTS page successfully
- Enter product name in search input and click search button
- Verify 'SEARCHED PRODUCTS' is visible
- Verify all the products related to search are visible
- Add those products to cart
- Click 'Cart' button and verify that products are visible in cart
- Click 'Signup / Login' button and submit login details
- Again, go to Cart page
- Verify that those products are visible in cart after login as well
- Remove all products that have been added
- Verify 'Cart is empty! Click here to buy products.' is visible
