GithubHelp home page GithubHelp logo

bemuh / cypresschallenge3 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 49 KB

This repository hosts a Cypress automation script for the DemoQA Bookstore. The script logs into the bookstore, selects and adds a book, verifies it in the user's profile, deletes the book, and confirms its removal. It serves as a hands-on example of web automation, showcasing various user interactions and web element handling.

JavaScript 100.00%
automation-testing bookstoreapp cypress e2e-testing javascript quality-assurance web-application-testing

cypresschallenge3's Introduction

DemoQA Bookstore Automation

This project contains automated scripts to test various actions on the DemoQA website, specifically focused on the bookstore section. The steps involved in the test include visiting the website, logging in, adding a book to the profile, and ensuring that the book was correctly added and can be deleted.

What the Project Does

  1. Visit DemoQA.
  2. Navigate to the bookstore page.
  3. Log in using credentials.
  4. Check that the user is logged in to the correct account.
  5. Within the bookstore, navigate to the Book Store section.
  6. Add a random book from the ones available.
  7. Within the bookstore, navigate to the Profile section.
  8. Check that the previously added book is the same as the one shown in the profile.
  9. Delete the book.
  10. Check that the book was actually deleted from the profile.

How to Run the Project Locally

Prerequisites

  • Ensure that you have Node.js installed.
  • Cypress should be installed as part of the project dependencies.

Steps

  1. Clone the Repository: Use git clone to clone the project to your local machine.
  2. Navigate to the Project Folder: Use cd to navigate into the project directory.
  3. Install Dependencies: Run npm install to install all necessary dependencies.
  4. Open Cypress: Use npx cypress open to open the Cypress Test Runner.
  5. Run the Test: Click on the specific test file within the Cypress window to run the tests.

Note

Make sure to use your own credentials when logging in to the bookstore application.

cypresschallenge3's People

Contributors

bemuh avatar

Watchers

 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.