Skip to content

jeffdev7/products-api-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress Automated Test Suite

Overview

This repository contains an automated test suite using Cypress. The purpose of these tests is to verify the functionality of the product-api endpoints to ensure they meet the expected behaviors.

Prerequisites

  • Node.js and npm (Ensure you have Node.js v12 or above)
  • Cypress: Installed as a dev dependency in this project

Environment Configuration

Create a file cypress.env.json in the root and it should look something like this:


{
  "url_api": "https://api.yourservice.com/api/"
}

Running Tests

You can run the Cypress tests in two modes:

  • Cypress Test Runner for debugging and developing tests
    • Command: npx cypress open
  • Headless Mode for CI/CD or fast local test runs
    • Command: npx cypress run

About

Automated tests for products-api

Resources

Stars

Watchers

Forks