jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61262] New: __StringFromFile function doesn't read file in a loop when start sequence number is omitted, and the end sequence number is specified
Date Fri, 07 Jul 2017 07:34:40 GMT
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: issues@jmeter.apache.org
          Reporter: efolder@ukr.net
  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.
Mime
View raw message