Applies to ReadyAPI 2.4, last modified on June 7, 2018

The Google Maps API sample project demonstrates how you can work with the Google API to get map locations. It works with local virtual services simulating the API, but the same requests can be used with the real Google Maps service. The project API has the following structure:

Google Maps API sample project structure

Click the image to enlarge it.

To Open the Project

From the Dashboard

Find the project you need in the Sample Projects section:

Functional Testing: SoapUI Sample Projects

Click the image to enlarge it.

Tip: Click and leave only SoapUI selected to limit the options to SoapUI and Online Service samples.
From the Projects Start Page

Switch to SoapUI and select the test you need from the Sample Projects list on the start page.

Functional Testing: SoapUI Sample Projects

Click the image to enlarge it.

To Use the Project

The project uses local virtual services to simulate working with the Google Maps API. To run individual requests, switch to ServiceV and start all virtual services. SoapUI tests included in the project use setup and teardown scripts to start and stop virtual services as necessary, so you can run them without preparations.

Sample Tests

The project includes one test suite for each resource:

Test сase Description

Get distance and travel time between two cities

Sends a request to get the distance and travel time between two cities and loops the request 5 times by using a groovy script.

Get information by address

Gets information about several historical sites.

Get distance and travel time between two cities (DataSource)

Uses data loops to get information about the distance and travel time between two cities and loops the request to get data about other cities.

Get elevation

Uses a data loop to get information about the elevation of multiple points on the map.

Get page with error

Gets a 404 Not Found message from the server.

See Also

About Projects Page
Sample Projects

Highlight search results