February 2015
Intermediate to advanced
328 pages
7h 29m
English
In this recipe, we take a look at how to generate tests for RESTful web services that already exist. The pro version of SoapUI has the REST discovery functionality to allow interactions with a RESTful API to be recorded and used to generate tests.
To provide an example of a RESTful web service, I have extended the previous recipe's invoice service to have full CRUD functionality. The interface now looks like this:
Resource: http://localhost:9000/invoiceservice/v1/invoice Supported Methods: POST invoice - Create Invoice. GET invoice/{id} – Get (Read) Invoice. PUT invoice/{id} – Update Invoice. DELETE invoice/{id} – Delete Invoice.
The invoice document is as follows:
{"Invoice": { "id": ...Read now
Unlock full access