Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
13 years ago

Raw request not available when running load test

In a script assertion for and HTTP Request I have the following code:

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?

5 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    hmm.. this sounds like a bug to me related to the aggressive memory management during loadtest execution, I'll add this to the backlog for investigation and fixing..

    regards,

    /Ole
    SmartBear Sweden
  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Thanks. I've occasionally noticed that the raw result had disappeared from a request even after being run 'manually', but this would only happen after some significant amount of time had passed.