This is a task to Automate the OpenWeather API using Cypress and Mochawesome report, Please see below for the Test Case that are automated
Test Case Number | Test Case |
---|---|
TC01 | GET /air_pollution/history - 200 |
TC02 | GET /air_pollution/history - Invalid Latitude - 400 |
TC03 | GET /air_pollution/history - Invalid Longitude - 400 |
TC04 | GET /air_pollution/history - Invalid Start Time - 400 |
TC05 | GET /air_pollution/history - Invalid End Time - 400 |
TC06 | GET /air_pollution/history - No Location - 400 |
TC07 | GET /air_pollution/history - No Time - 400 |
TC08 | GET /air_pollution/history - invalid APP ID - 401 |
Test Case Number | Test Case |
---|---|
TC01 | GET /weather - 200 |
TC02 | GET /weather - Invalid Location - 404 |
TC03 | GET /weather - No Location - 400 |
TC04 | GET /weather - Invalid APP ID - 401 |
Note - These are one of the few to be automated
- clone the repo
npm install
oryarn install
CLI - Run CLI
npx cypress run
Cypress UI - Run on Cypress UI
yarn || npm test:chrome
- Cypress
- OpenWeather API
- Mochawsome