Generating random values in a response using Wiremock standalone

288 views
Skip to first unread message

Ilyas Patel

unread,
Jan 26, 2016, 12:45:32 PM1/26/16
to mountebank-discuss
Is it possible to generate random values before a response is returned?

My use case is to generate random user ids in a http header.

thanks

Shekhar Bhardwaj

unread,
Jan 26, 2016, 4:40:13 PM1/26/16
to mountebank-discuss
are you using wiremock or mb ?

Ilyas Patel

unread,
Jan 26, 2016, 5:36:08 PM1/26/16
to mountebank-discuss
Hi, I'm currently evaluating both and will see which works best from a load testing perspective.

Thanks

Brandon Byars

unread,
Jan 26, 2016, 7:52:13 PM1/26/16
to Ilyas Patel, mountebank-discuss
Hi Ilyas,
Yes it's possible.  Check out the decorate behavior: http://www.mbtest.org/docs/api/behaviors
-Brandon

--
You received this message because you are subscribed to the Google Groups "mountebank-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mountebank-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages