If thats the case then you need the last line in your CSV to be an item
that you stop on (and which cannot conflict with the regular data) e.g.
<STOP> and you change the IF controller to check for this word "${itemId}"
!= "<STOP>" (and recycle=true)


On Tue, Jul 2, 2013 at 2:17 AM, ankush upadhyay
<[email protected]>wrote:

> Hello Deepak,
>
> Recycle on EOF = true because I want to read this csv from the beginning
> multiple times means the while controller is in another loop controller
> which is iterating with some count but it is not dependent on csv rows.
>
> Now when I make it false then it is reading rows perfectly but for second
> iteration it start with <EOF>.
>
> Also for first time the while controller condition is not terminating the
> loop for <EOF> as well means if I have 2 item in csv the while controller
> iterating with 3 count. One extra for <EOF> but my condition
> is ${__BeanShell(vars.get("vProductId1")!="<EOF>")}.
>
>
> On Tue, Jul 2, 2013 at 12:07 AM, Deepak Shetty <[email protected]> wrote:
>
> > if you have Recycle on EOF = true then yes the variable never gets the
> EOF
> > value and so you cannot use this condition to terminate ...if you want
> the
> > loop to stop when the CSV is processed then you either change or change
> the
> > way you determine when to stop
> >
> >
> > On Mon, Jul 1, 2013 at 10:32 AM, ankush upadhyay
> > <[email protected]>wrote:
> >
> > > Here is my configuration:
> > > while controller:
> > >   -- CSV Data Set Config
> > > File name: Item.csv ( this is on same folder where my script reside)
> > >
> > > Variable names: ${__javaScript("${itemId}"!="<EOF>")}
> > > Recycle on EOF: true
> > > Stop thread on EOF: true
> > >
> > > -- http request sampler
> > >
> > >            I need the new item value each time from csv and also end
> > after
> > > last item.
> > >
> > >
> > >
> > > On Mon, Jul 1, 2013 at 10:29 PM, Deepak Shetty <[email protected]>
> > wrote:
> > >
> > > > you either have a syntax error (check jmeter.log) or your CSV data
> set
> > > > config is wrong (you have set it to recycle at EOF..
> > > >
> > > >
> > > > On Mon, Jul 1, 2013 at 3:20 AM, ankush upadhyay
> > > > <[email protected]>wrote:
> > > >
> > > > > ${__javaScript("${itemId}"!="<EOF>")}  condition  reaching to
> > infinite
> > > > > loop.
> > > > >
> > > > >
> > > > > On Sat, Jun 29, 2013 at 8:35 PM, Deepak Shetty <[email protected]>
> > > > wrote:
> > > > >
> > > > > > then likely you havent configured your CSV data set correctly -
> did
> > > you
> > > > > > check jmeter.log? (Also Im assuming you used the correct syntax
> ..
> > > > > > ${__javaScript("${itemId}"!="<EOF>")} - as well as itemId is case
> > > > > sensitive
> > > > > > , it must be defined the same way in the csv data set config
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Sat, Jun 29, 2013 at 7:51 AM, ankush upadhyay
> > > > > > <[email protected]>wrote:
> > > > > >
> > > > > > > Yes I have moved it to under while controller
> > > > > > > Also adding condition: ${itemId}" != "<EOF>"
> > > > > > >
> > > > > > >
> > > > > > > On Sat, Jun 29, 2013 at 8:02 PM, Deepak Shetty <
> > [email protected]>
> > > > > > wrote:
> > > > > > >
> > > > > > > > Hi
> > > > > > > > are you sure the CSV data set config is a child of the while
> > > > > > controller?
> > > > > > > >
> > > > > > > > regards
> > > > > > > > deepak
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sat, Jun 29, 2013 at 7:28 AM, ankush upadhyay
> > > > > > > > <[email protected]>wrote:
> > > > > > > >
> > > > > > > > > Thanks for the  quick reply Deepak,
> > > > > > > > >
> > > > > > > > > I used the while controller but unfortunately it is still
> > read
> > > > > first
> > > > > > > > value
> > > > > > > > > for each time, means not iterate with other values.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Sat, Jun 29, 2013 at 6:08 PM, Deepak Shetty <
> > > > [email protected]>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > WhileController ("${someVariableFromCSV}" != "<EOF>")
> > > > > > > > > > +HTTP Sampler
> > > > > > > > > > ...
> > > > > > > > > > +CSV DataSetConfig (recycle on eof false)
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Fri, Jun 28, 2013 at 11:14 PM, ankush upadhyay <
> > > > > > > > > > [email protected]
> > > > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > Hello all,
> > > > > > > > > > >
> > > > > > > > > > > I am newbie in Jmeter and creating new test case. The
> > > > scenario
> > > > > is
> > > > > > > > > sending
> > > > > > > > > > > HTTP request for adding some items in cart. Here I want
> > to
> > > > > > > > > > > read items from CSV so that user can easily change or
> > > modify
> > > > > > items
> > > > > > > > from
> > > > > > > > > > > file instead of from jmeter script. It is working in
> > > > > ThreadGroup
> > > > > > > > level
> > > > > > > > > > but
> > > > > > > > > > > not inside loop.
> > > > > > > > > > > --
> > > > > > > > > > > ------
> > > > > > > > > > > Regards
> > > > > > > > > > > @Ankush Upadhyay@
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > ------
> > > > > > > > > Regards
> > > > > > > > > @Ankush Upadhyay@
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > ------
> > > > > > > Regards
> > > > > > > @Ankush Upadhyay@
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ------
> > > > > Regards
> > > > > @Ankush Upadhyay@
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > ------
> > > Regards
> > > @Ankush Upadhyay@
> > >
> >
>
>
>
> --
> ------
> Regards
> @Ankush Upadhyay@
>

Reply via email to