JanPot
8 years agoOccasional Contributor
getProperty("rawRequest") does not return the 'real' request sent
I'm using a REST request (POST) that look like this: <ns1:Bundle> <ns1:id value="${=UUID.randomUUID().toString()}"/> <ns1:timestamp value="${=new java.text.SimpleDateFormat("y...
- 8 years ago
JanPot, the properties of SoapUI objects are not always simple strings.
Sometimes the naming of user interface label does not correspond directly to the object bellow.
In your case the rawRequest triggers the request evaluation (inline groovy code is evaluated) and then you get a brand new raw request. However, it is not the last message exchange of the test step run.
When I need to get the request or response message of the last test step run, I use testRunner.getResults() collection, which contains WsdlTestRequestStepResult instances for SOAP Request test steps.
Anyway, more description in SoapUI API documentation would be helpful to avoid such confusions.
Karel