Skip to content

EbrahimSalem1/Automation-Frame-Work

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Automation Frame-Work

using Selenium with java - Page Object Model (POM) - Data Driven Test (Data Model) - Extent Report - CI/CD Github Actions - Docker

#Test Case 1: Register 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 'New User Signup!' is visible
  6. Enter name and email address
  7. Click 'Signup' button
  8. Verify that 'ENTER ACCOUNT INFORMATION' is visible
  9. Fill details: Title, Name, Email, Password, Date of birth
  10. Select checkbox 'Sign up for our newsletter!'
  11. Select checkbox 'Receive special offers from our partners!'
  12. Fill details: First name, Last name, Company, Address, Address2, Country, State, City, Zipcode, Mobile Number
  13. Click 'Create Account button'
  14. Verify that 'ACCOUNT CREATED!' is visible
  15. Click 'Continue' button
  16. Verify that 'Logged in as username' is visible
  17. Click 'Delete Account' button
  18. Verify that 'ACCOUNT DELETED!' is visible and click 'Continue' button

#Test Case 2: 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 3: 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 4: 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 5: 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 6: Verify Test Cases Page

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that home page is visible successfully
  4. Click on 'Test Cases' button
  5. Verify user is navigated to test cases page successfully

Test Case 7: 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 8: 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 9: 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

Test Case 10: View Category Products

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Verify that categories are visible on left side bar
  4. Click on 'Women' category
  5. Click on any category link under 'Women' category, for example: Dress
  6. Verify that category page is displayed and confirm text 'WOMEN - TOPS PRODUCTS'
  7. On left side bar, click on any sub-category link of 'Men' category
  8. Verify that user is navigated to that category page

Test Case 11: Search Products and Verify Cart After Login

  1. Launch browser
  2. Navigate to url 'http://automationexercise.com'
  3. Click on 'Products' button
  4. Verify user is navigated to ALL PRODUCTS page successfully
  5. Enter product name in search input and click search button
  6. Verify 'SEARCHED PRODUCTS' is visible
  7. Verify all the products related to search are visible
  8. Add those products to cart
  9. Click 'Cart' button and verify that products are visible in cart
  10. Click 'Signup / Login' button and submit login details
  11. Again, go to Cart page
  12. Verify that those products are visible in cart after login as well

Test Case 12: 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published