An introduction to what ReST (Representational State Transfer) is, how to spy on what a webpage is doing using developer tools and how to interact with a ReST API using Postman.
- Cape Town Testing on 20 February 2020. See introduction slides here.
- Download and install Postman. Its available for Windows, Linux and Mac.
- Open Postman and create a new workspace (or use an existing one).
- Import the Postman environments for the Restful Booker Platform
- The Production environment references the Web UI version at https://automationintesting.online
- The Heroku environment references the platform version at https://restful-booker.herokuapp.com
- Import the Postman collection for the Automation In Testing Restful Booker platform.
- Explore the Restul Booker web application
- Open your browser Developer Tools (usually by pressing F12)
- Create a few bookings with valid / invalid data
- Do you see anything interesting in the requests being sent by the web application using Developer Tools
- Read through the Restful Booker API documentation or as a PDF version (extracted on 17 February 2020)
- What can't you do through the Web UI?
- Explore the Postman environment setup
- Environment level variables assist in exploring multiple environments
- Explore Postman collection setup
- Collection level variables reduce maintenance by sharing values across various requests (e.g. for authorisation)
- Tests functionality can be used to programmatically set variable values
- Compare the request configuration and methods to the Restful Booker API documentation
- Some requests don't work on both environments - can you find which ones?
- Collection level variables reduce maintenance by sharing values across various requests (e.g. for authorisation)
- Create and manipulate your own test data in the Heroku environment