Cypress_API_and_Web_Testing
This project is implemented in Cypress, Javascript and Cucumber.
- Writing E2E tests for a checkout process (tests/e2e)
- e2e_tests.feature - This file contains scenario and steps for GUI automation.
- Testing some API endpoints (tests/api)
- api_tests.feature - This file contains scenarios and steps for testing API used cases.
Pre-Requisites:
- npm must be installed in execution machine.
- Marvel API's public and private key is required.
How to Ecexute Scripts:
- Please add your public and private keys in below variables in api_tests.js file(./cypress/integration/api_tests/api_tests.js):
- const publicKey
- const privateKey
- To install cypress and all dependencies, execute below mentioned command:
npm install
- To execute all scripts in headless mode, execute below mentioned command:
npm test
- To execute scripts from cypress playground, execute below command and click on desired feature file:
./node_modules/.bin/cypress open