M_McDonald
14 years agoSuper Contributor
Raw request not available when running load test
In a script assertion for and HTTP Request I have the following code:
This works fine when I execute the request as a normal test case, returning something like this in the log:
But when I run this in a Load Test, I get a failure and nothing written to the log.
Also, in the MessageViewer, the Raw tab of the request shows "<missing raw request data>".
I very much need to see the raw requests that are being submitted by the load test to verify the expanded property values. Is there a workaround for this?
log.info new String(messageExchange.rawRequestData)
This works fine when I execute the request as a normal test case, returning something like this in the log:
Tue Aug 09 08:55:04 EDT 2011:INFO:POST http://localhost:8888/ HTTP/1.1
Connection: close
Accept-Encoding: gzip,deflate
Content-Type: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:8888
Content-Length: 20
<message>3</message>
But when I run this in a Load Test, I get a failure and nothing written to the log.
TestStep [HTTP Test Request] result status is FAILED; [[Script Assertion] null] [threadIndex=0]
Also, in the MessageViewer, the Raw tab of the request shows "<missing raw request data>".
I very much need to see the raw requests that are being submitted by the load test to verify the expanded property values. Is there a workaround for this?