https://bz.apache.org/bugzilla/show_bug.cgi?id=61262
Bug ID: 61262
Summary: __StringFromFile function doesn't read file in a loop
when start sequence number is omitted, and the end
sequence number is specified
Product: JMeter
Version: 3.2
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 35101
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35101&action=edit
csv.txt file content
__StringFromFile function doesn't read file in a loop when start sequence
number is omitted, and the end sequence number is specified.
Step to reproduce:
1) csv.txt file content:
USERNAME,PASSWORD
joel,secr3t
jim,grooVy
sam,sCala
tom,pa$$
patrick,allgood!
hari,c0mmons
acton,letmeein
bayo,express
2(Function expression:
${__StringFromFile(d:\test\csv.txt,,,4)}
Actual result:
The function returns only one line per 1 iteration set by thread group loop
count
Expected result
The function returns 4 lines per 4 iteration (loop count is determined by Final
file sequence number) since text from documentation: "If the start sequence
number is omitted, and the end sequence number is specified, the sequence
number is interpreted as a loop count, and the file will be used at most "end"
times."
--
You are receiving this mail because:
You are the assignee for the bug.