Forum Discussion
TSanchez_1
Staff
You can try to set "Route to" value to property expansion and then change it in your script. For example you can set "Route to" is set to ${#MockService#route_endpoint}, and then you can add to your script:
mockRunner.getMockContext().mockService.setPropertyValue("route_endpoint","http://smartbear.com")
Let me know if this works.
Vib
5 years agoOccasional Contributor
I was able to move ahead by adding the below event
MockRunListener.beforeRoute and added the below script, the routing is working as expected.
method.setURI(URI.create(method.getURI().toString() + "&enviornment=ENV1"))
Thanks Temil for providing the solution
Related Content
- 2 years ago
- 7 years ago
Recent Discussions
- 5 days ago