You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/07/07 07:34:40 UTC

[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

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.

[Bug 61262] __StringFromFile function doesn't read file in a loop when start sequence number is omitted, and the end sequence number is specified

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61262

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Alex from comment #0)
> Created attachment 35101 [details]
> 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're misunderstanding documentation.
If only end sequence number is specified, then it means this number will be
interpreted as the maximum number of times the files will be read. So in this
case it means you can call the function 8*4 times, at the 33 th call, it will
signal an end of file.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61262] __StringFromFile function doesn't read file in a loop when start sequence number is omitted, and the end sequence number is specified

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61262

Alex <ef...@ukr.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.