Thanks Sebb but I have studied both of those posts and I am still confused.

I have setup a CSV Data Set Config with the following values:
 Filename: randomTerms.txt
 Variable Names: QUERY
 Delimiter: \n
 Recycle on EOF: False

I then have a While Controller where I am making an HTTP Request to my
search appliance with each term listed in randomTerms.txt file.  I
want to break out of the while loop when I reach "<EOF>".

I have tried several conditions but the last one I tried is:

${__javaScript(${QUERY} != "<EOF>")}

Jake

On 1/12/07, sebb <[EMAIL PROTECTED]> wrote:
See:

http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/200701.mbox/<[EMAIL 
PROTECTED]>

and

http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/200701.mbox/<[EMAIL 
PROTECTED]>

On 12/01/07, Jake Jacobson <[EMAIL PROTECTED]> wrote:
> I guess I am just really dense because I can't get the while loop to
> end when I reach the end of the file.  I have read
> 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> and most all of the questions in these threads.
>
> A simple example would be most helpful
>
> Jake
>
> On 1/11/07, Jake Jacobson <[EMAIL PROTECTED]> wrote:
> > Thanks for your help.  I was able to get these problems resolved and
> > everything seems to be working as expected now with my while loop.
> >
> > Jake
> >
> >
> > On 1/11/07, sebb <[EMAIL PROTECTED]> wrote:
> > > On 11/01/07, Jake Jacobson < [EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I am trying to build a test plan to load test our search appliance.  I
> > > > have a file with search terms, 1 per line that I want to submit
> > > > against the application.  I want to go through the list once and when
> > > > I reach the end of file, the test would end.  I am having 2 issues
> > > > that I need help with.
> > > >
> > > > 1.  My test runs forever without advancing through the list.  I keep
> > > > submitting the first term from the list.
> > > >
> > > > 2.  It seems that each HTTP Request is sending 3 requests and I would
> > > > only expect to see 1.
> > > >
> > > > I have configured the following items.
> > > >
> > > > Main Thread Group
> > > >  Number of Threads -> 1
> > > >  Ramp-Up Period -> 0
> > > >  Loop Count -> 0
> > >
> > > Should be at least 1
> > >
> > > >
> > > > HTTP Request Defaults
> > > >  Server name -> Url for my search appliance
> > > >  Path -> /search
> > > >  Send Parameters with the Request:
> > > >    output -> xml
> > > >    client -> mysite
> > > >    site -> mysite
> > > >
> > > > CSV Data Set Config
> > > >  Filename -> searchTerms.txt
> > > >  Variable Names -> QUERY
> > > >  Delimiter -> \n
> > > >  Recycle on EOF -> False
> > >
> > > > While Controller
> > > >  Condition ${QUERY} != "<EOF>"
> > >
> > > This is not a valid conditon - see the documentation and recent e-mails.
> > >
> > > > Then inside the while controller I have and HTTP Request
> > > >  Method -> Post
> > > >  Send Parameters with the Request:
> > > >    q -> ${QUERY}
> > > >
> > > > I have then added the "View Results Tree" and I see that for each
> > > > "HTTP Request" it appears to be hitting the server 3 times.
> > > >  1.  To the search page with the correct parameters.  This is done as
> > > > a Post and it is the one I want.
> > > >  2.  To http://mysearch.com:80/  I don't know why.  This is done as a
> > GET
> > > >  3.  To
> > > >
> > 
http://mysearch.com:80/search?output=defaultValue&client=defaultValue&site=defaultValue
> > > > Again, This is done as a GET and I don't understand why?
> > > >
> > >
> > > Have you set Follow redirects?
> > >
> > > > Thanks for your help.
> > > >
> > > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to