Am 07.12.20 um 19:13 schrieb Tong Sun:
> I've defined the following variables on the Test Plan:
>
> HOST www.example.com
> URL ${__P(URL, __V(
https://${HOST}/api/path))}
>
> I.e., I want to define a Test Plan variable from the previously
> defined existing Test Plan variable(s), if URL is not
> defined/overwritten on cli. How to do that? Mine above is not working.
Try to move the definition of URL to a User Defined Variable config
element. The variable HOST is not visible at the level of the test plan
and JMeter can not evaluate it that early. While you are moving the
definition, make sure to correct the replacement string by leaving out
'__V(' and one ')' at the end. The correct definition for URL would be
${__P(URL,
https://${HOST}/api/path)}
Felix
>
> thx
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]