api-testing-tool

api testing, test api, api, test, tool

Usage no npm install needed!

<script type="module">
  import apiTestingTool from 'https://cdn.skypack.dev/api-testing-tool';
</script>

README

api-testing-tool

api-testing-tool is a testing tool which help you auto test all api with your testcase. You can use hudson... to schedule test it

Features:

  • Create testcase with json config
  • Inject variable in testcase to re-use in api (global, response variable...)
  • Inject api template to re-use in testcase
  • Support debug, validate, re-call api to ensure that your api services are fine
  • Support upload multiple files
  • Calculate execution time to run for each other and all
  • Support to export to html document which is APIs specific document
  • Support smart declare document to re-use, less step when you change or update document. Can update customize type in doc by add <> at the first line in content
  • Update write log version which you updated on new document
  • GUI is beautiful, easy to use
  • You can write and inject your module to check or do something else
  • You can temporary disabled some api without remove it in testcase
  • In case, your data need a time to sync before call the next api, we support it too
  • Can pick browser to open when test

api-testing-tool is testing tool which use javascript is base. So you can write testcase, customize by javascript

Installation

Api-testing-tool requires Node.js v4+ to run.

Download and extract the latest pre-built release.

Install the dependencies and devDependencies and start the server.

$ cd api-testing-tool
$ npm install

open testing server which help response our request

$ npm start

play testcase demo

$ npm test demo

Create new project to use in your project

$ npm run gen "PROJECT NAME"

Todos

  • Write Testcase
  • Run test or debug testcase
  • After test ok, export to HTML doc

Tech

api-testing-tool uses a number of open source projects to work properly:

  • [AngularJS] - HTML enhanced for web apps!
  • [Visual Studio Code] - code editor
  • [node.js] - evented I/O for the backend
  • [ExpressJS] - fast node.js network app framework
  • [unirest] - Lightweight HTTP Request Client Libraries
  • [open] - library which help open a file or url in the user's preferred application
  • [copy-dir] - library which help copy template
  • [async] - Async is a utility module

And of course api-testing-tool itself is open source with a https://github.com/just4developments/api-testing-tool on GitHub.

License

MIT

Free Software, Hell Yeah!