Hello!
I need to test a set of URLs on a group of origin-hosts. Depending on the
environment (dev, QA, or prod) the number of origins goes from 1 to 9... The
actual list of origin IPs is built in the startUp thread group to be used by all
subsequent groups.
What I am trying to do boils down to:
For Each IP-address
While "${url}" != "<EOF>"
CSV Data set reading urls from a CSV-file
if "${url}" != "<EOF>"
do-some-testing
Here is the problem... If the CSV is set to recycle on EOF, then the While-loop
never ends... Otherwise, ${url} stays "<EOF>" and all IP-address other than the
first one have nothing to test...
How can the While/CSV construct be meaningfully put inside another loop? It
would seem, my options here are:
* Make sure, the While-construct is always the outermost -- and tell the CSV
Dataset to terminate the current thread on EOF. For me this would mean
slower tests, because, while JMeter asks other IPs for the same ${url}, the
first IP's keep-alive expires necessitating a reconnect and slowing things
down.
* Place something like "EOF" or "false" at the end of each CSV-file.
Both approaches seem to be merely /work-arounds/ for a genuine problem... Is
there, perhaps, a proper /solution/? Maybe, a non-recycling CSV Dataset ought to
be reinitialized every time it is encountered -- instead of staying at EOF after
the first time? Alternatively, maybe, there ought to be some other way to
determine, when a CSV's EOF is hit (even if it will recycle through the file again)?
Thanks!
-mi