Forum Discussion
jedizippy
17 years agoNew Contributor
Ok after some investigation I found the answer which is as simple as expected. The TestStepResult can be cast to an WSDLTestRequestStepResult and then the content can be accessed as follows:-
if (thisResult instanceof WsdlTestRequestStepResult) {
WsdlTestRequestStepResult wsdlResult = (WsdlTestRequestStepResult ) thisResult;
logger.debug("Response Content: " + wsdlResult.getResponseContent();
}
if (thisResult instanceof WsdlTestRequestStepResult) {
WsdlTestRequestStepResult wsdlResult = (WsdlTestRequestStepResult ) thisResult;
logger.debug("Response Content: " + wsdlResult.getResponseContent();
}