Functional testing of REST services
We came across several features provided by soapUI to invoke RESTful services. The true advantage of using soapUI to test RESTful services is that we can get the comprehensive functional testing support provided by soapUI out-of-the-box with REST services as well. In this section, we will look into the integration of REST requests into TestCases so that they can be managed through TestSuites and validate the responses using various assertions.
Let's insert a REST test request (Request 1) of the searchPlaces HTTP GET method of the GooglePlaces project into a soapUI TestSuite by performing the following steps:
Right-click on the GooglePlaces project and select New TestSuite. Name it
GooglePlacesTestSuite
.Once
GooglePlacesTestSuite
is added to the project, right-click on it and select New TestCase. Name itsearchPlaceTestCase
.Now, right-click on searchPlaceTestCase and select Add Step | REST Test Request. Enter a name for the test step.
A pop-up menu appears...