Forum Discussion

ktomek's avatar
ktomek
New Contributor
13 years ago

Returning Bytes and soapui_context on every TestStep

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

1 Reply

  • 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