my dog learned polymorphism*
The moose likes Performance and the fly likes JMeter - refering User Defined Variable in Http POST body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "JMeter - refering User Defined Variable in Http POST body" Watch "JMeter - refering User Defined Variable in Http POST body" New topic
Author

JMeter - refering User Defined Variable in Http POST body

Ravi Challapalli
Greenhorn

Joined: Jun 02, 2009
Posts: 5
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!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JMeter - refering User Defined Variable in Http POST body