Solved
Forum Discussion
TSanchez_1
Staff
6 years agoYou 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
6 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