Request/Response logging option in LOADUI

Free for all.

Request/Response logging option in LOADUI

Postby AnandPasayat » 28 Feb 2012 13:48

Hi,

I'm performing load test using soapui runner component in LoadUI.Could any one suggest, do we have any option in loadui (tablelog component) to check the soap request & response details, after successful execution of the test case using soapui runner componet?
or we need to check in the "SoapUI log" field in SoapUI module?

The above information is required to ensure that the LoadUI is injecting the soap requests (through Soapui runner component) to the intended SUT(System Under Test) & the respective response has been sent by SUT.

Waiting for your response, It's Urgent.

Thank You.

Regards,
Anand
AnandPasayat
User
 
Posts: 10
Joined: 20 Feb 2012 11:06

Re: Request/Response logging option in LOADUI

Postby AndyHughes » 28 Feb 2012 13:56

Yes you can do this by setting up test case properties in SoapUI for the request and response and then using a property transfer to populate them. A table log (attached to the bottom of the stats component can then be used to output these test case properties so you can see the request and response of each individual call.
AndyHughes
Wizard
Wizard
 
Posts: 170
Joined: 06 Apr 2011 16:04

Re: Request/Response logging option in LOADUI

Postby Elvorin » 28 Feb 2012 22:32

AndyHughes wrote:Yes you can do this by setting up test case properties in SoapUI for the request and response and then using a property transfer to populate them. A table log (attached to the bottom of the stats component can then be used to output these test case properties so you can see the request and response of each individual call.


Yeah, that's the only crude way of debugging any test case setup issue I've found so far. But make sure you delete those property transfer steps before your 'official' load test. Otherwise the performance numbers will be skewed (as property transfer step takes few milliseconds itself). Or else, configure your graph components to just show the SOAP call step's response time.

I really wish LoadUI had some easier way of logging request/response. May be even by modifying soapui-log4j.xml file (provided some class of SoapUI has debug statement for request/response).
Elvorin
User
 
Posts: 44
Joined: 15 Feb 2012 19:29

Re: Request/Response logging option in LOADUI

Postby AndyHughes » 29 Feb 2012 11:52

Yeah I get your point, and you do have to just get the timings from the specific test step you want when drawing graphs, but to be honest the property transfer part is negligible in terms of time when compared to the request (most of the time it's nothing).

Also, I keep it in there so I can see what actually happens if and when it fails in a load test.

Also another point to note which I didn't say before is that you will also have to have an assertion which looks for a 'failure' in order that should it happen, it's recorded as such. For example I use a 'Contains' assertion with the text 'fault'. Generally I find any SOAP request which goes wrong has the word 'fault' somewhere in the response. ;D
AndyHughes
Wizard
Wizard
 
Posts: 170
Joined: 06 Apr 2011 16:04

Re: Request/Response logging option in LOADUI

Postby Elvorin » 05 Mar 2012 23:46

AndyHughes wrote:Yeah I get your point, and you do have to just get the timings from the specific test step you want when drawing graphs, but to be honest the property transfer part is negligible in terms of time when compared to the request (most of the time it's nothing).


Not always true. :) Some of my service operations responds in 4ms (best time scenario). Having a 2ms property transfer will skew it a lot. :)

I really wish LoadUI had option to generate report just on soap call response time. Right now, I can configure graphs to show just that and get aggregated raw data from it. But summary still shows for the entire test case.

AndyHughes wrote:Also, I keep it in there so I can see what actually happens if and when it fails in a load test.

Also another point to note which I didn't say before is that you will also have to have an assertion which looks for a 'failure' in order that should it happen, it's recorded as such. For example I use a 'Contains' assertion with the text 'fault'. Generally I find any SOAP request which goes wrong has the word 'fault' somewhere in the response. ;D


I generally keep 2 assertions - SOAP response and Not a SOAP Fault.
Elvorin
User
 
Posts: 44
Joined: 15 Feb 2012 19:29


Return to LoadUI