jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasanna bhat <prasannabha...@gmail.com>
Subject Re: How to get substring function in jMeter
Date Fri, 28 May 2010 13:45:53 GMT
Cool..

-Prasanna

On Fri, May 28, 2010 at 7:03 PM, kryll <kryll@list.ru> wrote:

>
> I managed with this problem in such way:
>
> ${__jexl(Systemclass=log.class.forName("java.lang.System");
> Stringclass=log.class.forName("java.lang.String");
> now=Stringclass.valueOf(Systemclass.currentTimeMillis()).substring(2);)}
>
>
> prasanna bhat wrote:
> >
> > U can use javascript language in BSF post/pre processors/samplers also
> > Java
> > in Bean Shell Sampler.
> >
> > Thanks,
> > Prasanna
> >
> > On Fri, May 28, 2010 at 2:20 PM, kryll <kryll@list.ru> wrote:
> >
> >>
> >> Hello
> >>
> >> I have such problem. I use __time function and get current time in ms
> >> (1275035662333 for instance). But I'm interested just in the last 11
> >> digits
> >> of this number. Could you help me, how can I get this substring?
> >>
> >> Thanks a lot!
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-get-substring-function-in-jMeter-tp28704298p28704298.html
> >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-get-substring-function-in-jMeter-tp28704298p28706978.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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