How to use more than one Server Name or IPs(see screenshot) by using variables in jmeter for same Http Request ? better providing example?

enter image description here

1 Answer 1


If you have a list of domains (hostnames or IP addresses) you can substitute this awe.bcu.com hard-coded value with i.e. __StringFromFile function pointing to the file containing this list like:

JMeter String From File

Another option is using CSV Data Set Config configured like:

CSV Data Set Config JMeter

In that case put ${hostname} into the "Server Name or IP" field.

  • if we are using first option __StringFromFile then what kind of file need to be used? csv,txt...so on? thanks
    – lak
    Commented Mar 13, 2017 at 17:07
  • any type of text file (non-binary) given each domain name comes on next line
    – Dmitri T
    Commented Mar 13, 2017 at 21:44

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.