Coder Social home page Coder Social logo

zafir100100 / web-automation-with-cypress Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 634 KB

Our Cypress-based automated testing suite for the CURA Healthcare Service website includes tests for logging in, creating appointments, and verifying module functionality. It comes with a Mocha Awesome Report and a video demo.

JavaScript 47.85% HTML 52.15%
automation cypress javascript mochawesome-report web-automation

web-automation-with-cypress's Introduction

Web-Automation-with-Cypress

What is Automation?

Automation is the process of using software tools and scripts to perform tasks that would typically be done manually by a human. In the context of software testing, automation involves using tools to execute test cases and compare the actual results with the expected results automatically.

Why we use Cypress?

There are several reasons why you should use Cypress for web automation:

Fast and efficient: Cypress is built on a unique architecture that allows it to execute tests in the same run loop as the application being tested. This means that tests run faster and more efficiently than with other testing frameworks.

Real-time testing: Cypress provides a real-time view of your application as it runs, making it easy to debug issues as they arise.

Automatic waiting: Cypress automatically waits for the DOM elements to become available before interacting with them. This eliminates the need for explicit waits and reduces the likelihood of flaky tests.

Easy setup: Cypress has a simple and intuitive setup process. You can get up and running with Cypress quickly and easily.

Powerful API: Cypress provides a powerful API for interacting with your application. You can easily simulate user interactions, make HTTP requests, and interact with the DOM.

Continuous Integration: Cypress can be easily integrated with Continuous Integration (CI) tools like Jenkins, CircleCI, and TravisCI. This allows you to automate your testing process and catch issues before they make it to production.

Overall, Cypress is a powerful and efficient tool for web automation that can help you to test your application more effectively and catch issues early in the development process.

Technology used:

  • Cypress
  • Visual Studio Code
  • Javascript
  • cypress-mochawesome-reporter

How to run this project

  • Clone this project

  • First install dependencies: npm install

  • Then run the test: npx cypress run

Scenerio:

  1. Visit https://katalon-demo-cura.herokuapp.com/
  2. Login
  3. Make an appointment
  4. Facility - Seoul CURA Healthcare Center
  5. Check on "Apply for hospital readmission"
  6. Healthcare Program - Medicaid
  7. Select a visiting date
  8. Add a comment
  9. Book an Appointment
  10. Verify the appointment

Test case check list based on the Scenerio:

  • User Login with valid credential.
  • User makes an appointment.

Mocha Awesome Report:

Screenshot (19)

Automation Output Video:

AppointmentBookingTest.cy.js.mp4

web-automation-with-cypress's People

Contributors

zafir100100 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.