Skip to content

About

Post API Testing W/Node

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APITesting

Post API Testing W/Node

How to use:

  1. Install Node.js
  2. Add your project's tests.json file to the same folder as main.js
  3. Open terminal or cmd on the project's folder
  4. Run node main.js

The main.js file will run the tests and print the results in the console.

##tests.json format

  {
    "url":"127.0.0.1",
    "name":"APITesting",
    "port":8888,
    "testgroups":
    [
      {
        "groupname":"User API",
        "tests":
        [
          {
            "name":"User Register",
            "uri":"user/register",
            "input":
            {

              "username":"test",
              "password":"x"
            },
            "output":
            {
              "responseStatus":"OK"
            }
          }
        ]
      }
    ]
  }

About

Post API Testing W/Node

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages