-1

I want to pass value from my csv file in json extractor but it's not working. I have tried like [?(@.name == '${UserName}')].id but when i am simply writing Username without taking it from CSV then it is working.

  • You are using this correctly. Just make sure you have the variable name correctly picked **UserName** and also the JSON Expression should be like **$..[?(@.name == '${UserName}')]** – Raj May 23 '20 at 10:44

1 Answers1

0

Double check that your UserName variable exists and has the anticipated value using Debug Sampler and View Results Tree listener combination

enter image description here

As long as the associated JMeter Variable exists you should be able to use it in the JSON Extractor

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