Forum Discussion
ktomek
14 years agoNew Contributor
I have also noticed, that only TestCase request have in message fields Bytes and soapui_context.
Request TestSteps have only ID, Status, TimeTaken and Timestamp with no information about Bytes and soapui_context.
How can I get info about Bytes per request, not the whole TestCase?
UPDATE:
I've found a place in src of SoapUISamplerComponent, where output message is constructed for TestStep:
TerminalMessage message = SoapUISamplerComponent.this.getContext().newMessage();
message.put("ID", result.getTestStep().getName());
message.put("Status", Boolean.valueOf(result.getStatus() == TestStepResult.TestStepStatus.OK));
message.put("TimeTaken", Long.valueOf(result.getTimeTaken()));
message.put("Timestamp", Long.valueOf(result.getTimeStamp()));
SoapUISamplerComponent.this.getContext().send(SoapUISamplerComponent.this.getResultTerminal(), message);
Could You add the following line to method afterStep in class TestStepNotifier inside SoapUISamplerComponent class?
message.put("Bytes", Integer.valueOf(result.getSize()));
Tomek
Request TestSteps have only ID, Status, TimeTaken and Timestamp with no information about Bytes and soapui_context.
How can I get info about Bytes per request, not the whole TestCase?
UPDATE:
I've found a place in src of SoapUISamplerComponent, where output message is constructed for TestStep:
TerminalMessage message = SoapUISamplerComponent.this.getContext().newMessage();
message.put("ID", result.getTestStep().getName());
message.put("Status", Boolean.valueOf(result.getStatus() == TestStepResult.TestStepStatus.OK));
message.put("TimeTaken", Long.valueOf(result.getTimeTaken()));
message.put("Timestamp", Long.valueOf(result.getTimeStamp()));
SoapUISamplerComponent.this.getContext().send(SoapUISamplerComponent.this.getResultTerminal(), message);
Could You add the following line to method afterStep in class TestStepNotifier inside SoapUISamplerComponent class?
message.put("Bytes", Integer.valueOf(result.getSize()));
Tomek