For those of you looking to gain some experience working with REST Assured, here are all the materials from a workshop I've created and delivered multiple times to good reviews. Feel free to use, share and adapt these materials as you see fit.
A Java 8 JDK and Maven. That's it.
All API calls that are used in the examples and exercises have been mocked using WireMock. The standalone version of WireMock is included in this project, so there's no need for additional setup.
In order to get a response from the WireMock mock server, you'll need to start it before you run your tests. You can do so by running this command from the src/test/resources
folder:
java -jar wiremock-standalone-2.21.0.jar --port 9876
In the (unlikely) event that you've already got a process running on port 9876, you can run the mock server on any available port. Please make sure to change the references to the port in the @BeforeClass
methods as well, or your tests will likely never pass...
The .pptx/.pdf/.odp file in the root folder contains all slides from the workshop. Again, feel free to use, share and adapt them to fit your own requirements.
Feel free to file an issue here or send me an email at [email protected].
Sure, I'd love to. Again, send me an email and I'll be happy to discuss options. In house or at your conference, I'm sure we can work something out.