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