L.4 Use the Web API Testing Tool

Testing of these web services can be done by using any standard web API testing tool available on the Internet like Postman, HTTP Master, or Rest-assured.

Download and install the web API testing tool (example Postman) from its distribution website.

Steps for testing using a web API testing tool are detailed for all the web service methods along with the required configuration, input parameters, and expected response. For more information, see Description of FTP Web Services.

Use a Java Client Program

To use a java client program for web API testing, follow these steps:

  1. Create the required JSON and populate the appropriate parameters. Save it in a file (Request.json)
  2. Open Command Line and navigate to the location of the JSON files.
  3. Run the following command mentioning the relevant web service and the JSON file.

    Example: java -jar FTPWSclient.jar <parameter> Request.json <RestURL>

  4. The results will appear on the command line.