0

We can set the default value for property variable ${__P(Threads,1)}, if Threads is null then the default value 1 will be used.

Now I want to use the variable in the same way.

We can call the variable as ${name} in JMeter and if this name is null then the default variable should come into action.

I don't want to use preprocessors need in format of function same as property variable.

1 Answer 1

1

The closest equivalent would be __V() function:

${__V(name,default value)}

Alternatively you can declare the initial values of the JMeter Variables using i.e. User Defined Variables configuration element like:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.