https://bz.apache.org/bugzilla/show_bug.cgi?id=61262
Philippe Mouawad <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |om Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Philippe Mouawad <[email protected]> --- (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.
