Skip to content

osandadeshan/axios-api-automation-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axios API Automation Demo

Introduction

Axios is a promise based HTTP client for the browser and node.js.

Features

  • Make XMLHttpRequests from the browser
  • Make http requests from node.js
  • Supports the Promise API
  • Intercept request and response
  • Transform request and response data
  • Cancel requests
  • Automatic transforms for JSON data
  • Client side support for protecting against XSRF

How to use?

Pre-requisites:

  1. Node.js
    • Install at least v12.16.1 or higher as this is the oldest active LTS version.
    • Only releases that are or will become an LTS release are officially supported.
  2. VSCode
  3. Allure

Steps:

  1. Clone this project.
  2. Open the project in VSCode.
  3. Open the terminal in VSCode.
  4. Execute npm install to install the node modules.
  5. Execute npm test to run the tests.
  6. Execute npm run report to generate the allure report.

References

About

This is a sample project to demonstrate API automation using Axios.

Topics

Resources

Stars

Watchers

Forks