__threadNum() is a function that return the actual thread number, so, if is
the first thread started by JMeter the value returned will be 1, if second
then 2 and so on.
http://jmeter.apache.org/usermanual/functions.html#__threadNum

If you are using distributed testing the number returned repeats because
the threadNumber function is executed for each server/slave not by the
client/master.
Then, when using distributed testing, the value 1 will be returned for the
very first thread started by each JMeter server/slave, 2 for the second and
so on.


2013/8/19 umesh prajapati <[email protected]>

> ${__javaScript(${__threadNum()}*1300)} does this means number of threads *
> 1300?
>
>
>
>
> On Mon, Aug 19, 2013 at 2:14 PM, umesh prajapati <[email protected]
> >wrote:
>
> > Using this approach too,
> >
> > it only completes 25 transaction per min when it is suppose to do 33
> > transaction per min.
> >
> > So, I just changed the value in constant timer.
> >
> > From: ${__javaScript(${__threadNum()}*1818)}
> >
> > To: ${__javaScript(${__threadNum()}*1300)}
> >
> >
> > On Mon, Aug 19, 2013 at 1:21 PM, Flavio Cysne <[email protected]
> >wrote:
> >
> >> >> Its not stopping after 60 seconds. Is it because of loop count
> forever.
> >>
> >> yes, with this new approach you'll need Loop forever no more. Just let
> >> loop
> >> count at 1.
> >> Runtime Controller will "loop" all requests inside it until the
> configured
> >> time has gone.
> >> Note that script execution time could be greater than the configured
> time
> >> because Runtime Controller will start new threads within the time
> >> configured and these started threads will run until the last request.
> >>
> >
> >
>

Reply via email to