jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61262] __StringFromFile function doesn't read file in a loop when start sequence number is omitted, and the end sequence number is specified
Date Sun, 28 Oct 2018 10:26:44 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61262

Philippe Mouawad <p.mouawad@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.mouawad@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.
Mime
View raw message