Mocking API response in Jmeter with WireMock

Viewed 265

Is it possible to mock the json response of an API in Jmeter using WireMock. If yes, can you please share the step by step process for that.

1 Answers

Wiremock is a separate standalone Java application, you can run it as the different process like:

java -jar wiremock-jre8-standalone-x.xx.x.jar --port 8080

and once you add stub mappings using HTTP Request samplers or JSON configuration files the mock responses will be returned according to the stub mappings.

Wiremock can be launched using OS Process Sampler like:

enter image description here

Related