-1

My question is - if I run a test via Jmeter, for example , if it's a site which enables you to book a flight, and you choose your source and destination when you record it.

Is it possible to pass different values to the destination field? I mean, maybe a txt file with some destinations and pass it to the Jmeter test and then, you will have some tests which each of them is running with a different destination?

If yes, how can I do it? It's not necessary that it will be a txt file. Just a way to pass different values to one parameter.

Important: I'm using blazemeter plugin for chrome.

Thanks a lot, appreciated.

Ron.k
  • 17
  • 1
  • 2
  • 10

2 Answers2

1

You can use CSV Data Set Config. It is very easy to use for parameterizing variables in the test plan.

Check this article on blazemeter to understand the CSV Data Set Config quickly.

Masud Jahan
  • 3,418
  • 2
  • 22
  • 35
0

Depending on what you're trying to achieve you can go for:

  1. HTML Link Parser. See Poll Example which shows how you can use it for selecting random values from inputs
  2. You can extract all the possible values from the previous response using a Post-Processor, most probably CSS Selector Extractor and configure each thread to use its own (or random) value from the input
  3. And last, but not the least, you can use an external data source like .txt or .csv file and utilize __StringFromFile() function or CSV Data Set Config so each thread (virtual user) would read the next value from file instead of using recorded hard-coded values.
Dmitri T
  • 159,985
  • 5
  • 83
  • 133