Returning Bytes and soapui_context on every TestStep

Free for all.

Returning Bytes and soapui_context on every TestStep

Postby ktomek » 16 Jul 2012 13:54

Hello,

Yesterday I've added a topic about "loadUI and limited output from modularized soapUI project" at viewtopic.php?f=10&t=14429
Here is my proposal to extend fields returned by soapUI Runner Component, that in version 4.5.1 doesn't return fields 'Bytes' and 'soapui_context' for TestSteps. It only returns these additional fields on the TestCase level. Here are 2 new lines added on line 659 in SoapUISamplerComponent.java in method afterStep:

message.put( RESPONSE_SIZE_MESSAGE_PARAM, result.getSize() );
message.put( "soapui_context", new StringToObjectMap( runContext.getProperties() ) );

Could You consider adding them to the next version of soapUI Runner?
Also it would be great if STATUS_MESSAGE_PARAM would return actual value of success/fail instead of:
message.put( STATUS_MESSAGE_PARAM, result.getStatus() == TestStepStatus.OK );
The above value is true even if http status code is different from 200 (I've wrote details about it in my other post on loadUI Community Board).

Regards
Tomek
ktomek
User
 
Posts: 4
Joined: 15 Jul 2012 18:29

Re: Returning Bytes and soapui_context on every TestStep

Postby SmartBear Support » 01 Aug 2012 12:21

Hi,

Most of these changes seem reasonable to me, I'll try to make sure we look at getting them into the next version. One thing that might be a problem is the Status parameter, as other Runners use it as a success/fail boolean, we may want to keep it that way for consistency. I don't see any reason that we couldn't just add it as a new field though.

Regards,
Dain
SmartBear Software
SmartBear Support
Administrator
Administrator
 
Posts: 6702
Joined: 16 Feb 2009 10:53


Return to LoadUI