jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From UBIK LOAD PACK Support <supp...@ubikloadpack.com>
Subject Re: Output byte counting
Date Thu, 18 Dec 2014 11:42:19 GMT
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 <flaviocysne@gmail.com> 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 <sergio@bosoconsulting.it>:
> >
> > 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: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message