Skip to content

nicopizar00/apitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Testing

This is a practice project for API Testing in NodeJS. It uses Mocha, Chai and Axios.

The tested API

{JSON}Placeholder is a simple API that allows us to upload and read jokes.

You can found the documentation here.

Test Scenario

GET Jokes

The goal is to certify we can read jokes, uploading a joke, and verifying then that is possible to read it.

Test Cases

  • POST a single type joke Correctly (OK).

  • POST a two part joke Correctly (OK).

  • POST a joke with no valid request.

  • GET a random joke.

  • GET a random joke of a specific category.

Execution

First is to set up the project

npm install

Then just run the project itself

npm run test

Simple ¯_(ツ)_/¯

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published