Skip to content

AbuBakkar32/cypress-fully-automation-site

cypress-fully-automation-site

This is a automationexercise website that is used for the automation test for this site.

Installation

clone the repository and run the following command to install the dependencies

npm install

Usage

To run the test, run the following command

npm run cy:run

To open the test in browser, run the following command

npm run cy:open

To run cypress cloud, run the following command

npm run cy:run:cloud

demo3.png

demo.png

demo1.png

Features:

  • End-to-End Testing: Automate your end-to-end testing scenarios to ensure the robustness of your web application.
  • Comprehensive Test Coverage: Cover various aspects of your application, including UI interactions, form submissions, API calls, and more.
  • Easy Setup: Get started quickly with simple setup instructions and an intuitive directory structure.
  • Customizable Tests: Tailor the tests according to your application's requirements using Cypress's flexible testing capabilities.
  • Continuous Integration: Integrate seamlessly with popular CI/CD platforms to automate testing workflows.

Test Cases List

  1. Register User
  2. Login User with correct email and password
  3. Login User with incorrect email and password
  4. Logout User
  5. Register User with existing email
  6. Contact Us Form
  7. Verify Test Cases Page
  8. Verify All Products and product detail page
  9. Search Product
  10. Verify Subscription in home page
  11. Verify Subscription in Cart page
  12. Add Products in Cart
  13. Verify Product quantity in Cart
  14. Place Order: Register while Checkout
  15. Place Order: Register before Checkout
  16. Place Order: Login before Checkout
  17. Remove Products From Cart
  18. View Category Products
  19. View & Cart Brand Products
  20. Search Products and Verify Cart After Login
  21. Add review on product
  22. Add to cart from Recommended items
  23. Verify address details in checkout page
  24. Download Invoice after purchase order
  25. Verify Scroll Up using 'Arrow' button and Scroll Down functionality
  26. Verify Scroll Up without 'Arrow' button and Scroll Down functionality

Folder Structure

  1. fixtures: Contains the test data
  2. e2e: Contains the test files
  3. support: Contains the custom commands and other support files
  4. screenshot: Contains the screenshot of the failed test cases
  5. videos: Contains the video of the test cases
  6. reports: Contains the reports of the test cases

Cypress Dashboard

The test cases are also available in the cypress dashboard. The link is here

Resources:

  1. Cypress Documentation: Explore Cypress's official documentation for in-depth guides and examples.
  2. Cypress Best Practices: Learn best practices for writing efficient and maintainable Cypress tests.
  3. GitHub Repository: Fork and star the repository to stay updated with the latest developments.

Apache License

This project is licensed under the Apache License - see the (LICENSE) file for details.

  1. Create a new job
  2. Add the following commands to the job:

Run Project In Cypress Cloud

npm install
npm cypress run --record --key [Sceret Key]