Forum Discussion
Thank you for your resoponse.
I changed the option to "Route To" and set the value to property expansion as ${#MockService#route_endpoint}.
However, I am getting 404. Even I tried to just put the value as the complete URL, however, I am seeing 404.
And also the script is not getting invoked when I have set the option as "Conditional"
if (! mockRequest.path.contains('/oauth2'))
return false // do not route the request
mockRequest.queryString += '&env=ENV1'
mockRunner.getMockContext().mockService.setPropertyValue("route_endpoint","https:/HOSTNAME/oauth2?mockRequest.queryString")
log.info 'DEBUG: Modified query string - ' + mockRequest.queryString
return true // route the request
Hi Vibhash,
If the case is not solved yet, I think it's time to create a Support ticket via the https://support.smartbear.com/message/?prod=ReadyAPI form.
I would appreciate it if you update this thread with the result you will get as I think that our previous actions were correct and we just missed some step.
- Vib5 years agoOccasional Contributor
Sure I will update on this thread once I have the solution
Related Content
Recent Discussions
- 14 hours agodipsthorat
- 17 hours agoisbiat
- 22 hours agoLea
- 2 days agoarmygrad