Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shakhawat1998/api_automation_on_automation_exercise_using_axios
This project focuses on validating the functionality of two APIs provided by the Automation Exercise platform: Brand List and User Login Verification. These APIs are tested to ensure their behavior aligns with expected outcomes, contributing to the platform's reliability and user experience.
https://github.com/shakhawat1998/api_automation_on_automation_exercise_using_axios
axios javascript mocha tekarsh
Last synced: 19 days ago
JSON representation
This project focuses on validating the functionality of two APIs provided by the Automation Exercise platform: Brand List and User Login Verification. These APIs are tested to ensure their behavior aligns with expected outcomes, contributing to the platform's reliability and user experience.
- Host: GitHub
- URL: https://github.com/shakhawat1998/api_automation_on_automation_exercise_using_axios
- Owner: Shakhawat1998
- Created: 2024-12-16T06:27:18.000Z (21 days ago)
- Default Branch: main
- Last Pushed: 2024-12-16T07:51:07.000Z (21 days ago)
- Last Synced: 2024-12-16T08:22:13.424Z (21 days ago)
- Topics: axios, javascript, mocha, tekarsh
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API_Automation_On_Automation_Exercise_Using_Axios
**This project focuses on validating the functionality of two APIs provided by the Automation Exercise platform: Brand List and User Login Verification. These APIs are tested to ensure their behavior aligns with expected outcomes, contributing to the platform's reliability and user experience.**
## Technology Used:
- Axios
- Java Script
- Visual Studio Code
- Mochawesome## How to run this project:
- Clone this project
- hit the following command: ```npm run test```
- for Mochawesome Report: ```--reporter mochawesome --reporter-options reportDir=Reports,reportFilename=report.html```## Test Scenarios
### **Test 1: Validate Brand List**
- **Endpoint**: `https://automationexercise.com/api/brandsList`
- **Method**: `GET`
- **Tests**:
1. Verify that the response contains the brands:
- Polo
- Babyhug
- Biba
2. Verify that the response does **not** contain the brands:
- Heineken
- BMW
- Razor---
### **Test 2: Verify User Login**
- **Endpoint**: `https://automationexercise.com/api/verifyLogin`
- **Method**: `POST`
- **Request Parameters** (in form-data format):
1. `email`
2. `password`
- **Tests**:
1. Use the email and password (as used in the UI Testing section).
2. Verify that the response message is: **“User exists!”**
## Mochawesome Report:
![Tekarsh_API_Report](https://github.com/user-attachments/assets/41eb3eac-0010-42a8-a73b-1c0f450569f9)## Video Output:
https://github.com/user-attachments/assets/bba7edf4-809c-46f2-a35b-bbc09a0a7fe3