You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Duc Chau <ch...@gmail.com> on 2011/01/21 03:49:10 UTC

header line defining the column names is assigned to its own variable when looping CSV Data Set Config

Hello,

I've just found that the header column name defined in csv file will be
assigned to variable as well and this gets problem when looping

For example:

*CSV Data Set Definition* (recylce=TRUE)

*menu* => header as variable
login
change password
logout

*Test Plan*

Loop Controller (3)
Use CSV Login Credentials
   Loop Controller (3)
   Use CSV Menu
      HTTP Request use ${menu}

*Actual Result*

First Loop of CSV Menu:
${menu} = login
${menu} = change password
${menu} = logout

Second Loop CSV Menu:
${menu} = menu => *problem here*
${menu} = login
${menu} = change password

Expected result should be the same as the first loop.

When I checked user manual and it said that "When the end of file (EOF) is
reached, and the recycle option is true, reading starts again with the first
line of the file". It seems it ignores the advantage of Jmeter 2.3.4 as
"Versions of JMeter after 2.3.4 support CSV files which have a header line
defining the column names. To enable this, leave the "Variable Names" field
empty. The correct delimiter must be provided." when looping.

Please advise whether this problem should be a bug of Jmeter or not. Thank
you.

Re: header line defining the column names is assigned to its own variable when looping CSV Data Set Config

Posted by sebb <se...@gmail.com>.
On 21 January 2011 04:57, Duc Chau <ch...@gmail.com> wrote:
> Thanks for pointing it out Sebb. It seems we have integrated into a patch
> (16-08-2010) to fix but I wonder whether it applies for new version to
> download or not. I am currently using v2.4 r961953 (just download by the end
> of 2010) and it still happens.

The bug is fixed in r986094 which is later than 2.4, i.e. r961953

> On Fri, Jan 21, 2011 at 2:35 PM, sebb <se...@gmail.com> wrote:
>
>> On 21 January 2011 02:49, Duc Chau <ch...@gmail.com> wrote:
>> > Hello,
>> >
>> > I've just found that the header column name defined in csv file will be
>> > assigned to variable as well and this gets problem when looping
>> >
>> > For example:
>> >
>> > *CSV Data Set Definition* (recylce=TRUE)
>> >
>> > *menu* => header as variable
>> > login
>> > change password
>> > logout
>> >
>> > *Test Plan*
>> >
>> > Loop Controller (3)
>> > Use CSV Login Credentials
>> >   Loop Controller (3)
>> >   Use CSV Menu
>> >      HTTP Request use ${menu}
>> >
>> > *Actual Result*
>> >
>> > First Loop of CSV Menu:
>> > ${menu} = login
>> > ${menu} = change password
>> > ${menu} = logout
>> >
>> > Second Loop CSV Menu:
>> > ${menu} = menu => *problem here*
>> > ${menu} = login
>> > ${menu} = change password
>> >
>> > Expected result should be the same as the first loop.
>> >
>> > When I checked user manual and it said that "When the end of file (EOF)
>> is
>> > reached, and the recycle option is true, reading starts again with the
>> first
>> > line of the file". It seems it ignores the advantage of Jmeter 2.3.4 as
>> > "Versions of JMeter after 2.3.4 support CSV files which have a header
>> line
>> > defining the column names. To enable this, leave the "Variable Names"
>> field
>> > empty. The correct delimiter must be provided." when looping.
>> >
>> > Please advise whether this problem should be a bug of Jmeter or not.
>> Thank
>> > you.
>> >
>>
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=49666
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: header line defining the column names is assigned to its own variable when looping CSV Data Set Config

Posted by Duc Chau <ch...@gmail.com>.
Thanks for pointing it out Sebb. It seems we have integrated into a patch
(16-08-2010) to fix but I wonder whether it applies for new version to
download or not. I am currently using v2.4 r961953 (just download by the end
of 2010) and it still happens.

On Fri, Jan 21, 2011 at 2:35 PM, sebb <se...@gmail.com> wrote:

> On 21 January 2011 02:49, Duc Chau <ch...@gmail.com> wrote:
> > Hello,
> >
> > I've just found that the header column name defined in csv file will be
> > assigned to variable as well and this gets problem when looping
> >
> > For example:
> >
> > *CSV Data Set Definition* (recylce=TRUE)
> >
> > *menu* => header as variable
> > login
> > change password
> > logout
> >
> > *Test Plan*
> >
> > Loop Controller (3)
> > Use CSV Login Credentials
> >   Loop Controller (3)
> >   Use CSV Menu
> >      HTTP Request use ${menu}
> >
> > *Actual Result*
> >
> > First Loop of CSV Menu:
> > ${menu} = login
> > ${menu} = change password
> > ${menu} = logout
> >
> > Second Loop CSV Menu:
> > ${menu} = menu => *problem here*
> > ${menu} = login
> > ${menu} = change password
> >
> > Expected result should be the same as the first loop.
> >
> > When I checked user manual and it said that "When the end of file (EOF)
> is
> > reached, and the recycle option is true, reading starts again with the
> first
> > line of the file". It seems it ignores the advantage of Jmeter 2.3.4 as
> > "Versions of JMeter after 2.3.4 support CSV files which have a header
> line
> > defining the column names. To enable this, leave the "Variable Names"
> field
> > empty. The correct delimiter must be provided." when looping.
> >
> > Please advise whether this problem should be a bug of Jmeter or not.
> Thank
> > you.
> >
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=49666
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: header line defining the column names is assigned to its own variable when looping CSV Data Set Config

Posted by sebb <se...@gmail.com>.
On 21 January 2011 02:49, Duc Chau <ch...@gmail.com> wrote:
> Hello,
>
> I've just found that the header column name defined in csv file will be
> assigned to variable as well and this gets problem when looping
>
> For example:
>
> *CSV Data Set Definition* (recylce=TRUE)
>
> *menu* => header as variable
> login
> change password
> logout
>
> *Test Plan*
>
> Loop Controller (3)
> Use CSV Login Credentials
>   Loop Controller (3)
>   Use CSV Menu
>      HTTP Request use ${menu}
>
> *Actual Result*
>
> First Loop of CSV Menu:
> ${menu} = login
> ${menu} = change password
> ${menu} = logout
>
> Second Loop CSV Menu:
> ${menu} = menu => *problem here*
> ${menu} = login
> ${menu} = change password
>
> Expected result should be the same as the first loop.
>
> When I checked user manual and it said that "When the end of file (EOF) is
> reached, and the recycle option is true, reading starts again with the first
> line of the file". It seems it ignores the advantage of Jmeter 2.3.4 as
> "Versions of JMeter after 2.3.4 support CSV files which have a header line
> defining the column names. To enable this, leave the "Variable Names" field
> empty. The correct delimiter must be provided." when looping.
>
> Please advise whether this problem should be a bug of Jmeter or not. Thank
> you.
>

https://issues.apache.org/bugzilla/show_bug.cgi?id=49666

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org