🌐Website URL: http://automationpractice.com/index.php
SHAFT Engine on the Top of:
Selenium Webdriver
TestNG
Allure Report
Extent Reports
Remote Execution { Selenium Grid4 & Docker Compose }
Page Object Model (POM) design pattern
Data Driven framework
Fluent design approach
Java Docs
Steps to Automate:
- Open this url http://automationpractice.com/index.php
- Click on sign in link.
- Enter your email address in 'Create and account' section.
- Click on Create an Account button.
- Enter your Personal Information, Address and Contact info.
- Click on Register button.
- Validate that user is created.
Steps to Automate:
- Open this url http://automationpractice.com/index.php
- Click on sign in link.
- Enter invalid email address in the email box and click enter.
- Validate that an error message is displaying saying "Invalid email address"
Steps to Automate:
- Open this url http://automationpractice.com/index.php
- Click on sign in link.
- Enter email address and click Register button.
- Leave the mandatory fields (marked with *) blank and click Register button.
- Verify that error has been displayed for the mandatory fields.
Steps to Automate:
- Open link http://automationpractice.com/index.php
- Move your cursor over Women's link.
- Click on sub menu 'T-shirts'
- Get Name/Text of the first product displayed on the page.
- Now enter the same product name in the search bar present on top of page and click search button.
- Validate that same product is displayed on searched page with same details which were displayed on T-Shirt's page.
Steps to Automate:
- Open link http://automationpractice.com/index.php
- Login to the website.
- Move your cursor over Women's link.
- Click on sub menu 'T-shirts'.
- Mouse hover on the second product displayed.
- 'More' button will be displayed, click on 'More' button.
- Increase quantity to 2.
- Select size 'L'
- Select color.
- Click 'Add to Cart' button.
- Click 'Proceed to checkout' button.
- Complete the buy order process till payment.
- Make sure that Product is ordered.
Steps to Automate:
- Open link http://automationpractice.com/index.php
- Move your cursor over Women's link.
- Click on sub menu 'T-shirts'.
- Mouse hover on the second product displayed.
- 'Add to Wishlist' will appear on the bottom of that product, click on it.
- 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:
- Open link http://automationpractice.com/index.php
- Login to the website.
- Move your cursor over Women's link.
- Click on sub menu 'T-shirts'.
- Mouse hover on the second product displayed.
- 'More' button will be displayed, click on 'More' button.
- Make sure quantity is set to 1.
- Select size 'M'
- Select color of your choice.
- Click 'Add to Cart' button.
- Click 'Proceed to checkout' button.
- Change the quantity to 2.
- Verify that Total price is changing and reflecting correct price. Similar way you can add few more test cases.
Run/Debug Configurations > Edit Configurations... > Templates > TestNG > Configuration > Listeners > Add all SHAFT_Engine Listeners [AlterSuite, InvokedMethod, Suite]