Skip to content

salauddinalfaruq/API-testing-with-axios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-testing-with-axios

Description

  • Login to the collection with valid email and password and generate token.
  • Get user list with valid info.
  • Create,Search,Update and Delete user.

Tools,Framework and Language

  • axios
  • mocha,chai,mochawesome
  • Visual Studio Code
  • javascript

How to run the project

Prerequisite

  • VS Code

  • Open the project in VS Code give the command to install dependencis mocha,chai,axios,fs,faker,shelljs

    npm init -y

    npm i mocha chai to install mocha and chai

    npm i axios to install axios

    npm i fs for file write

    npm i @faker-js/faker for generating random data

    npm i shelljs for run the project from terminal dynamically

Steps to run

  • Clone the repo

  • Give command in root directory

    node test file (filename) or

    npx mocha filename --timeout=30000

Report

  • For generating report install mochawesome and generate a file mochawesome.js and clone code mochawesome.js.

    For install mochawesome

    npm i mochawesome

    Set mochawesome.js file to package.json scripts and give command

    npm start file (filename)

Report Overview report-overview

Detail detail-1

Detail detail-2

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published