jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harry_no_spot <13651877...@163.com>
Subject Re:how to evaluate function set in variable?
Date Mon, 15 Aug 2016 14:32:11 GMT
I answer myself.
use println  ${__eval(${var})}  will be ok
use println ${__eval(vars.get("var"))} will be not ok.


At 2016-08-11 21:32:01, "harry_no_spot" <13651877684@163.com> wrote:
>hi, plz help me, the question is:
>1. senario as expected:
>a.create a csv file, contents is
>var
>123
>b.very simple test plan. 'CSV data set config' & 'JSR223 Sampler'
>c. println ${__eval(vars.get("var"))}  
>it prints 123 on console as expected.
>
>2. senario not as expected
>a. change csv file, content is
>var
>${__time(yyyyMMdd)}
>b. it prints ${__time(yyyyMMdd)} on console, not as expected, say, 20160811
>
>so why?
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message