On 23/11/05, Bryn Evans <[EMAIL PROTECTED]> wrote:
> Thanks for that.  Works a treat (although the Sampler uses the dummy line and 
> then the loop ends - I was hoping the loop would end first.)

Might be worth trying with the CSV Data set outside the while loop
(not sure it will help, but easy to try).

> Also, is there a sensible way of getting the test plan to skip over the first 
> line of the file (since it contains headings rather than data) ?

Not that I know of.

You could just remove the headings ;-)

Might be a suitable enhancement to allow comments in CSV Data Set files.
To avoid possible problems with existing data files, perhaps this
could be done via a property, for example:

csvdataset.comment_marker=!

S.
> thanks,
>
> Bryn
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: 23 November 2005 16:38
> To: JMeter Users List
> Subject: Re: Problems getting loop to end using CSV Data Set Config and
> while controller.
>
>
> On 23/11/05, Bryn Evans <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm using CSV Data Set Config Element to read in data from my CSV data 
> > file.  I'm using SOAP/XML-RPC Request Sampler to send data to the 
> > application under test.  I want the test plan to read in the data, send a 
> > request, verify response, and continue to do so until there is no more data 
> > in the file.  I thought that a sensible way of doing this would be to add a 
> > dummy line to the end of the file (ie value of first field is "END") and 
> > added a While controller that stops the loop when the value of the variable 
> > representing the first column of the data file is equal to "END".  But this 
> > does not seem to have worked, the loop goes on indefinitely.
> >
> > Test plan
> > |_Thread Group
> >  |_While controller (with condition ${Test Case Name} <> "END")
> >     |_CSV Data Set Config (with variable names Test Case Name,Date time 
> > sent,.......)
> >     |_SOAP/XML Request Sampler (using the variables names)
> >     |_Assertion Results Listener
> >
> > Can anyone help please.
>
> The While Controller:
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>
> does not assume Javascript.
>
> You need to change the condition to some that evaluates to "FALSE" at some 
> point
>
> The easiest might therefore be to replace END with FALSE and set the
> condition to:
>
> ${Test Case Name}
>
> S.
> > Thanks,
> >
> > Bryn
> >
> > > Bryn Evans
> > >
> > > PA
> > Information Systems Implementation Practice
> > 123 Buckingham Palace Road
> > London, SW1W 9SR
> >
> > Tel:    (+44) 20 7333 5196 (direct)
> > Tel:    (+44) 20 7730 9000 (switchboard)
> > Mobile: (+44) 7729 108 706
> > 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]
>
>

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

Reply via email to