ravs788 / rest-assured-workshop

Free and open source REST Assured workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST Assured workshop

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.

What do I need?

A Java 8 JDK and Maven. That's it.

What API is used for the exercises?

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.

Running the mock server

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.15.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...

Slides

The .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.

Comments? Saying thanks?

Feel free to file an issue here or send me an email at bas@ontestautomation.com.

I'd rather have you deliver the workshop instead...

Sure, I'd love to. Again, send me an email and I'll be happy to discuss options. In house, online, or at your conference, I'm sure we can work something out.

About

Free and open source REST Assured workshop


Languages

Language:Java 100.0%