This is a task to Automate http://automationpractice.com/index.php website using Cypress and Cucumber with Mochawesome report, Please see below for the Test Case that are automated
Test Case 1 - Automate End to End Buy Order functionality.
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.
Test Case 2 - Verify that 'Add to Wishlist' only works after login.
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 wishlist.'
Test Case 3 - 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. Note - These are one of the few to be automated
- Clone the repo
npm install
oryarn install
CLI - Run CLI
npx cypress run
Cypress UI - Run on Cypress UI
yarn || npm test:chrome
Live report - Schedule to run everyday
- Cypress
- Cucumber
- Mochawsome