Hi,
You can use:
String samplerData = res.getSamplerData();
        if (samplerData != null) {
            sentBytes = samplerData.length();
        }

That's what BytesThroughputOverTime graph uses.

Regards
@ubikloadpack

On Wed, Dec 17, 2014 at 9:50 PM, Flavio Cysne <[email protected]> wrote:
>
> You could use a BeanShell Post-Processor to get the Content-Length
> parameter's value from the Request Header and include this value as a new
> attribute in the sample result.
>
> Or you could have a look at JMeter Plugins' Bytes Throughput over Time
> Listener code to see how they are summarizing these values (Bytes Sent).
>
> 2014-12-17 17:30 GMT-03:00 Sergio Boso <[email protected]>:
> >
> > Hi,
> >
> > I just saw that the "bytes" filed of standard statistics just counts the
> > bytes *from* the server *to* jmeter.
> > Is there any way to record (or to sum) also the traffic from jmeter to
> the
> > server?
> >
> > In my specific case most of the traffic is done by POSTing documents.
> > Any suggestions?
> >
> > Thank you in advance
> >
> > Sergio
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>

Reply via email to