Forum Discussion
SmartBear_Suppo
14 years agoSmartBear Alumni (Retired)
Hi Beno,
ok thanks - you need to access the response via the submit object returned by the submit method;
//define
def submit = null
synchronized(context.lock) {
String kreiran_req = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ccs=\"http://ccs.service112.iskratel.si\"><soapenv:Header/><soapenv:Body><ccs:readRecord><ccs:id>"+substr+"</ccs:id></ccs:readRecord></soapenv:Body></soapenv:Envelope>"
request.requestContent = kreiran_req
// save submit
submit = request.submit( new com.eviware.soapui.impl.wsdl.WsdlSubmitContext( request ), false )
}
log.info submit.response.contentAsString
def TimeTaken = submit.response.timeTaken
....
if you change this throughout your script then it will work without having to have the request windows open.. this might help your memory issue also, at least I am not seeing any memory fill-up during a long-running loadtest
please try the above (make sure you change it everywhere) and let us know how it works..
if you are still having troubles, please send us your updated project so we can continue from there..
regards,
/Ole
SmartBear Software
ok thanks - you need to access the response via the submit object returned by the submit method;
//define
def submit = null
synchronized(context.lock) {
String kreiran_req = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ccs=\"http://ccs.service112.iskratel.si\"><soapenv:Header/><soapenv:Body><ccs:readRecord><ccs:id>"+substr+"</ccs:id></ccs:readRecord></soapenv:Body></soapenv:Envelope>"
request.requestContent = kreiran_req
// save submit
submit = request.submit( new com.eviware.soapui.impl.wsdl.WsdlSubmitContext( request ), false )
}
log.info submit.response.contentAsString
def TimeTaken = submit.response.timeTaken
....
if you change this throughout your script then it will work without having to have the request windows open.. this might help your memory issue also, at least I am not seeing any memory fill-up during a long-running loadtest
please try the above (make sure you change it everywhere) and let us know how it works..
if you are still having troubles, please send us your updated project so we can continue from there..
regards,
/Ole
SmartBear Software
Related Content
- 9 years ago
- 13 years ago
Recent Discussions
- 14 hours ago
- 17 days ago