0

I am running a HTTP request test in jmeter where I send a json input. For example:

{ "id":"0", "fieldvalue":"sanket","Source":"todays date" }

I need to parametrize this so that for each thread iteration a different value for id, fieldvalue, source is chosen, possibly from a json file only (not CSV file). Is this possible?

sanket
  • 21
  • 2

1 Answers1

1

Everything is possible. Here are the options

  1. JMeter can read almost any files. Check out the following functions:

  2. You can also use HTTP Request sampler to read the file, just use file as protocol and UNC path.

  3. Values for parametrization can be obtained using JSON Path PostProcessor. See:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133