You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2009/08/04 18:01:19 UTC
Re: evaluate variables
On 21/07/2009, manbeing <my...@gmail.com> wrote:
>
> I have some difficulties to evaluate variables either in property file or
> jmeter test case. Can someone help me out?
>
> In User.Properties file:
>
> Num=1
> Address=URL${num}.go.com
The above are both properties, not variables.
> Jmeter is uanble to evaluate {num} here and complaines URL${num}.go.com is
> bad
That is expected behaviour.
> --------------------
> In test plan (User Defined Variables):
>
> Variable: FileName Value: ${__P(sFileName,test.cvs)}
> variable: FullPath Value: ${__P(sFullPath,c:\${FileName})}
Variables in UDVs are not available until the element has been fully processed.
> error message: unable to find file "C:\${FileName}"
>
> Then I use V function like this: ${__P(sFullPath,${__V(c:\${FileName})})}
> error message: cannot save it. Please see log file.
>
> Any suggestions? Thanks a lot!
>
> --
> View this message in context: http://www.nabble.com/evaluate-variables-tp24593394p24593394.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org