https://issues.apache.org/bugzilla/show_bug.cgi?id=53855

          Priority: P2
            Bug ID: 53855
          Assignee: issues@jmeter.apache.org
           Summary: A CSV <EOF> condition is not interpreted as Boolean
                    False by the While-controller
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: mi+apa...@aldan.algebra.com
          Hardware: PC
            Status: NEW
           Version: 2.7
         Component: Main
           Product: JMeter

Created attachment 29356
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29356&action=edit
An illustrating test-case

When CSV Data set is reading a CSV-file, upon reaching reaching EOF, all of the
specified variables are set to "<EOF>" (the exact string representation is
controlled by the csvdataset.eofstring property).

Unfortunately, simply using one of the variables as a While-controller's
condition is impossible -- apparently, the "<EOF>" is still interpreted as
True.

There are examples and code-snippets online, where a simple CSV-set variable is
used to control a While-controller, so it was/is possible to do on some earlier
releases or some Operating Systems (at least one online posting, for example,
mentions it working on properly on Windows, but not on Linux). Instead of
simply using

      ${column1}

as a while-controller's condition, one must use something as unwieldy (and
unportable) as:

      ${__jexl("${column1}" != "<EOF>")}

It would seem, the Boolean representation of EOF ought to be False regardless
of its String representation.

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

Reply via email to