Resolve dynamic path in wireMock
Hi there I've relativley new to the Wiremock framework. I've got a test enviroment working but I need to for our integration testing need to resolve a dynamic path such as /test/dynamic/{dynamicpath}/help where dynamic path is going to be a variable that I want to resolve and then present different data from using a subset of a json file such as { dynamicpathA : "hello", dynamicpathB "world" } at the moment I have : stubFor(get(urlPathMatching("/test/dynamic/{dynamicpath}/help")) .withHeader("accept", equalTo("application/json")) .willReturn(aResponse().withBody(readFile(RESOURCES + "test.json
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.