Skip to content

Smartplacemx/APITesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •