Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
You can select Script in dispatch and send the responses.
http://www.soapui.org/Service-Mocking/c ... g-overview
Also check the video,
http://www.soapui.org/Service-Mocking/c ... vices.html
You can create a testcase with
Request A
Request B
And in Script you can then configure, response back to the original requestA using script
You need to customize a groovy script.
Thanks,
Jeshtha
You can select Script in dispatch and send the responses.
http://www.soapui.org/Service-Mocking/c ... g-overview
Also check the video,
http://www.soapui.org/Service-Mocking/c ... vices.html
You can create a testcase with
Request A
Request B
And in Script you can then configure, response back to the original requestA using script
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def testCase = testRunner.testCase;
def testStep = getTestStepByName(String stepName) ;
testRunner = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner(testCase, null);
testStepContext = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext(testStep);
testStep.run(testRunner, testStepContext);
You need to customize a groovy script.
Thanks,
Jeshtha