Skip to content

API Test framework using axios npm package with TypeScript and mocha framework

Notifications You must be signed in to change notification settings

sadabnepal/APIAxiosMochaTypeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Test Automation framework

API Test Automation is mocha framework to perform API testing using axios npm package.

Requirements:

NodeJs VSCode

Getting Started:

Clone Repository

1. git clone https://github.com/sadabnepal/APIAxiosMochaTypeScript.git
2. Navigate to APIAxiosMochaTypeScript

Install the dependencies

npm install

API Sources

https://reqres.in/api

Run tests and Generate Report

npm test  [run all tests]

Key Features:

- Axios Library
- Mochawesome Report
- Export response to json file
- Mocha framework to organize tests

Folder structure:

├───src
|    ├───config
|    ├───helper
|    ├───services
|    └───test
├───.env.example
├───.gitignore
├───package-lock.json
├───package.json
├───README.md
└───tsconfig.json

Sample Report:

image

About

API Test framework using axios npm package with TypeScript and mocha framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published