Contributions
Re: selectively forward request from mock service
Thanks for the reply Rupert. can you please explain this line in your suggestion: def callBackRequest = (WsdlTestRequestStep) callBackTestCase.getTestStepsOfType(WsdlTestRequestStep.class).get(0) I'm pretty new to Groovy and I'm not familiar with the syntax of class name in parens "callBackRequest = (WsdlTestRequestStep)" Thanks, Tim3.2KViews0likes1CommentRe: selectively forward request from mock service
Thanks for the quick reply Rupert. In concept, I understand your approach. can you please explain this line: def callBackRequest = (WsdlTestRequestStep) callBackTestCase.getTestStepsOfType(WsdlTestRequestStep.class).get(0) I'm pretty new to groovy and I am not familiar with the syntaxof the class name in parensin"callBackRequest = (WsdlTestRequestStep) . . . " Also, at some point, I need to package this mock into a war. I am hoping that the extra test suite I added can be included. Thanks!! Tim3.2KViews0likes0Commentsselectively forward request from mock service
I'm trying to configure a mock service where depending on the request, either return a mock response or forward the request to the actual live web service. I think the OnRequest script is the place to do this. So far, I'm able to query the mockRequest to decide if the request should be forward to actual web service. My issue is what's the best solution for sending the request from the mock service. I've seen some examples using groovy-wslite and some not. I've tried to follow the suggestions here butneedmore details: http://community.smartbear.com/t5/SoapUI-Open-Source/Making-a-live-service-call-from-a-mock-service/m-p/4147#M1995 Thanks! Tim3.2KViews0likes4Comments