Skip to content

ahmedkhaled14/AutomationExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test-light

AutomationExercise ==> GUI Test Automation

📌 Automate different functionalities of an E-commerce website called "AutomationExercise"

Screenshot 2022-12-30 175750

  • 📝 The main Frameworks included in the project:

SHAFT Engine on the Top of:

Selenium Webdriver

TestNG

Allure Report

Extent Reports

Remote Execution { Selenium Grid4 & Docker Compose }

  • 🏗️ Project Design:

Page Object Model (POM) design pattern

Data Driven framework

Fluent design approach

Java Docs

  • 📄 Allure Report:

Screenshot allure Report

  • 📄 Extent Report:

extent-reports2222

  • 🔍️ Covered Test cases in this project :

✅Test Case 1: Register User

  1. Launch browser

  2. Navigate to url 'http://automationexercise.com' 3.✏️Verify that home page is visible successfully

  3. Click on 'Signup / Login' button

  4. Verify 'New User Signup!' is visible

  5. Enter name and email address

  6. Click 'Signup' button 8.✏️Verify that 'ENTER ACCOUNT INFORMATION' is visible

  7. Fill details: Title, Name, Email, Password, Date of birth

  8. Select checkbox 'Sign up for our newsletter!'

  9. Select checkbox 'Receive special offers from our partners!'

  10. Fill details: First name, Last name, Company, Address, Address2, Country, State, City, Zipcode, Mobile Number

  11. Click 'Create Account button' 14.✏️Verify that 'ACCOUNT CREATED!' is visible

  12. Click 'Continue' button 16.✏️Verify that 'Logged in as username' is visible

  13. Click 'Delete Account' button 18.✏️Verify that 'ACCOUNT DELETED!' is visible and click 'Continue' button

✅Test Case 2: Login User with correct email and password

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Signup / Login' button
  5. Verify 'Login to your account' is visible
  6. Enter correct email address and password
  7. Click 'login' button
  8. Verify that 'Logged in as username' is visible
  9. Click 'Delete Account' button
  10. Verify that 'ACCOUNT DELETED!' is visible

✅Test Case 3: Login User with incorrect email and password

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Signup / Login' button
  5. Verify 'Login to your account' is visible
  6. Enter incorrect email address and password
  7. Click 'login' button
  8. Verify error 'Your email or password is incorrect!' is visible

✅Test Case 4: Logout User

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Signup / Login' button
  5. Verify 'Login to your account' is visible
  6. Enter correct email address and password
  7. Click 'login' button
  8. Verify that 'Logged in as username' is visible
  9. Click 'Logout' button
  10. Verify that user is navigated to login page

✅Test Case 5: Register User with existing email

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Signup / Login' button
  5. Verify 'New User Signup!' is visible
  6. Enter name and already registered email address
  7. Click 'Signup' button
  8. Verify error 'Email Address already exist!' is visible

✅Test Case 6: Contact Us Form

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Contact Us' button
  5. Verify 'GET IN TOUCH' is visible
  6. Enter name, email, subject and message
  7. Upload file
  8. Click 'Submit' button
  9. Click OK button
  10. Verify success message 'Success! Your details have been submitted successfully.' is visible
  11. Click 'Home' button and verify that landed to home page successfully

✅Test Case 8: Verify All Products and product detail page

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Products' button
  5. Verify user is navigated to ALL PRODUCTS page successfully
  6. The products list is visible
  7. Click on 'View Product' of first product
  8. User is landed to product detail page
  9. Verify that detail detail is visible: product name, category, price, availability, condition, brand

✅Test Case 9: Search Product

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Products' button
  5. Verify user is navigated to ALL PRODUCTS page successfully
  6. Enter product name in search input and click search button
  7. Verify 'SEARCHED PRODUCTS' is visible
  8. Verify all the products related to search are visible

✅Test Case 10: Verify Subscription in home page

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Scroll down to footer
  5. Verify text 'SUBSCRIPTION'
  6. Enter email address in input and click arrow button
  7. Verify success message 'You have been successfully subscribed!' is visible

🏷️ NB: If you wish to use SHAFT with IntelliJ please apply these settings:

Run/Debug Configurations > Edit Configurations... > Templates > TestNG > Configuration > Listeners > Add all SHAFT_Engine Listeners [AlterSuite, InvokedMethod, Suite]