Automation REST-Api using Rest Assured
What is Rest Assured?
Rest Assured is Java Library for testing and validate of REST services.
What to validate using REST Assured?
- The response status code is equal to 200.
- The response content type (telling the receiver of the response how to interpret the response body) equals "application/json."
Requirement
- Java JDK (http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)
- IDE (Intellij, Eclipse etc)
- Rest Assured
Prerequisite
- Maven project
- Add dependencies in maven project
- Google API Key
- Google Place API Doc
How to Run
- Make sure you already get your own Google API Key
- Replace in env.properties with your own Key
- Don't forget to check every dependencies on your maven project updated
- Easily click run and see the result!