This project contains automated tests for login and user creation using API automation with Cypress.
Before running the tests, ensure that you have the following software and tools installed:
-
Clone this repository to your local machine:
`` shell git clone https://github.com/yourusername/your-repo.git
-
cd cypress-API-automation
-
npm install
Before running the tests, make sure to configure the base URL of your API. This can be done by editing the cypress.json
file.
Open the cypress.json
file and update the baseUrl
with the URL of your API,
``json
{
"baseUrl": "https://your-api-base-url.com"
To run the API automation tests, follow these steps:
-
Clone this repository to your local machine: ``shell git clone https://github.com/Fayrose96
-
Navigate to the project directory: ``shell cd cypress-API-automation
-
Install project dependencies: ``shell npm install
-
Open the Cypress Test Runner: ``shell npm run cypress: open
-
In the Cypress Test Runner, select the test file you want to run (e.g., "login.spec.js" or "create-user.spec.js").
-
The tests will execute, and you can view the results in the Cypress Test Runner interface.
After running the tests, you can find the test results, videos, and reports in the cypress/reports directory.