You say event_code is UDV, but according to your treee UDV is set once
before WhileController
What sampler executes StringFromFile function inside WC to get next value?
Did you try Debug and can you confirm that every time you actually read the
new event_code?

And why use loops I don't understand yet.
You have WC, you search for tickets, you book ticket and then you read
event_code, right?

> Test Plan
> +Thread Group
> ++CSV data Set Config
> ++USer Defined Variables
> ++While controller -- > ${__StringFromFile(event_codes.txt,event_code,)}
am
> reading from a file & have last string as false.
> +++Search for tickets
> +++book tickets

On Fri, Nov 11, 2011 at 7:06 PM, Shaba K <[email protected]> wrote:

> Within while controller.
>
> ${event_code} as a variable condition
>
> where this variable is a UDV - assuming that i have 3 values that i am
> passing.
> I have set the second value as false.
>
> Hoping that the loop should terminate.
>
> It is not affecting at all.
>
> ===================
>
> Second suggestion on adding a debug sampler under a while controller.
>
> it loops indefinitely just the first HTTP sampler.
>
>
> There's something that i am missing.
>
> -Shaba
>
>
> On Fri, Nov 11, 2011 at 4:52 PM, Deepak Shetty <[email protected]> wrote:
>
> > Add a debug sampler under the while controller. Add a view results tree
> > listener under thread group. Run your test then click on debug sampler in
> > view results tree and check the response tab
> > On Nov 11, 2011 8:49 AM, "Shaba K" <[email protected]> wrote:
> >
> > > Am not too sure how the debug smapler works.
> > >
> > > I did add but no luck ..
> > >
> > > On Fri, Nov 11, 2011 at 4:38 PM, Deepak Shetty <[email protected]>
> > wrote:
> > >
> > > > Add a debug sampler and view results tree listener to check what the
> > > value
> > > > of your variable is
> > > > On Nov 11, 2011 8:36 AM, "Shaba K" <[email protected]> wrote:
> > > >
> > > > > Ok , let me put this right.
> > > > >
> > > > > There is no error in logs.
> > > > >
> > > > > i have only 1 thread & i loop only once.
> > > > >
> > > > > I have 5 HTTP samplers.
> > > > >
> > > > > I am trying to achieve is pick new variable each time & go through
> > all
> > > 5
> > > > > samplers until you see a false..
> > > > >
> > > > > have places while controler as parent to the http samplers.
> > > > >
> > > > > On Fri, Nov 11, 2011 at 4:33 PM, Deepak Shetty <[email protected]>
> > > > wrote:
> > > > >
> > > > > > Where have you placed the file is there an error in jmeter log
> > > > > > On Nov 11, 2011 8:27 AM, "Shaba K" <[email protected]> wrote:
> > > > > >
> > > > > > > I did try that option as well.
> > > > > > >
> > > > > > > On Fri, Nov 11, 2011 at 3:19 PM, Steve Eckhart
> > > > > > > <[email protected]>wrote:
> > > > > > >
> > > > > > > > Shaba,
> > > > > > > >
> > > > > > > > Have you tried making the false entry the second or third in
> > the
> > > > CSV
> > > > > > file
> > > > > > > > and adding a View Results Tree? What do you see when the
> value
> > > > should
> > > > > > be
> > > > > > > > false?
> > > > > > > >
> > > > > > > > Steve Eckhart
> > > > > > > > Lead Quality Assurance Analyst
> > > > > > > >
> > > > > > > > WAUSAU Financial Systems
> > > > > > > > 14010 FNB PKWY STE500
> > > > > > > > Omaha, NE 68154-5206
> > > > > > > > Email: [email protected]
> > > > > > > >
> > > > > > > > Enterprise Payment Solutions.
> > > > > > > > CONFIDENTIALITY NOTICE:  This electronic transmission
> > (including
> > > > > files
> > > > > > > > attached hereto) is intended only for the use of the
> individual
> > > or
> > > > > > entity
> > > > > > > > named above.  If the reader of this message is not the
> intended
> > > > > > > recipient,
> > > > > > > > you are hereby notified that any disclosure, dissemination,
> > > > copying,
> > > > > > > > distribution or taking of any action in reliance on the
> > contents
> > > of
> > > > > > this
> > > > > > > > confidential information is strictly prohibited.  If you have
> > > > > received
> > > > > > > this
> > > > > > > > communication in error, please destroy it and immediately
> > notify
> > > us
> > > > > by
> > > > > > > > return email.  Thank you.
> > > > > > > >
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Shaba K [mailto:[email protected]]
> > > > > > > > Sent: Friday, November 11, 2011 5:00 AM
> > > > > > > > To: JMeter Users List
> > > > > > > > Subject: While controller
> > > > > > > >
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > While controller that i have used in my test scripts loops
> > > > > infinitely.
> > > > > > > >
> > > > > > > > Test Plan
> > > > > > > > +Thread Group
> > > > > > > > ++CSV data Set Config
> > > > > > > > ++USer Defined Variables
> > > > > > > > ++While controller -- >
> > > > > > ${__StringFromFile(event_codes.txt,event_code,)}
> > > > > > > am
> > > > > > > > reading from a file & have last string as false.
> > > > > > > > +++Search for tickets
> > > > > > > > +++book tickets
> > > > > > > >
> > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [email protected]
> > > > > > > > For additional commands, e-mail: [email protected]
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to