I should have said that the CSV Data Set Config element is outside the If 
controller (but inside the While controller.)

-----Original Message-----
From: Bryn Evans [mailto:[EMAIL PROTECTED]
Sent: 24 November 2005 16:08
To: JMeter Users List
Subject: RE: Problems getting loop to end using CSV Data Set Config and
while controller.


Thanks for this.  Moving the CSV Data Set config element outside the loop did 
not work.  The test continued indefinitely, using only the first row from the 
file.

I'm afraid I don't understand your comment about "could be done via a 
property...."

Anyhow, I've worked around the problem by adding another column to the data 
sheet, and inserting an "X" into that column for the rows I want to be executed 
(ie all except first and last.)  I've modified CSV Data Set to read in this 
column also (variable name "Run") and I've inserted an If controller between 
the While controller and the rest of the test, with condition "${Run}" == "X".  
It seems to work.

Thanks,

Bryn.

-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED]
Sent: 23 November 2005 17:54
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:
> 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]


---------------------------------------------------------------------
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