WireMock and Rest-Assured for stateful API testing
This script makes use of wiremock standalone jar
- To record start WireMock standalone the following way
java -jar wiremock-jre8-standalone-<version>.jar --port <7777> \
--proxy-all="http://<proxy address>:<port>" \
--record-mappings \
--verbose
- Make the mapping by putting your request/responsemappings in the mappings.json file in the mappings dir
- Remember to restart once new mappings have been added.
- The mappings used in the video can be found here
- State can be setup in the mappings, can be called using
__admin/scenarios
- Using insomnia rest client as a rest client
- This is mainly used to setup and play around with the Backend JAVA API
- Todo Backend applications more info here
- The specific one I used was [this one] which used Javalin (https://github.com/johanvogelzang/todo-backend)