Instructions for setting up environment to run tests
- Download soapUI
- Clone repository BPDTS-technical-test- from GitHub
- In soapUI import project by following
File
>Import Project
and selectbpdts-tech-test-soapui-project.xml
from cloned repository - Open
bpdts-tech-test-project
project followed byAPI TestSuite
- Finally double click on
happy path test case
and click the play icon - All tests steps should execute with assertions
- First test step to query
/users
to obtainlongitude
andlatitude
of a random user to a location instead of current hardcoded to London - Assert
/city/{city}/users
only returns users to specified city - Assert
/user/{id}
only returns one user - Test for invalid scenarios and as a minimum assert for status codes other than 200
- Assert response headers