Forum Discussion

sc_paca's avatar
New Contributor
8 years ago

Change Value with a variable in a Mock Response


In a project, there is a mock service and there is a mock response. Inside there is a tag: <local_OrderId>9999</local_OrderId>

I want to know if it's possible to change the value of this tag by groovy. How to change this value by a variable? Like this the value of the tag will be able to take different value and not only 9999.

In a test case I can change in SOAP Test request the value ${Properties#QuoteID} of the request but I don't know how to change in the mock response.

Thanks for your help



2 Replies