Web Service Testing

 



API Testing Tool allows to validate APIs directly in your browser, without Setup. With a few clicks, you can easily configure complex test cases, and run them!

You can see the user guide to help you to use this Online API Tester.

User guide

This guide explains how to use this tool in order to make scenarios to test API online:

  • How to add a step in your test case:

    It is easy, you simply have to double-click or drag and drop the widget from the toolbox you want to add to your test.

    List of widgets that you can add to your scenario:

    • Make an HTTP request:
      The "REST request" widget allows to make an HTTP request (For SOAP or REST API).
      You can define headers, URL and body of your request.

      Extract data from the HTTP response:
      The "Extraction" widget allows to extract data from header or body of the HTTP response.
      You can use XPath, Regex, css selector or JSONPath in order to retrieve data from the response.
      It creates parameters that you can use in the assertion and the script widgets.

      Assert the responses of the HTTP response::
      The "Assertion" widget is used to check the responses.
      You can check the data you have previously extracted.

      Execute JavaScript code:
      The "Script" widget is used to execute JavaScript code.
      You can manipulate the parameters you have previously extracted.

  • How to add a new test case:

    To create a new test case, simply click on the "+" button.

  • Your favorite test cases:

    You can save your favorite test cases so that you will find it during your next visits.

    If you have an account, your favorite requests are backed up in server side.
    Otherwise (You do not have an account), it is a local backup in your browser, it can be deleted at any time!

    You must click on the "Save test" button to add or update current scenario in favorites.



Cross-Origin Resource Sharing (CORS)


CORS must be activated

HTTP requests are launched on the client side, directly in your browser, the calls are cross domain.

You must allow Cross-Origin Resource Sharing (CORS) in your REST API. Example for CORS in php:

header('Access-Control-Allow-Origin: *');
You also need to authorize headers if you need to send headers in yours requests:
header('Access-Control-Allow-Headers: *');

If you want to know more about Cross-Origin Resource Sharing: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS



Online API Testing Tool

This utility allows to make test cases in order to validate response of your REST APIs. You can easily write test, and run them!

you can retrieve call response data from your web services for use in subsequent calls. You can use XPath, RegEx, CSS selector, and JSONPath to extract the data.

You can use this tool for automated REST API testing. But this utility do not replace CI tools. It is rather to set up tests on small non-critical projects, with few resources to assign to tests.

You can save your test cases. If you do not have an account, your favorites test cases will be saved directly in your browser.
If you have an account, your favorites test cases will be saved in server side.


You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).

Comments