1

I have this url:

 "url": "/application/userId=5678"

This url will contains the logged in userId, i am trying to map this userId with regex to be mapped on all url's in Wiremock Testing.

So far, i've tried this

"urlPattern": "/application/userId=[0-9]+"

But this is not working, any idea how to make this url work for any UserId?

  • Was it your intention for userId=5678 to be part of the path? Or should it have been `/application?userId=5678` ? – Tom Jul 23 '18 at 14:12

1 Answers1

0

RegEx should be something like: ^\/application\/userId=[0-9]+$

See also this question + answer: Wiremock not matching regex

Stef Heyenrath
  • 9,335
  • 12
  • 66
  • 121