Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_warde4
Active Participant

I'm continuing with my blog series on testing tools. This blog post focses on testing a RESTFUL web service provisioned by PO. The easiest way to perform a basic unit test of the interface is with a Chrome Plugin called DHC. It can be downloaded here DHC - REST/HTTP API Client - Chrome Web Store.

This tool provides an easy way to test requests using a simple web based UI. The requests can be saved into folders and easily exported to share.

In the following example I am sending a POST request to our PO system and the payload is JSON. A response is returned which is also JSON. The following explains how I populated the request

URL:  Make sure you use the correct URL.

Method: DHC requires a method (POST, GET, PUT etc…). In this instance we are posting data to PO.

Content Type: In this case it is application/json

Authorizations. Click on the ‘set an authorisation’ and you can enter your credentials and they are translated to the fomat required for Basic Authentication (using BASE64).

Payload: Paste the payload in the BODY section, set the type to text and click on the JSON link at the bottom to format the request.


Once executed the response will appear underneath

There are a number of other tools that can be used, both online (such as Postman, another Chrome Add-in) or client based solutions such as SOAPui.

Blogs in Series

Blog 1: HTTP Post Testing: Test Tools...Part 1 *HTTP *

Blog 2: SFTP Testing: Test Tools...Part 2 * SFTP *

Blog 3: REST  Testing: Test Tools...Part 3 * REST *

Blog 4: SOAP Testing: Test Tools...Part 4 * SOAP *

Blog 5: SOAP Testing: Test Tools...Part 5 * JMeter *


Labels in this area