jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: urlencode with variables loaded from csv
Date Thu, 30 Jan 2014 23:47:58 GMT
On 29 January 2014 01:43, Steven Swor <sworisbreathing@gmail.com> wrote:
> Hi folks,
>
> Can someone please explain to me how JMeter handles variables loaded from
> CSV, as opposed to handling user-defined variables? I was under the
> impression that ${__urlencode(${csv_variable})} would produce the same
> output as ${__urlencode(${user_defined_variable})}, but it appears this is
> not the case.

They *are* handled the same way.

But if the encoding function is called before the CSV variable has
been defined, of course it won't work.


> A minimal test case is available at
> https://issues.apache.org/bugzilla/attachment.cgi?id=31268. In that test
> plan, the CSV data are declared before any of the thread groups, and
> urlencode is called within each thread group.
>
> In such a case, wouldn't the CSV variables (defined before the thread
> groups in the test plan) be loaded before the user-defined variables
> (defined within the thread groups)?

Please read:

http://jmeter.apache.org/usermanual/component_reference.html#User_Defined_Variables

first para.

> Thanks,
> Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message