You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by jmeter User <us...@gmail.com> on 2006/01/28 00:53:54 UTC

Loop Controller, HttpSampler, __CSVRead()

Greetings:
I have been learning Jmeter this past week  and I finding that I am
now getting the hang of it.

I am trying to do something that I though would be simple.

I am reading data from __CSVRead() and would a new value for each
iteration of a loop controller.
I had it working for each thread, but would like to hit a single page
many times (loop) with a new value each time.

Thread Group (2)
--Page1
--LoopController
----Page2
------UserParam[__CSVRead()]

The value is still only updated for each thread and not the loop.
I have attached my test plan.

Any help would be appreciated.
Jm


Re: Loop Controller, HttpSampler, __CSVRead()

Posted by jmeter User <us...@gmail.com>.
The CSVRead was in a User Parameter Pre Process that was achild of the
HttpSampler.

On 1/30/06, sebb <se...@gmail.com> wrote:
> Did you put the call to the CSVRead function in the same place in the
> test plan as CSV DataSet? Also, what test element was the function
> used in?
>
> Different types of elements are called at different times in the test cycle.
>
> CSV Data Set is a Configuration Element. If the call to CSVRead() was
> in a different kind of element, it might have affected the processing
> order.
>
> S.
> On 30/01/06, jmeter User <us...@gmail.com> wrote:
> > I tried your suggestion and it still did not work. I am not sure why but...
> > when I switched over to the CSVDataSet and the loop controller works
> > as I expected.
> >
> > Thank you again.
> >
> >
> > On 1/29/06, sebb <se...@gmail.com> wrote:
> > > On 27/01/06, jmeter User <us...@gmail.com> wrote:
> > > > Greetings:
> > > > I have been learning Jmeter this past week  and I finding that I am
> > > > now getting the hang of it.
> > > >
> > > > I am trying to do something that I though would be simple.
> > > >
> > > > I am reading data from __CSVRead() and would a new value for each
> > > > iteration of a loop controller.
> > >
> > > CSV DataSet is recommended over CSVRead, but that should not affect the outcome.
> > >
> > > > I had it working for each thread, but would like to hit a single page
> > > > many times (loop) with a new value each time.
> > > >
> > > > Thread Group (2)
> > > > --Page1
> > > > --LoopController
> > > > ----Page2
> > > > ------UserParam[__CSVRead()]
> > > >
> > > > The value is still only updated for each thread and not the loop.
> > >
> > > Try:
> > >
> > > Thread Group (2)
> > > --Page1
> > > --LoopController
> > > ----UserParam[__CSVRead()] or CSV Data Set
> > > ----Page2
> > >
> > > instead.
> > >
> > > > I have attached my test plan.
> > >
> > > It fell off. Best not to attach files to mailing list messages.
> > >
> > > > Any help would be appreciated.
> > > > Jm
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Loop Controller, HttpSampler, __CSVRead()

Posted by sebb <se...@gmail.com>.
Did you put the call to the CSVRead function in the same place in the
test plan as CSV DataSet? Also, what test element was the function
used in?

Different types of elements are called at different times in the test cycle.

CSV Data Set is a Configuration Element. If the call to CSVRead() was
in a different kind of element, it might have affected the processing
order.

S.
On 30/01/06, jmeter User <us...@gmail.com> wrote:
> I tried your suggestion and it still did not work. I am not sure why but...
> when I switched over to the CSVDataSet and the loop controller works
> as I expected.
>
> Thank you again.
>
>
> On 1/29/06, sebb <se...@gmail.com> wrote:
> > On 27/01/06, jmeter User <us...@gmail.com> wrote:
> > > Greetings:
> > > I have been learning Jmeter this past week  and I finding that I am
> > > now getting the hang of it.
> > >
> > > I am trying to do something that I though would be simple.
> > >
> > > I am reading data from __CSVRead() and would a new value for each
> > > iteration of a loop controller.
> >
> > CSV DataSet is recommended over CSVRead, but that should not affect the outcome.
> >
> > > I had it working for each thread, but would like to hit a single page
> > > many times (loop) with a new value each time.
> > >
> > > Thread Group (2)
> > > --Page1
> > > --LoopController
> > > ----Page2
> > > ------UserParam[__CSVRead()]
> > >
> > > The value is still only updated for each thread and not the loop.
> >
> > Try:
> >
> > Thread Group (2)
> > --Page1
> > --LoopController
> > ----UserParam[__CSVRead()] or CSV Data Set
> > ----Page2
> >
> > instead.
> >
> > > I have attached my test plan.
> >
> > It fell off. Best not to attach files to mailing list messages.
> >
> > > Any help would be appreciated.
> > > Jm
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Loop Controller, HttpSampler, __CSVRead()

Posted by jmeter User <us...@gmail.com>.
I tried your suggestion and it still did not work. I am not sure why but...
when I switched over to the CSVDataSet and the loop controller works
as I expected.

Thank you again.


On 1/29/06, sebb <se...@gmail.com> wrote:
> On 27/01/06, jmeter User <us...@gmail.com> wrote:
> > Greetings:
> > I have been learning Jmeter this past week  and I finding that I am
> > now getting the hang of it.
> >
> > I am trying to do something that I though would be simple.
> >
> > I am reading data from __CSVRead() and would a new value for each
> > iteration of a loop controller.
>
> CSV DataSet is recommended over CSVRead, but that should not affect the outcome.
>
> > I had it working for each thread, but would like to hit a single page
> > many times (loop) with a new value each time.
> >
> > Thread Group (2)
> > --Page1
> > --LoopController
> > ----Page2
> > ------UserParam[__CSVRead()]
> >
> > The value is still only updated for each thread and not the loop.
>
> Try:
>
> Thread Group (2)
> --Page1
> --LoopController
> ----UserParam[__CSVRead()] or CSV Data Set
> ----Page2
>
> instead.
>
> > I have attached my test plan.
>
> It fell off. Best not to attach files to mailing list messages.
>
> > Any help would be appreciated.
> > Jm
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Loop Controller, HttpSampler, __CSVRead()

Posted by sebb <se...@gmail.com>.
On 27/01/06, jmeter User <us...@gmail.com> wrote:
> Greetings:
> I have been learning Jmeter this past week  and I finding that I am
> now getting the hang of it.
>
> I am trying to do something that I though would be simple.
>
> I am reading data from __CSVRead() and would a new value for each
> iteration of a loop controller.

CSV DataSet is recommended over CSVRead, but that should not affect the outcome.

> I had it working for each thread, but would like to hit a single page
> many times (loop) with a new value each time.
>
> Thread Group (2)
> --Page1
> --LoopController
> ----Page2
> ------UserParam[__CSVRead()]
>
> The value is still only updated for each thread and not the loop.

Try:

Thread Group (2)
--Page1
--LoopController
----UserParam[__CSVRead()] or CSV Data Set
----Page2

instead.

> I have attached my test plan.

It fell off. Best not to attach files to mailing list messages.

> Any help would be appreciated.
> Jm
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org