Hi!

What is the evaluation order of functions and variables in a JDBC Request 
sampler?

What I'm interested in is: are the functions in the query evaluated first and 
later in the sampler fields like Name and Comments or vice versa?

In an experiment, I discovered that the query is run first, then the Name field.

What I did was to enter in the Query part:

${__setProperty(testabc,aaa)}
prop: ${__P(testabc)}

And in the name of the sampler:   prop in name: ${__P(testabc)}

When run, the sample name was (in the Results Tree) : prop in name: aaa

If I put this as name:  testing ${__setProperty(testxyz,aaa)}
And in the query field: prop: ${__P(testxyz)}

Then the query did not see the property, the resulting text was: prop: 1  # as 
the property is unset, it evaluates to 1

Is this official? In other words: can I rely on it not changing in future 
versions?

I used JMeter 5.3 for this test.

Lep pozdrav,
David Balažic


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to