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.

asked Apr 20, 2020 at 10:40

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

answered Apr 20, 2020 at 11:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.