https://github.com/ahmedkhaled14/mystore_testautomation
Automate different functionalities of an e-commerce website called My Store
https://github.com/ahmedkhaled14/mystore_testautomation
allure-report datadriven extentreport fluentdesign javadoc-documentation pageobjectmodel selenium shaft-engine test-automation testng
Last synced: 2 months ago
JSON representation
Automate different functionalities of an e-commerce website called My Store
- Host: GitHub
- URL: https://github.com/ahmedkhaled14/mystore_testautomation
- Owner: ahmedkhaled14
- Created: 2021-12-23T19:39:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T13:14:26.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T09:31:17.943Z (4 months ago)
- Topics: allure-report, datadriven, extentreport, fluentdesign, javadoc-documentation, pageobjectmodel, selenium, shaft-engine, test-automation, testng
- Language: Java
- Homepage: https://www.linkedin.com/feed/update/urn:li:activity:6999085250513375232/
- Size: 47.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# β¨ *My Store* ==> *GUI* *Test Automation* β¨
## π₯ Automate different functionalities of an E-commerce website called *"My Store"* π₯
### πWebsite URL: http://automationpractice.com/index.php
- ### π 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*
- ### ποΈ Covered Test cases in this project :
#### β 1. Test Case - Automate User Registration process.
Steps to Automate:
1. Open this url http://automationpractice.com/index.php
2. Click on sign in link.
3. Enter your email address in 'Create and account' section.
4. Click on Create an Account button.
5. Enter your Personal Information, Address and Contact info.
6. Click on Register button.
7. Validate that user is created.#### β 2. Test Case - Verify invalid email address error.
Steps to Automate:
1. Open this url http://automationpractice.com/index.php
2. Click on sign in link.
3. Enter invalid email address in the email box and click enter.
4. Validate that an error message is displaying saying "Invalid email address"#### β 3. Test Case - Verify error messages for mandatory fields.
Steps to Automate:
1. Open this url http://automationpractice.com/index.php
2. Click on sign in link.
3. Enter email address and click Register button.
4. Leave the mandatory fields (marked with *) blank and click Register button.
5. Verify that error has been displayed for the mandatory fields.#### β 4. Test Case - Automate 'Search Product' feature of the website.
Steps to Automate:
1. Open link http://automationpractice.com/index.php
2. Move your cursor over Women's link.
3. Click on sub menu 'T-shirts'
4. Get Name/Text of the first product displayed on the page.
5. Now enter the same product name in the search bar present on top of page and click search button.
6. Validate that same product is displayed on searched page with same details which were displayed on T-Shirt's page.#### β 5. Test Case - Automate end-to-end "Buy Product" feature of the website.
Steps to Automate:
1. Open link http://automationpractice.com/index.php
2. Login to the website.
3. Move your cursor over Women's link.
4. Click on sub menu 'T-shirts'.
5. Mouse hover on the second product displayed.
6. 'More' button will be displayed, click on 'More' button.
7. Increase quantity to 2.
8. Select size 'L'
9. Select color.
10. Click 'Add to Cart' button.
11. Click 'Proceed to checkout' button.
12. Complete the buy order process till payment.
13. Make sure that Product is ordered.#### β 6. Test Case - Verify that 'Add to Wishlist' only works after login.
Steps to Automate:
1. Open link http://automationpractice.com/index.php
2. Move your cursor over Women's link.
3. Click on sub menu 'T-shirts'.
4. Mouse hover on the second product displayed.
5. 'Add to Wishlist' will appear on the bottom of that product, click on it.
6. Verify that error message is displayed 'You must be logged in to manage your wish list.'#### β 7. Test Case - Verify that Total Price is reflecting correctly if user changes quantity on 'Shopping Cart Summary' Page.
Steps to Automate:
1. Open link http://automationpractice.com/index.php
2. Login to the website.
3. Move your cursor over Women's link.
4. Click on sub menu 'T-shirts'.
5. Mouse hover on the second product displayed.
6. 'More' button will be displayed, click on 'More' button.
7. Make sure quantity is set to 1.
8. Select size 'M'
9. Select color of your choice.
10. Click 'Add to Cart' button.
11. Click 'Proceed to checkout' button.
12. Change the quantity to 2.
13. Verify that Total price is changing and reflecting correct price.
Similar way you can add few more test cases.#### π·οΈ 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]