You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Oliver Erlewein <ol...@erlewein.net> on 2014/06/20 07:04:24 UTC

__V function not working as I'd expect it to

Hey,

The __V function not working as I'd expect it to. The manual says:


   - ${__V(A${N})} - works OK. A${N} becomes A1, and the __V function
   returns the value of

But doing that I get *A1* and not the content of *${A1}*

The line of code I have is:

${__V(JobPartID_${JobPartIDNr})}

And it only resolves to *JobPartID_1*

Is this correct? I read the documentation differently. I should be getting
the content of *${JobPartID_1}.*

Cheers Oliver

Re: __V function not working as I'd expect it to

Posted by Deepak Shetty <sh...@gmail.com>.
It should work and does as far as I remember in the older versions so which
version are you using?
Worst case use vars object in beanshell to achieve this..
On Jun 19, 2014 10:04 PM, "Oliver Erlewein" <ol...@erlewein.net> wrote:

> Hey,
>
> The __V function not working as I'd expect it to. The manual says:
>
>
>    - ${__V(A${N})} - works OK. A${N} becomes A1, and the __V function
>    returns the value of
>
> But doing that I get *A1* and not the content of *${A1}*
>
> The line of code I have is:
>
> ${__V(JobPartID_${JobPartIDNr})}
>
> And it only resolves to *JobPartID_1*
>
> Is this correct? I read the documentation differently. I should be getting
> the content of *${JobPartID_1}.*
>
> Cheers Oliver
>

Re: __V function not working as I'd expect it to

Posted by sebb <se...@gmail.com>.
On 20 June 2014 10:07, ZK <st...@gmail.com> wrote:
> Hi,
> looks correct, are you sure you have a value assigned to ${JobPartID_1}
> As if it is empty it can just display JobPartID_1

Not quite.

If the variable VAR is not defined, then ${VAR} cannot be resolved and
the string is left as ${VAR}

>
> ZK
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/V-function-not-working-as-I-d-expect-it-to-tp5720301p5720302.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Re: __V function not working as I'd expect it to

Posted by ZK <st...@gmail.com>.
Hi,
looks correct, are you sure you have a value assigned to ${JobPartID_1}
As if it is empty it can just display JobPartID_1


ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/V-function-not-working-as-I-d-expect-it-to-tp5720301p5720302.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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