pirasanthan-jesugeevegan / amt-cypress-weatherAPI

This is a task to Automate the OpenWeather API using Cypress and Mochawesome report, Please see below for the Test Case that are automated

Home Page:https://pirasanthan-jesugeevegan.github.io/amt-cypress-weatherAPI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenWeather API

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 Scenario: Get Air Pollution

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 Scenario: Get Current Weather

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

Install

  1. clone the repo
  2. npm install or yarn install

Run tests

CLI - Run CLI

npx cypress run

Cypress UI - Run on Cypress UI

yarn || npm test:chrome

Technology used:

  • Cypress
  • OpenWeather API
  • Mochawsome

DEMO

Live report - Schedule to run everyday

About

This is a task to Automate the OpenWeather API using Cypress and Mochawesome report, Please see below for the Test Case that are automated

https://pirasanthan-jesugeevegan.github.io/amt-cypress-weatherAPI/


Languages

Language:JavaScript 100.0%