• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMeter - refering User Defined Variable in Http POST body

 
Ravi Challapalli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me how to access user defined variable inside an attached file of the Http Sampler?

What I did: created an Http req. sampler; method POST; created a variable myvar which is a JMeter 'Random Variable'.

Problem: When I refer ${myvar} to populate an Http header it works but when I use it inside the file I am sending as the POST body it is not replaced but sent as it is ${myvar}.

Please help!

Thanks in advance!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic