Forum Discussion
omatzura
16 years agoSuper Contributor
Hi Jim,
you can use the Response Script (at the bottom of the MockResponse editor) to dynamically insert values into a response, just set the desired values in the context and then expand them in your response.. for example this script
context.randomNum = Math.random()
and this expansion in your mockresponse xml
${randomNum}
will return a mock response with a random number in the someElement..
Hope this helps!
regards,
/Ole
eviware.com
you can use the Response Script (at the bottom of the MockResponse editor) to dynamically insert values into a response, just set the desired values in the context and then expand them in your response.. for example this script
context.randomNum = Math.random()
and this expansion in your mockresponse xml
will return a mock response with a random number in the someElement..
Hope this helps!
regards,
/Ole
eviware.com
Related Content
- 8 months agonado