ktomek
13 years agoNew Contributor
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
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